@leonardovida-md/drizzle-neo-duckdb 1.1.0 → 1.1.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/columns.d.ts CHANGED
@@ -12,6 +12,11 @@ type ListColType = `${AnyColType}[]`;
12
12
  type ArrayColType = `${AnyColType}[${number}]`;
13
13
  type StructColType = `STRUCT (${string})`;
14
14
  type Primitive = AnyColType | ListColType | ArrayColType | StructColType;
15
+ export declare function coerceArrayString(value: string): unknown[] | undefined;
16
+ export declare function formatLiteral(value: unknown, typeHint?: string): string;
17
+ export declare function buildListLiteral(values: unknown[], elementType?: string): SQL;
18
+ export declare function buildStructLiteral(value: Record<string, unknown>, schema?: Record<string, Primitive>): SQL;
19
+ export declare function buildMapLiteral(value: Record<string, unknown>, valueType?: string): SQL;
15
20
  export declare const duckDbList: <TData = unknown>(name: string, elementType: AnyColType) => import("drizzle-orm/pg-core").PgCustomColumnBuilder<{
16
21
  name: string;
17
22
  dataType: "custom";
package/dist/dialect.d.ts CHANGED
@@ -5,7 +5,28 @@ import { type DriverValueEncoder, type QueryTypingsValue } from 'drizzle-orm';
5
5
  export declare class DuckDBDialect extends PgDialect {
6
6
  static readonly [entityKind]: string;
7
7
  private hasPgJsonColumn;
8
+ private savepointsSupported;
9
+ /**
10
+ * Reset the PG JSON detection flag. Should be called before preparing a new query.
11
+ */
12
+ resetPgJsonFlag(): void;
13
+ /**
14
+ * Mark that a PG JSON/JSONB column was detected during query preparation.
15
+ */
16
+ markPgJsonDetected(): void;
8
17
  assertNoPgJsonColumns(): void;
18
+ /**
19
+ * Check if savepoints are known to be unsupported for this dialect instance.
20
+ */
21
+ areSavepointsUnsupported(): boolean;
22
+ /**
23
+ * Mark that savepoints are supported for this dialect instance.
24
+ */
25
+ markSavepointsSupported(): void;
26
+ /**
27
+ * Mark that savepoints are not supported for this dialect instance.
28
+ */
29
+ markSavepointsUnsupported(): void;
9
30
  migrate(migrations: MigrationMeta[], session: PgSession, config: MigrationConfig | string): Promise<void>;
10
31
  prepareTyping(encoder: DriverValueEncoder<unknown, unknown>): QueryTypingsValue;
11
32
  }