drizzle-orm 1.0.0-beta.17-e361198 → 1.0.0-beta.17-08eddf2
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/aws-data-api/common/index.d.cts +1 -1
- package/aws-data-api/common/index.d.ts +1 -1
- package/aws-data-api/pg/migrator.d.cts +2 -2
- package/better-sqlite3/migrator.d.cts +2 -2
- package/better-sqlite3/migrator.d.ts +2 -2
- package/bun-sql/migrator.d.cts +5 -5
- package/bun-sql/migrator.d.ts +5 -5
- package/bun-sql/mysql/migrator.d.cts +2 -2
- package/bun-sql/mysql/migrator.d.ts +2 -2
- package/bun-sql/postgres/migrator.d.cts +2 -2
- package/bun-sql/postgres/migrator.d.ts +2 -2
- package/bun-sql/sqlite/migrator.d.cts +2 -2
- package/bun-sql/sqlite/migrator.d.ts +2 -2
- package/cockroach/migrator.d.cts +2 -2
- package/cockroach/migrator.d.ts +2 -2
- package/cockroach-core/columns/date.common.d.cts +2 -2
- package/effect-postgres/driver.d.cts +2 -2
- package/effect-postgres/driver.d.ts +2 -2
- package/effect-postgres/migrator.d.cts +1 -1
- package/effect-postgres/migrator.d.ts +1 -1
- package/entity.cjs +1 -1
- package/entity.cjs.map +1 -1
- package/entity.js +1 -1
- package/entity.js.map +1 -1
- package/gel-core/utils.d.cts +3 -3
- package/gel-core/utils.d.ts +3 -3
- package/mssql-core/columns/date.common.d.cts +2 -2
- package/mysql2/migrator.d.cts +2 -2
- package/mysql2/migrator.d.ts +2 -2
- package/neon/neon-auth.d.cts +9 -9
- package/neon/rls.d.cts +2 -2
- package/neon/rls.d.ts +2 -2
- package/neon-serverless/migrator.d.cts +2 -2
- package/neon-serverless/migrator.d.ts +2 -2
- package/node-mssql/migrator.d.cts +2 -2
- package/node-mssql/migrator.d.ts +2 -2
- package/node-sqlite/driver.cjs +59 -0
- package/node-sqlite/driver.cjs.map +1 -0
- package/node-sqlite/driver.d.cts +28 -0
- package/node-sqlite/driver.d.ts +28 -0
- package/node-sqlite/driver.js +51 -0
- package/node-sqlite/driver.js.map +1 -0
- package/node-sqlite/index.cjs +13 -0
- package/node-sqlite/index.d.cts +3 -0
- package/node-sqlite/index.d.ts +3 -0
- package/node-sqlite/index.js +4 -0
- package/node-sqlite/migrator.cjs +12 -0
- package/node-sqlite/migrator.cjs.map +1 -0
- package/node-sqlite/migrator.d.cts +10 -0
- package/node-sqlite/migrator.d.ts +10 -0
- package/node-sqlite/migrator.js +11 -0
- package/node-sqlite/migrator.js.map +1 -0
- package/node-sqlite/session.cjs +138 -0
- package/node-sqlite/session.cjs.map +1 -0
- package/node-sqlite/session.d.cts +58 -0
- package/node-sqlite/session.d.ts +58 -0
- package/node-sqlite/session.js +135 -0
- package/node-sqlite/session.js.map +1 -0
- package/op-sqlite/migrator.d.cts +2 -2
- package/op-sqlite/migrator.d.ts +2 -2
- package/package.json +50 -2
- package/pg-core/effect/session.d.cts +1 -1
- package/pg-core/effect/session.d.ts +1 -1
- package/pglite/migrator.d.cts +2 -2
- package/pglite/migrator.d.ts +2 -2
- package/planetscale-serverless/migrator.d.cts +2 -2
- package/planetscale-serverless/migrator.d.ts +2 -2
- package/postgres-js/migrator.d.cts +2 -2
- package/postgres-js/migrator.d.ts +2 -2
- package/singlestore/migrator.d.cts +2 -2
- package/singlestore/migrator.d.ts +2 -2
- package/sql-js/migrator.d.cts +2 -2
- package/sql-js/migrator.d.ts +2 -2
- package/sqlite-core/utils.d.ts +2 -2
- package/supabase/rls.d.cts +17 -17
- package/supabase/rls.d.ts +3 -3
- package/tidb-serverless/migrator.d.cts +2 -2
- package/tidb-serverless/migrator.d.ts +2 -2
- package/tursodatabase/migrator.d.cts +2 -2
- package/tursodatabase/migrator.d.ts +2 -2
- package/up-migrations/pg.cjs +10 -12
- package/up-migrations/pg.cjs.map +1 -1
- package/up-migrations/pg.js +10 -12
- package/up-migrations/pg.js.map +1 -1
- package/vercel-postgres/migrator.d.cts +2 -2
- package/vercel-postgres/migrator.d.ts +2 -2
|
@@ -4,7 +4,7 @@ import { Field, TypeHint } from "@aws-sdk/client-rds-data";
|
|
|
4
4
|
|
|
5
5
|
//#region src/aws-data-api/common/index.d.ts
|
|
6
6
|
declare const typeHint: { [K in TypeHint]: K };
|
|
7
|
-
declare function getValueFromDataApi(field: Field): string | number | boolean | string[] | Uint8Array<ArrayBufferLike> |
|
|
7
|
+
declare function getValueFromDataApi(field: Field): string | number | boolean | string[] | number[] | Uint8Array<ArrayBufferLike> | boolean[] | _aws_sdk_client_rds_data0.ArrayValue[] | null;
|
|
8
8
|
declare function typingsToAwsTypeHint(typings?: QueryTypingsValue): TypeHint | undefined;
|
|
9
9
|
declare function toValueParam(value: any, typings?: QueryTypingsValue): {
|
|
10
10
|
value: Field;
|
|
@@ -4,7 +4,7 @@ import { Field, TypeHint } from "@aws-sdk/client-rds-data";
|
|
|
4
4
|
|
|
5
5
|
//#region src/aws-data-api/common/index.d.ts
|
|
6
6
|
declare const typeHint: { [K in TypeHint]: K };
|
|
7
|
-
declare function getValueFromDataApi(field: Field): string | number | boolean | string[] | Uint8Array<ArrayBufferLike> |
|
|
7
|
+
declare function getValueFromDataApi(field: Field): string | number | boolean | string[] | number[] | Uint8Array<ArrayBufferLike> | boolean[] | _aws_sdk_client_rds_data0.ArrayValue[] | null;
|
|
8
8
|
declare function typingsToAwsTypeHint(typings?: QueryTypingsValue): TypeHint | undefined;
|
|
9
9
|
declare function toValueParam(value: any, typings?: QueryTypingsValue): {
|
|
10
10
|
value: Field;
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { AwsDataApiPgDatabase } from "./driver.cjs";
|
|
2
|
-
import * as
|
|
2
|
+
import * as __migrator_ts21 from "../../migrator.cjs";
|
|
3
3
|
import { MigrationConfig } from "../../migrator.cjs";
|
|
4
4
|
import { AnyRelations } from "../../relations.cjs";
|
|
5
5
|
|
|
6
6
|
//#region src/aws-data-api/pg/migrator.d.ts
|
|
7
|
-
declare function migrate<TSchema extends Record<string, unknown>, TRelations extends AnyRelations>(db: AwsDataApiPgDatabase<TSchema, TRelations>, config: MigrationConfig): Promise<void |
|
|
7
|
+
declare function migrate<TSchema extends Record<string, unknown>, TRelations extends AnyRelations>(db: AwsDataApiPgDatabase<TSchema, TRelations>, config: MigrationConfig): Promise<void | __migrator_ts21.MigratorInitFailResponse>;
|
|
8
8
|
//#endregion
|
|
9
9
|
export { migrate };
|
|
10
10
|
//# sourceMappingURL=migrator.d.cts.map
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { BetterSQLite3Database } from "./driver.cjs";
|
|
2
|
-
import * as
|
|
2
|
+
import * as __migrator_ts19 from "../migrator.cjs";
|
|
3
3
|
import { MigrationConfig } from "../migrator.cjs";
|
|
4
4
|
import { AnyRelations } from "../relations.cjs";
|
|
5
5
|
|
|
6
6
|
//#region src/better-sqlite3/migrator.d.ts
|
|
7
|
-
declare function migrate<TSchema extends Record<string, unknown>, TRelations extends AnyRelations>(db: BetterSQLite3Database<TSchema, TRelations>, config: MigrationConfig): void |
|
|
7
|
+
declare function migrate<TSchema extends Record<string, unknown>, TRelations extends AnyRelations>(db: BetterSQLite3Database<TSchema, TRelations>, config: MigrationConfig): void | __migrator_ts19.MigratorInitFailResponse;
|
|
8
8
|
//#endregion
|
|
9
9
|
export { migrate };
|
|
10
10
|
//# sourceMappingURL=migrator.d.cts.map
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { BetterSQLite3Database } from "./driver.js";
|
|
2
|
-
import * as
|
|
2
|
+
import * as __migrator_ts10 from "../migrator.js";
|
|
3
3
|
import { MigrationConfig } from "../migrator.js";
|
|
4
4
|
import { AnyRelations } from "../relations.js";
|
|
5
5
|
|
|
6
6
|
//#region src/better-sqlite3/migrator.d.ts
|
|
7
|
-
declare function migrate<TSchema extends Record<string, unknown>, TRelations extends AnyRelations>(db: BetterSQLite3Database<TSchema, TRelations>, config: MigrationConfig): void |
|
|
7
|
+
declare function migrate<TSchema extends Record<string, unknown>, TRelations extends AnyRelations>(db: BetterSQLite3Database<TSchema, TRelations>, config: MigrationConfig): void | __migrator_ts10.MigratorInitFailResponse;
|
|
8
8
|
//#endregion
|
|
9
9
|
export { migrate };
|
|
10
10
|
//# sourceMappingURL=migrator.d.ts.map
|
package/bun-sql/migrator.d.cts
CHANGED
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
import { BunMySqlDatabase } from "./mysql/driver.cjs";
|
|
2
2
|
import { BunSQLDatabase } from "./postgres/driver.cjs";
|
|
3
3
|
import { BunSQLiteDatabase } from "./sqlite/driver.cjs";
|
|
4
|
-
import * as
|
|
4
|
+
import * as __migrator_ts11 from "../migrator.cjs";
|
|
5
5
|
import { MigrationConfig } from "../migrator.cjs";
|
|
6
6
|
import { AnyRelations } from "../relations.cjs";
|
|
7
7
|
|
|
8
8
|
//#region src/bun-sql/migrator.d.ts
|
|
9
|
-
declare function migrate<TSchema extends Record<string, unknown>, TRelations extends AnyRelations>(db: BunSQLDatabase<TSchema, TRelations>, config: MigrationConfig): Promise<void |
|
|
9
|
+
declare function migrate<TSchema extends Record<string, unknown>, TRelations extends AnyRelations>(db: BunSQLDatabase<TSchema, TRelations>, config: MigrationConfig): Promise<void | __migrator_ts11.MigratorInitFailResponse>;
|
|
10
10
|
declare namespace migrate {
|
|
11
|
-
function postgres<TSchema extends Record<string, unknown>, TRelations extends AnyRelations>(db: BunSQLDatabase<TSchema, TRelations>, config: MigrationConfig): Promise<void |
|
|
12
|
-
function sqlite<TSchema extends Record<string, unknown>, TRelations extends AnyRelations>(db: BunSQLiteDatabase<TSchema, TRelations>, config: MigrationConfig): Promise<void |
|
|
13
|
-
function mysql<TSchema extends Record<string, unknown>, TRelations extends AnyRelations>(db: BunMySqlDatabase<TSchema, TRelations>, config: MigrationConfig): Promise<void |
|
|
11
|
+
function postgres<TSchema extends Record<string, unknown>, TRelations extends AnyRelations>(db: BunSQLDatabase<TSchema, TRelations>, config: MigrationConfig): Promise<void | __migrator_ts11.MigratorInitFailResponse>;
|
|
12
|
+
function sqlite<TSchema extends Record<string, unknown>, TRelations extends AnyRelations>(db: BunSQLiteDatabase<TSchema, TRelations>, config: MigrationConfig): Promise<void | __migrator_ts11.MigratorInitFailResponse>;
|
|
13
|
+
function mysql<TSchema extends Record<string, unknown>, TRelations extends AnyRelations>(db: BunMySqlDatabase<TSchema, TRelations>, config: MigrationConfig): Promise<void | __migrator_ts11.MigratorInitFailResponse>;
|
|
14
14
|
}
|
|
15
15
|
//#endregion
|
|
16
16
|
export { migrate };
|
package/bun-sql/migrator.d.ts
CHANGED
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
import { BunMySqlDatabase } from "./mysql/driver.js";
|
|
2
2
|
import { BunSQLDatabase } from "./postgres/driver.js";
|
|
3
3
|
import { BunSQLiteDatabase } from "./sqlite/driver.js";
|
|
4
|
-
import * as
|
|
4
|
+
import * as __migrator_ts17 from "../migrator.js";
|
|
5
5
|
import { MigrationConfig } from "../migrator.js";
|
|
6
6
|
import { AnyRelations } from "../relations.js";
|
|
7
7
|
|
|
8
8
|
//#region src/bun-sql/migrator.d.ts
|
|
9
|
-
declare function migrate<TSchema extends Record<string, unknown>, TRelations extends AnyRelations>(db: BunSQLDatabase<TSchema, TRelations>, config: MigrationConfig): Promise<void |
|
|
9
|
+
declare function migrate<TSchema extends Record<string, unknown>, TRelations extends AnyRelations>(db: BunSQLDatabase<TSchema, TRelations>, config: MigrationConfig): Promise<void | __migrator_ts17.MigratorInitFailResponse>;
|
|
10
10
|
declare namespace migrate {
|
|
11
|
-
function postgres<TSchema extends Record<string, unknown>, TRelations extends AnyRelations>(db: BunSQLDatabase<TSchema, TRelations>, config: MigrationConfig): Promise<void |
|
|
12
|
-
function sqlite<TSchema extends Record<string, unknown>, TRelations extends AnyRelations>(db: BunSQLiteDatabase<TSchema, TRelations>, config: MigrationConfig): Promise<void |
|
|
13
|
-
function mysql<TSchema extends Record<string, unknown>, TRelations extends AnyRelations>(db: BunMySqlDatabase<TSchema, TRelations>, config: MigrationConfig): Promise<void |
|
|
11
|
+
function postgres<TSchema extends Record<string, unknown>, TRelations extends AnyRelations>(db: BunSQLDatabase<TSchema, TRelations>, config: MigrationConfig): Promise<void | __migrator_ts17.MigratorInitFailResponse>;
|
|
12
|
+
function sqlite<TSchema extends Record<string, unknown>, TRelations extends AnyRelations>(db: BunSQLiteDatabase<TSchema, TRelations>, config: MigrationConfig): Promise<void | __migrator_ts17.MigratorInitFailResponse>;
|
|
13
|
+
function mysql<TSchema extends Record<string, unknown>, TRelations extends AnyRelations>(db: BunMySqlDatabase<TSchema, TRelations>, config: MigrationConfig): Promise<void | __migrator_ts17.MigratorInitFailResponse>;
|
|
14
14
|
}
|
|
15
15
|
//#endregion
|
|
16
16
|
export { migrate };
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { BunMySqlDatabase } from "./driver.cjs";
|
|
2
|
-
import * as
|
|
2
|
+
import * as __migrator_ts15 from "../../migrator.cjs";
|
|
3
3
|
import { MigrationConfig } from "../../migrator.cjs";
|
|
4
4
|
import { AnyRelations } from "../../relations.cjs";
|
|
5
5
|
|
|
6
6
|
//#region src/bun-sql/mysql/migrator.d.ts
|
|
7
|
-
declare function migrate<TSchema extends Record<string, unknown>, TRelations extends AnyRelations>(db: BunMySqlDatabase<TSchema, TRelations>, config: MigrationConfig): Promise<void |
|
|
7
|
+
declare function migrate<TSchema extends Record<string, unknown>, TRelations extends AnyRelations>(db: BunMySqlDatabase<TSchema, TRelations>, config: MigrationConfig): Promise<void | __migrator_ts15.MigratorInitFailResponse>;
|
|
8
8
|
//#endregion
|
|
9
9
|
export { migrate };
|
|
10
10
|
//# sourceMappingURL=migrator.d.cts.map
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { BunMySqlDatabase } from "./driver.js";
|
|
2
|
-
import * as
|
|
2
|
+
import * as __migrator_ts21 from "../../migrator.js";
|
|
3
3
|
import { MigrationConfig } from "../../migrator.js";
|
|
4
4
|
import { AnyRelations } from "../../relations.js";
|
|
5
5
|
|
|
6
6
|
//#region src/bun-sql/mysql/migrator.d.ts
|
|
7
|
-
declare function migrate<TSchema extends Record<string, unknown>, TRelations extends AnyRelations>(db: BunMySqlDatabase<TSchema, TRelations>, config: MigrationConfig): Promise<void |
|
|
7
|
+
declare function migrate<TSchema extends Record<string, unknown>, TRelations extends AnyRelations>(db: BunMySqlDatabase<TSchema, TRelations>, config: MigrationConfig): Promise<void | __migrator_ts21.MigratorInitFailResponse>;
|
|
8
8
|
//#endregion
|
|
9
9
|
export { migrate };
|
|
10
10
|
//# sourceMappingURL=migrator.d.ts.map
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { BunSQLDatabase } from "./driver.cjs";
|
|
2
|
-
import * as
|
|
2
|
+
import * as __migrator_ts16 from "../../migrator.cjs";
|
|
3
3
|
import { MigrationConfig } from "../../migrator.cjs";
|
|
4
4
|
import { AnyRelations } from "../../relations.cjs";
|
|
5
5
|
|
|
6
6
|
//#region src/bun-sql/postgres/migrator.d.ts
|
|
7
|
-
declare function migrate<TSchema extends Record<string, unknown>, TRelations extends AnyRelations>(db: BunSQLDatabase<TSchema, TRelations>, config: MigrationConfig): Promise<void |
|
|
7
|
+
declare function migrate<TSchema extends Record<string, unknown>, TRelations extends AnyRelations>(db: BunSQLDatabase<TSchema, TRelations>, config: MigrationConfig): Promise<void | __migrator_ts16.MigratorInitFailResponse>;
|
|
8
8
|
//#endregion
|
|
9
9
|
export { migrate };
|
|
10
10
|
//# sourceMappingURL=migrator.d.cts.map
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { BunSQLDatabase } from "./driver.js";
|
|
2
|
-
import * as
|
|
2
|
+
import * as __migrator_ts16 from "../../migrator.js";
|
|
3
3
|
import { MigrationConfig } from "../../migrator.js";
|
|
4
4
|
import { AnyRelations } from "../../relations.js";
|
|
5
5
|
|
|
6
6
|
//#region src/bun-sql/postgres/migrator.d.ts
|
|
7
|
-
declare function migrate<TSchema extends Record<string, unknown>, TRelations extends AnyRelations>(db: BunSQLDatabase<TSchema, TRelations>, config: MigrationConfig): Promise<void |
|
|
7
|
+
declare function migrate<TSchema extends Record<string, unknown>, TRelations extends AnyRelations>(db: BunSQLDatabase<TSchema, TRelations>, config: MigrationConfig): Promise<void | __migrator_ts16.MigratorInitFailResponse>;
|
|
8
8
|
//#endregion
|
|
9
9
|
export { migrate };
|
|
10
10
|
//# sourceMappingURL=migrator.d.ts.map
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { BunSQLiteDatabase } from "./driver.cjs";
|
|
2
|
-
import * as
|
|
2
|
+
import * as __migrator_ts17 from "../../migrator.cjs";
|
|
3
3
|
import { MigrationConfig } from "../../migrator.cjs";
|
|
4
4
|
import { AnyRelations } from "../../relations.cjs";
|
|
5
5
|
|
|
6
6
|
//#region src/bun-sql/sqlite/migrator.d.ts
|
|
7
|
-
declare function migrate<TSchema extends Record<string, unknown>, TRelations extends AnyRelations>(db: BunSQLiteDatabase<TSchema, TRelations>, config: MigrationConfig): Promise<void |
|
|
7
|
+
declare function migrate<TSchema extends Record<string, unknown>, TRelations extends AnyRelations>(db: BunSQLiteDatabase<TSchema, TRelations>, config: MigrationConfig): Promise<void | __migrator_ts17.MigratorInitFailResponse>;
|
|
8
8
|
//#endregion
|
|
9
9
|
export { migrate };
|
|
10
10
|
//# sourceMappingURL=migrator.d.cts.map
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { BunSQLiteDatabase } from "./driver.js";
|
|
2
|
-
import * as
|
|
2
|
+
import * as __migrator_ts22 from "../../migrator.js";
|
|
3
3
|
import { MigrationConfig } from "../../migrator.js";
|
|
4
4
|
import { AnyRelations } from "../../relations.js";
|
|
5
5
|
|
|
6
6
|
//#region src/bun-sql/sqlite/migrator.d.ts
|
|
7
|
-
declare function migrate<TSchema extends Record<string, unknown>, TRelations extends AnyRelations>(db: BunSQLiteDatabase<TSchema, TRelations>, config: MigrationConfig): Promise<void |
|
|
7
|
+
declare function migrate<TSchema extends Record<string, unknown>, TRelations extends AnyRelations>(db: BunSQLiteDatabase<TSchema, TRelations>, config: MigrationConfig): Promise<void | __migrator_ts22.MigratorInitFailResponse>;
|
|
8
8
|
//#endregion
|
|
9
9
|
export { migrate };
|
|
10
10
|
//# sourceMappingURL=migrator.d.ts.map
|
package/cockroach/migrator.d.cts
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { NodeCockroachDatabase } from "./driver.cjs";
|
|
2
|
-
import * as
|
|
2
|
+
import * as __migrator_ts10 from "../migrator.cjs";
|
|
3
3
|
import { MigrationConfig } from "../migrator.cjs";
|
|
4
4
|
|
|
5
5
|
//#region src/cockroach/migrator.d.ts
|
|
6
|
-
declare function migrate<TSchema extends Record<string, unknown>>(db: NodeCockroachDatabase<TSchema>, config: MigrationConfig): Promise<void |
|
|
6
|
+
declare function migrate<TSchema extends Record<string, unknown>>(db: NodeCockroachDatabase<TSchema>, config: MigrationConfig): Promise<void | __migrator_ts10.MigratorInitFailResponse>;
|
|
7
7
|
//#endregion
|
|
8
8
|
export { migrate };
|
|
9
9
|
//# sourceMappingURL=migrator.d.cts.map
|
package/cockroach/migrator.d.ts
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { NodeCockroachDatabase } from "./driver.js";
|
|
2
|
-
import * as
|
|
2
|
+
import * as __migrator_ts12 from "../migrator.js";
|
|
3
3
|
import { MigrationConfig } from "../migrator.js";
|
|
4
4
|
|
|
5
5
|
//#region src/cockroach/migrator.d.ts
|
|
6
|
-
declare function migrate<TSchema extends Record<string, unknown>>(db: NodeCockroachDatabase<TSchema>, config: MigrationConfig): Promise<void |
|
|
6
|
+
declare function migrate<TSchema extends Record<string, unknown>>(db: NodeCockroachDatabase<TSchema>, config: MigrationConfig): Promise<void | __migrator_ts12.MigratorInitFailResponse>;
|
|
7
7
|
//#endregion
|
|
8
8
|
export { migrate };
|
|
9
9
|
//# sourceMappingURL=migrator.d.ts.map
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { CockroachColumnWithArrayBuilder } from "./common.cjs";
|
|
2
2
|
import { entityKind } from "../../entity.cjs";
|
|
3
|
-
import * as
|
|
3
|
+
import * as __column_builder_ts0 from "../../column-builder.cjs";
|
|
4
4
|
import { ColumnBuilderBaseConfig, ColumnType } from "../../column-builder.cjs";
|
|
5
5
|
|
|
6
6
|
//#region src/cockroach-core/columns/date.common.d.ts
|
|
7
7
|
declare abstract class CockroachDateColumnBaseBuilder<T extends ColumnBuilderBaseConfig<ColumnType>, TRuntimeConfig extends object = object> extends CockroachColumnWithArrayBuilder<T, TRuntimeConfig> {
|
|
8
8
|
static readonly [entityKind]: string;
|
|
9
|
-
defaultNow():
|
|
9
|
+
defaultNow(): __column_builder_ts0.HasDefault<this>;
|
|
10
10
|
}
|
|
11
11
|
//#endregion
|
|
12
12
|
export { CockroachDateColumnBaseBuilder };
|
|
@@ -14,7 +14,7 @@ declare class EffectPgDatabase<TFullSchema extends Record<string, unknown> = Rec
|
|
|
14
14
|
static readonly [entityKind]: string;
|
|
15
15
|
}
|
|
16
16
|
type EffectDrizzleConfig<TSchema extends Record<string, unknown> = Record<string, never>, TRelations extends AnyRelations = EmptyRelations> = Omit<DrizzleConfig<TSchema, TRelations>, 'cache' | 'logger'>;
|
|
17
|
-
declare const DefaultServices: Layer.Layer<
|
|
17
|
+
declare const DefaultServices: Layer.Layer<EffectCache | EffectLogger, never, never>;
|
|
18
18
|
/**
|
|
19
19
|
* Creates an EffectPgDatabase instance.
|
|
20
20
|
*
|
|
@@ -43,7 +43,7 @@ declare const DefaultServices: Layer.Layer<EffectLogger | EffectCache, never, ne
|
|
|
43
43
|
*/
|
|
44
44
|
declare const make: <TSchema extends Record<string, unknown> = Record<string, never>, TRelations extends AnyRelations = EmptyRelations>(config?: EffectDrizzleConfig<TSchema, TRelations> | undefined) => Effect.Effect<EffectPgDatabase<TSchema, TRelations> & {
|
|
45
45
|
$client: PgClient;
|
|
46
|
-
}, never,
|
|
46
|
+
}, never, EffectCache | EffectLogger | PgClient>;
|
|
47
47
|
/**
|
|
48
48
|
* Convenience function that creates an EffectPgDatabase with `DefaultServices` already provided.
|
|
49
49
|
*/
|
|
@@ -14,7 +14,7 @@ declare class EffectPgDatabase<TFullSchema extends Record<string, unknown> = Rec
|
|
|
14
14
|
static readonly [entityKind]: string;
|
|
15
15
|
}
|
|
16
16
|
type EffectDrizzleConfig<TSchema extends Record<string, unknown> = Record<string, never>, TRelations extends AnyRelations = EmptyRelations> = Omit<DrizzleConfig<TSchema, TRelations>, 'cache' | 'logger'>;
|
|
17
|
-
declare const DefaultServices: Layer.Layer<
|
|
17
|
+
declare const DefaultServices: Layer.Layer<EffectCache | EffectLogger, never, never>;
|
|
18
18
|
/**
|
|
19
19
|
* Creates an EffectPgDatabase instance.
|
|
20
20
|
*
|
|
@@ -43,7 +43,7 @@ declare const DefaultServices: Layer.Layer<EffectLogger | EffectCache, never, ne
|
|
|
43
43
|
*/
|
|
44
44
|
declare const make: <TSchema extends Record<string, unknown> = Record<string, never>, TRelations extends AnyRelations = EmptyRelations>(config?: EffectDrizzleConfig<TSchema, TRelations> | undefined) => Effect.Effect<EffectPgDatabase<TSchema, TRelations> & {
|
|
45
45
|
$client: PgClient;
|
|
46
|
-
}, never,
|
|
46
|
+
}, never, EffectCache | EffectLogger | PgClient>;
|
|
47
47
|
/**
|
|
48
48
|
* Convenience function that creates an EffectPgDatabase with `DefaultServices` already provided.
|
|
49
49
|
*/
|
|
@@ -6,7 +6,7 @@ import * as effect_Effect0 from "effect/Effect";
|
|
|
6
6
|
import * as _effect_sql_SqlError0 from "@effect/sql/SqlError";
|
|
7
7
|
|
|
8
8
|
//#region src/effect-postgres/migrator.d.ts
|
|
9
|
-
declare function migrate<TSchema extends Record<string, unknown>, TRelations extends AnyRelations>(db: EffectPgDatabase<TSchema, TRelations>, config: MigrationConfig): effect_Effect0.Effect<undefined, EffectDrizzleQueryError |
|
|
9
|
+
declare function migrate<TSchema extends Record<string, unknown>, TRelations extends AnyRelations>(db: EffectPgDatabase<TSchema, TRelations>, config: MigrationConfig): effect_Effect0.Effect<undefined, EffectDrizzleQueryError | _effect_sql_SqlError0.SqlError | MigratorInitError, never>;
|
|
10
10
|
//#endregion
|
|
11
11
|
export { migrate };
|
|
12
12
|
//# sourceMappingURL=migrator.d.cts.map
|
|
@@ -6,7 +6,7 @@ import * as effect_Effect0 from "effect/Effect";
|
|
|
6
6
|
import * as _effect_sql_SqlError0 from "@effect/sql/SqlError";
|
|
7
7
|
|
|
8
8
|
//#region src/effect-postgres/migrator.d.ts
|
|
9
|
-
declare function migrate<TSchema extends Record<string, unknown>, TRelations extends AnyRelations>(db: EffectPgDatabase<TSchema, TRelations>, config: MigrationConfig): effect_Effect0.Effect<undefined, EffectDrizzleQueryError |
|
|
9
|
+
declare function migrate<TSchema extends Record<string, unknown>, TRelations extends AnyRelations>(db: EffectPgDatabase<TSchema, TRelations>, config: MigrationConfig): effect_Effect0.Effect<undefined, EffectDrizzleQueryError | _effect_sql_SqlError0.SqlError | MigratorInitError, never>;
|
|
10
10
|
//#endregion
|
|
11
11
|
export { migrate };
|
|
12
12
|
//# sourceMappingURL=migrator.d.ts.map
|
package/entity.cjs
CHANGED
|
@@ -6,7 +6,7 @@ function is(value, type) {
|
|
|
6
6
|
if (!value || typeof value !== "object") return false;
|
|
7
7
|
if (value instanceof type) return true;
|
|
8
8
|
if (!Object.prototype.hasOwnProperty.call(type, entityKind)) throw new Error(`Class "${type.name ?? "<unknown>"}" doesn't look like a Drizzle entity. If this is incorrect and the class is provided by Drizzle, please report this as a bug.`);
|
|
9
|
-
let cls = Object.getPrototypeOf(value)
|
|
9
|
+
let cls = Object.getPrototypeOf(value)?.constructor;
|
|
10
10
|
if (cls) while (cls) {
|
|
11
11
|
if (entityKind in cls && cls[entityKind] === type[entityKind]) return true;
|
|
12
12
|
cls = Object.getPrototypeOf(cls);
|
package/entity.cjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"entity.cjs","names":[],"sources":["../src/entity.ts"],"sourcesContent":["export const entityKind = Symbol.for('drizzle:entityKind');\nexport const hasOwnEntityKind = Symbol.for('drizzle:hasOwnEntityKind');\n\nexport interface DrizzleEntity {\n\t[entityKind]: string;\n}\n\nexport type DrizzleEntityClass<T> =\n\t& ((abstract new(...args: any[]) => T) | (new(...args: any[]) => T))\n\t& DrizzleEntity;\n\nexport function is<T extends DrizzleEntityClass<any>>(value: any, type: T): value is InstanceType<T> {\n\tif (!value || typeof value !== 'object') {\n\t\treturn false;\n\t}\n\n\tif (value instanceof type) { // oxlint-disable-line drizzle-internal/no-instanceof\n\t\treturn true;\n\t}\n\n\tif (!Object.prototype.hasOwnProperty.call(type, entityKind)) {\n\t\tthrow new Error(\n\t\t\t`Class \"${\n\t\t\t\ttype.name ?? '<unknown>'\n\t\t\t}\" doesn't look like a Drizzle entity. If this is incorrect and the class is provided by Drizzle, please report this as a bug.`,\n\t\t);\n\t}\n\n\tlet cls = Object.getPrototypeOf(value)
|
|
1
|
+
{"version":3,"file":"entity.cjs","names":[],"sources":["../src/entity.ts"],"sourcesContent":["export const entityKind = Symbol.for('drizzle:entityKind');\nexport const hasOwnEntityKind = Symbol.for('drizzle:hasOwnEntityKind');\n\nexport interface DrizzleEntity {\n\t[entityKind]: string;\n}\n\nexport type DrizzleEntityClass<T> =\n\t& ((abstract new(...args: any[]) => T) | (new(...args: any[]) => T))\n\t& DrizzleEntity;\n\nexport function is<T extends DrizzleEntityClass<any>>(value: any, type: T): value is InstanceType<T> {\n\tif (!value || typeof value !== 'object') {\n\t\treturn false;\n\t}\n\n\tif (value instanceof type) { // oxlint-disable-line drizzle-internal/no-instanceof\n\t\treturn true;\n\t}\n\n\tif (!Object.prototype.hasOwnProperty.call(type, entityKind)) {\n\t\tthrow new Error(\n\t\t\t`Class \"${\n\t\t\t\ttype.name ?? '<unknown>'\n\t\t\t}\" doesn't look like a Drizzle entity. If this is incorrect and the class is provided by Drizzle, please report this as a bug.`,\n\t\t);\n\t}\n\n\tlet cls = Object.getPrototypeOf(value)?.constructor;\n\tif (cls) {\n\t\t// Traverse the prototype chain to find the entityKind\n\t\twhile (cls) {\n\t\t\tif (entityKind in cls && cls[entityKind] === type[entityKind]) {\n\t\t\t\treturn true;\n\t\t\t}\n\n\t\t\tcls = Object.getPrototypeOf(cls);\n\t\t}\n\t}\n\n\treturn false;\n}\n"],"mappings":";;AAAA,MAAa,aAAa,OAAO,IAAI,qBAAqB;AAC1D,MAAa,mBAAmB,OAAO,IAAI,2BAA2B;AAUtE,SAAgB,GAAsC,OAAY,MAAmC;AACpG,KAAI,CAAC,SAAS,OAAO,UAAU,SAC9B,QAAO;AAGR,KAAI,iBAAiB,KACpB,QAAO;AAGR,KAAI,CAAC,OAAO,UAAU,eAAe,KAAK,MAAM,WAAW,CAC1D,OAAM,IAAI,MACT,UACC,KAAK,QAAQ,YACb,+HACD;CAGF,IAAI,MAAM,OAAO,eAAe,MAAM,EAAE;AACxC,KAAI,IAEH,QAAO,KAAK;AACX,MAAI,cAAc,OAAO,IAAI,gBAAgB,KAAK,YACjD,QAAO;AAGR,QAAM,OAAO,eAAe,IAAI;;AAIlC,QAAO"}
|
package/entity.js
CHANGED
|
@@ -5,7 +5,7 @@ function is(value, type) {
|
|
|
5
5
|
if (!value || typeof value !== "object") return false;
|
|
6
6
|
if (value instanceof type) return true;
|
|
7
7
|
if (!Object.prototype.hasOwnProperty.call(type, entityKind)) throw new Error(`Class "${type.name ?? "<unknown>"}" doesn't look like a Drizzle entity. If this is incorrect and the class is provided by Drizzle, please report this as a bug.`);
|
|
8
|
-
let cls = Object.getPrototypeOf(value)
|
|
8
|
+
let cls = Object.getPrototypeOf(value)?.constructor;
|
|
9
9
|
if (cls) while (cls) {
|
|
10
10
|
if (entityKind in cls && cls[entityKind] === type[entityKind]) return true;
|
|
11
11
|
cls = Object.getPrototypeOf(cls);
|
package/entity.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"entity.js","names":[],"sources":["../src/entity.ts"],"sourcesContent":["export const entityKind = Symbol.for('drizzle:entityKind');\nexport const hasOwnEntityKind = Symbol.for('drizzle:hasOwnEntityKind');\n\nexport interface DrizzleEntity {\n\t[entityKind]: string;\n}\n\nexport type DrizzleEntityClass<T> =\n\t& ((abstract new(...args: any[]) => T) | (new(...args: any[]) => T))\n\t& DrizzleEntity;\n\nexport function is<T extends DrizzleEntityClass<any>>(value: any, type: T): value is InstanceType<T> {\n\tif (!value || typeof value !== 'object') {\n\t\treturn false;\n\t}\n\n\tif (value instanceof type) { // oxlint-disable-line drizzle-internal/no-instanceof\n\t\treturn true;\n\t}\n\n\tif (!Object.prototype.hasOwnProperty.call(type, entityKind)) {\n\t\tthrow new Error(\n\t\t\t`Class \"${\n\t\t\t\ttype.name ?? '<unknown>'\n\t\t\t}\" doesn't look like a Drizzle entity. If this is incorrect and the class is provided by Drizzle, please report this as a bug.`,\n\t\t);\n\t}\n\n\tlet cls = Object.getPrototypeOf(value)
|
|
1
|
+
{"version":3,"file":"entity.js","names":[],"sources":["../src/entity.ts"],"sourcesContent":["export const entityKind = Symbol.for('drizzle:entityKind');\nexport const hasOwnEntityKind = Symbol.for('drizzle:hasOwnEntityKind');\n\nexport interface DrizzleEntity {\n\t[entityKind]: string;\n}\n\nexport type DrizzleEntityClass<T> =\n\t& ((abstract new(...args: any[]) => T) | (new(...args: any[]) => T))\n\t& DrizzleEntity;\n\nexport function is<T extends DrizzleEntityClass<any>>(value: any, type: T): value is InstanceType<T> {\n\tif (!value || typeof value !== 'object') {\n\t\treturn false;\n\t}\n\n\tif (value instanceof type) { // oxlint-disable-line drizzle-internal/no-instanceof\n\t\treturn true;\n\t}\n\n\tif (!Object.prototype.hasOwnProperty.call(type, entityKind)) {\n\t\tthrow new Error(\n\t\t\t`Class \"${\n\t\t\t\ttype.name ?? '<unknown>'\n\t\t\t}\" doesn't look like a Drizzle entity. If this is incorrect and the class is provided by Drizzle, please report this as a bug.`,\n\t\t);\n\t}\n\n\tlet cls = Object.getPrototypeOf(value)?.constructor;\n\tif (cls) {\n\t\t// Traverse the prototype chain to find the entityKind\n\t\twhile (cls) {\n\t\t\tif (entityKind in cls && cls[entityKind] === type[entityKind]) {\n\t\t\t\treturn true;\n\t\t\t}\n\n\t\t\tcls = Object.getPrototypeOf(cls);\n\t\t}\n\t}\n\n\treturn false;\n}\n"],"mappings":";AAAA,MAAa,aAAa,OAAO,IAAI,qBAAqB;AAC1D,MAAa,mBAAmB,OAAO,IAAI,2BAA2B;AAUtE,SAAgB,GAAsC,OAAY,MAAmC;AACpG,KAAI,CAAC,SAAS,OAAO,UAAU,SAC9B,QAAO;AAGR,KAAI,iBAAiB,KACpB,QAAO;AAGR,KAAI,CAAC,OAAO,UAAU,eAAe,KAAK,MAAM,WAAW,CAC1D,OAAM,IAAI,MACT,UACC,KAAK,QAAQ,YACb,+HACD;CAGF,IAAI,MAAM,OAAO,eAAe,MAAM,EAAE;AACxC,KAAI,IAEH,QAAO,KAAK;AACX,MAAI,cAAc,OAAO,IAAI,gBAAgB,KAAK,YACjD,QAAO;AAGR,QAAM,OAAO,eAAe,IAAI;;AAIlC,QAAO"}
|
package/gel-core/utils.d.cts
CHANGED
|
@@ -10,7 +10,7 @@ import "./columns/index.cjs";
|
|
|
10
10
|
import { GelViewBase } from "./view-base.cjs";
|
|
11
11
|
import { GelMaterializedView, GelMaterializedViewWithConfig, GelView, ViewWithConfig } from "./view.cjs";
|
|
12
12
|
import "./index.cjs";
|
|
13
|
-
import * as
|
|
13
|
+
import * as __sql_sql_ts3 from "../sql/sql.cjs";
|
|
14
14
|
import { SQL } from "../sql/sql.cjs";
|
|
15
15
|
import { Subquery } from "../subquery.cjs";
|
|
16
16
|
|
|
@@ -33,7 +33,7 @@ declare function getViewConfig<TName extends string = string, TExisting extends
|
|
|
33
33
|
name: TName;
|
|
34
34
|
originalName: TName;
|
|
35
35
|
schema: string | undefined;
|
|
36
|
-
selectedFields:
|
|
36
|
+
selectedFields: __sql_sql_ts3.ColumnsSelection;
|
|
37
37
|
isExisting: TExisting;
|
|
38
38
|
query: TExisting extends true ? undefined : SQL<unknown>;
|
|
39
39
|
isAlias: boolean;
|
|
@@ -46,7 +46,7 @@ declare function getMaterializedViewConfig<TName extends string = string, TExist
|
|
|
46
46
|
name: TName;
|
|
47
47
|
originalName: TName;
|
|
48
48
|
schema: string | undefined;
|
|
49
|
-
selectedFields:
|
|
49
|
+
selectedFields: __sql_sql_ts3.ColumnsSelection;
|
|
50
50
|
isExisting: TExisting;
|
|
51
51
|
query: TExisting extends true ? undefined : SQL<unknown>;
|
|
52
52
|
isAlias: boolean;
|
package/gel-core/utils.d.ts
CHANGED
|
@@ -11,7 +11,7 @@ import { GelViewBase } from "./view-base.js";
|
|
|
11
11
|
import { GelMaterializedView, GelMaterializedViewWithConfig, GelView, ViewWithConfig } from "./view.js";
|
|
12
12
|
import "./index.js";
|
|
13
13
|
import { Subquery } from "../subquery.js";
|
|
14
|
-
import * as
|
|
14
|
+
import * as __sql_sql_ts3 from "../sql/sql.js";
|
|
15
15
|
import { SQL } from "../sql/sql.js";
|
|
16
16
|
|
|
17
17
|
//#region src/gel-core/utils.d.ts
|
|
@@ -33,7 +33,7 @@ declare function getViewConfig<TName extends string = string, TExisting extends
|
|
|
33
33
|
name: TName;
|
|
34
34
|
originalName: TName;
|
|
35
35
|
schema: string | undefined;
|
|
36
|
-
selectedFields:
|
|
36
|
+
selectedFields: __sql_sql_ts3.ColumnsSelection;
|
|
37
37
|
isExisting: TExisting;
|
|
38
38
|
query: TExisting extends true ? undefined : SQL<unknown>;
|
|
39
39
|
isAlias: boolean;
|
|
@@ -46,7 +46,7 @@ declare function getMaterializedViewConfig<TName extends string = string, TExist
|
|
|
46
46
|
name: TName;
|
|
47
47
|
originalName: TName;
|
|
48
48
|
schema: string | undefined;
|
|
49
|
-
selectedFields:
|
|
49
|
+
selectedFields: __sql_sql_ts3.ColumnsSelection;
|
|
50
50
|
isExisting: TExisting;
|
|
51
51
|
query: TExisting extends true ? undefined : SQL<unknown>;
|
|
52
52
|
isAlias: boolean;
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { MsSqlColumnBuilder } from "./common.cjs";
|
|
2
2
|
import { entityKind } from "../../entity.cjs";
|
|
3
|
-
import * as
|
|
3
|
+
import * as __column_builder_ts1 from "../../column-builder.cjs";
|
|
4
4
|
import { ColumnBuilderBaseConfig, ColumnBuilderExtraConfig, ColumnType } from "../../column-builder.cjs";
|
|
5
5
|
|
|
6
6
|
//#region src/mssql-core/columns/date.common.d.ts
|
|
7
7
|
declare abstract class MsSqlDateColumnBaseBuilder<T extends ColumnBuilderBaseConfig<ColumnType>, TRuntimeConfig extends object = object, TExtraConfig extends ColumnBuilderExtraConfig = ColumnBuilderExtraConfig> extends MsSqlColumnBuilder<T, TRuntimeConfig, TExtraConfig> {
|
|
8
8
|
static readonly [entityKind]: string;
|
|
9
|
-
defaultGetDate():
|
|
9
|
+
defaultGetDate(): __column_builder_ts1.HasDefault<this>;
|
|
10
10
|
}
|
|
11
11
|
type DatetimePrecision = 0 | 1 | 2 | 3 | 4 | 5 | 6 | 7;
|
|
12
12
|
interface MsSqlDatetimeConfig<TMode extends 'date' | 'string' = 'date' | 'string'> {
|
package/mysql2/migrator.d.cts
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { MySql2Database } from "./driver.cjs";
|
|
2
|
-
import * as
|
|
2
|
+
import * as __migrator_ts5 from "../migrator.cjs";
|
|
3
3
|
import { MigrationConfig } from "../migrator.cjs";
|
|
4
4
|
import { AnyRelations } from "../relations.cjs";
|
|
5
5
|
|
|
6
6
|
//#region src/mysql2/migrator.d.ts
|
|
7
|
-
declare function migrate<TSchema extends Record<string, unknown>, TRelations extends AnyRelations>(db: MySql2Database<TSchema, TRelations>, config: MigrationConfig): Promise<void |
|
|
7
|
+
declare function migrate<TSchema extends Record<string, unknown>, TRelations extends AnyRelations>(db: MySql2Database<TSchema, TRelations>, config: MigrationConfig): Promise<void | __migrator_ts5.MigratorInitFailResponse>;
|
|
8
8
|
//#endregion
|
|
9
9
|
export { migrate };
|
|
10
10
|
//# sourceMappingURL=migrator.d.cts.map
|
package/mysql2/migrator.d.ts
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { MySql2Database } from "./driver.js";
|
|
2
|
-
import * as
|
|
2
|
+
import * as __migrator_ts5 from "../migrator.js";
|
|
3
3
|
import { MigrationConfig } from "../migrator.js";
|
|
4
4
|
import { AnyRelations } from "../relations.js";
|
|
5
5
|
|
|
6
6
|
//#region src/mysql2/migrator.d.ts
|
|
7
|
-
declare function migrate<TSchema extends Record<string, unknown>, TRelations extends AnyRelations>(db: MySql2Database<TSchema, TRelations>, config: MigrationConfig): Promise<void |
|
|
7
|
+
declare function migrate<TSchema extends Record<string, unknown>, TRelations extends AnyRelations>(db: MySql2Database<TSchema, TRelations>, config: MigrationConfig): Promise<void | __migrator_ts5.MigratorInitFailResponse>;
|
|
8
8
|
//#endregion
|
|
9
9
|
export { migrate };
|
|
10
10
|
//# sourceMappingURL=migrator.d.ts.map
|
package/neon/neon-auth.d.cts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as __pg_core_index_ts0 from "../pg-core/index.cjs";
|
|
2
2
|
|
|
3
3
|
//#region src/neon/neon-auth.d.ts
|
|
4
4
|
|
|
@@ -9,11 +9,11 @@ import * as __pg_core_index_ts29 from "../pg-core/index.cjs";
|
|
|
9
9
|
* @schema neon_auth
|
|
10
10
|
* @table users_sync
|
|
11
11
|
*/
|
|
12
|
-
declare const usersSync:
|
|
12
|
+
declare const usersSync: __pg_core_index_ts0.PgTableWithColumns<{
|
|
13
13
|
name: "users_sync";
|
|
14
14
|
schema: "neon_auth";
|
|
15
15
|
columns: {
|
|
16
|
-
rawJson:
|
|
16
|
+
rawJson: __pg_core_index_ts0.PgBuildColumn<"users_sync", __pg_core_index_ts0.SetNotNull<__pg_core_index_ts0.PgJsonbBuilder>, {
|
|
17
17
|
name: string;
|
|
18
18
|
tableName: "users_sync";
|
|
19
19
|
dataType: "object json";
|
|
@@ -28,7 +28,7 @@ declare const usersSync: __pg_core_index_ts29.PgTableWithColumns<{
|
|
|
28
28
|
identity: undefined;
|
|
29
29
|
generated: undefined;
|
|
30
30
|
}>;
|
|
31
|
-
id:
|
|
31
|
+
id: __pg_core_index_ts0.PgBuildColumn<"users_sync", __pg_core_index_ts0.SetNotNull<__pg_core_index_ts0.SetIsPrimaryKey<__pg_core_index_ts0.PgTextBuilder<[string, ...string[]]>>>, {
|
|
32
32
|
name: string;
|
|
33
33
|
tableName: "users_sync";
|
|
34
34
|
dataType: "string";
|
|
@@ -43,7 +43,7 @@ declare const usersSync: __pg_core_index_ts29.PgTableWithColumns<{
|
|
|
43
43
|
identity: undefined;
|
|
44
44
|
generated: undefined;
|
|
45
45
|
}>;
|
|
46
|
-
name:
|
|
46
|
+
name: __pg_core_index_ts0.PgBuildColumn<"users_sync", __pg_core_index_ts0.PgTextBuilder<[string, ...string[]]>, {
|
|
47
47
|
name: string;
|
|
48
48
|
tableName: "users_sync";
|
|
49
49
|
dataType: "string";
|
|
@@ -58,7 +58,7 @@ declare const usersSync: __pg_core_index_ts29.PgTableWithColumns<{
|
|
|
58
58
|
identity: undefined;
|
|
59
59
|
generated: undefined;
|
|
60
60
|
}>;
|
|
61
|
-
email:
|
|
61
|
+
email: __pg_core_index_ts0.PgBuildColumn<"users_sync", __pg_core_index_ts0.PgTextBuilder<[string, ...string[]]>, {
|
|
62
62
|
name: string;
|
|
63
63
|
tableName: "users_sync";
|
|
64
64
|
dataType: "string";
|
|
@@ -73,7 +73,7 @@ declare const usersSync: __pg_core_index_ts29.PgTableWithColumns<{
|
|
|
73
73
|
identity: undefined;
|
|
74
74
|
generated: undefined;
|
|
75
75
|
}>;
|
|
76
|
-
createdAt:
|
|
76
|
+
createdAt: __pg_core_index_ts0.PgBuildColumn<"users_sync", __pg_core_index_ts0.PgTimestampStringBuilder, {
|
|
77
77
|
name: string;
|
|
78
78
|
tableName: "users_sync";
|
|
79
79
|
dataType: "string timestamp";
|
|
@@ -88,7 +88,7 @@ declare const usersSync: __pg_core_index_ts29.PgTableWithColumns<{
|
|
|
88
88
|
identity: undefined;
|
|
89
89
|
generated: undefined;
|
|
90
90
|
}>;
|
|
91
|
-
deletedAt:
|
|
91
|
+
deletedAt: __pg_core_index_ts0.PgBuildColumn<"users_sync", __pg_core_index_ts0.PgTimestampStringBuilder, {
|
|
92
92
|
name: string;
|
|
93
93
|
tableName: "users_sync";
|
|
94
94
|
dataType: "string timestamp";
|
|
@@ -103,7 +103,7 @@ declare const usersSync: __pg_core_index_ts29.PgTableWithColumns<{
|
|
|
103
103
|
identity: undefined;
|
|
104
104
|
generated: undefined;
|
|
105
105
|
}>;
|
|
106
|
-
updatedAt:
|
|
106
|
+
updatedAt: __pg_core_index_ts0.PgBuildColumn<"users_sync", __pg_core_index_ts0.PgTimestampStringBuilder, {
|
|
107
107
|
name: string;
|
|
108
108
|
tableName: "users_sync";
|
|
109
109
|
dataType: "string timestamp";
|
package/neon/rls.d.cts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { SQL } from "../sql/sql.cjs";
|
|
2
|
-
import * as
|
|
2
|
+
import * as __pg_core_index_ts17 from "../pg-core/index.cjs";
|
|
3
3
|
import { AnyPgColumn, PgPolicyToOption } from "../pg-core/index.cjs";
|
|
4
4
|
import { PgRole } from "../pg-core/roles.cjs";
|
|
5
5
|
|
|
@@ -18,7 +18,7 @@ declare const crudPolicy: (options: {
|
|
|
18
18
|
role: PgPolicyToOption;
|
|
19
19
|
read: SQL | boolean | null;
|
|
20
20
|
modify: SQL | boolean | null;
|
|
21
|
-
}) => (
|
|
21
|
+
}) => (__pg_core_index_ts17.PgPolicy | undefined)[];
|
|
22
22
|
declare const authenticatedRole: PgRole;
|
|
23
23
|
declare const anonymousRole: PgRole;
|
|
24
24
|
declare const authUid: (userIdColumn: AnyPgColumn) => SQL<unknown>;
|
package/neon/rls.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { SQL } from "../sql/sql.js";
|
|
2
|
-
import * as
|
|
2
|
+
import * as __pg_core_index_ts17 from "../pg-core/index.js";
|
|
3
3
|
import { AnyPgColumn, PgPolicyToOption } from "../pg-core/index.js";
|
|
4
4
|
import { PgRole } from "../pg-core/roles.js";
|
|
5
5
|
|
|
@@ -18,7 +18,7 @@ declare const crudPolicy: (options: {
|
|
|
18
18
|
role: PgPolicyToOption;
|
|
19
19
|
read: SQL | boolean | null;
|
|
20
20
|
modify: SQL | boolean | null;
|
|
21
|
-
}) => (
|
|
21
|
+
}) => (__pg_core_index_ts17.PgPolicy | undefined)[];
|
|
22
22
|
declare const authenticatedRole: PgRole;
|
|
23
23
|
declare const anonymousRole: PgRole;
|
|
24
24
|
declare const authUid: (userIdColumn: AnyPgColumn) => SQL<unknown>;
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { NeonDatabase } from "./driver.cjs";
|
|
2
|
-
import * as
|
|
2
|
+
import * as __migrator_ts18 from "../migrator.cjs";
|
|
3
3
|
import { MigrationConfig } from "../migrator.cjs";
|
|
4
4
|
import { AnyRelations } from "../relations.cjs";
|
|
5
5
|
|
|
6
6
|
//#region src/neon-serverless/migrator.d.ts
|
|
7
|
-
declare function migrate<TSchema extends Record<string, unknown>, TRelations extends AnyRelations>(db: NeonDatabase<TSchema, TRelations>, config: MigrationConfig): Promise<void |
|
|
7
|
+
declare function migrate<TSchema extends Record<string, unknown>, TRelations extends AnyRelations>(db: NeonDatabase<TSchema, TRelations>, config: MigrationConfig): Promise<void | __migrator_ts18.MigratorInitFailResponse>;
|
|
8
8
|
//#endregion
|
|
9
9
|
export { migrate };
|
|
10
10
|
//# sourceMappingURL=migrator.d.cts.map
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { NeonDatabase } from "./driver.js";
|
|
2
|
-
import * as
|
|
2
|
+
import * as __migrator_ts11 from "../migrator.js";
|
|
3
3
|
import { MigrationConfig } from "../migrator.js";
|
|
4
4
|
import { AnyRelations } from "../relations.js";
|
|
5
5
|
|
|
6
6
|
//#region src/neon-serverless/migrator.d.ts
|
|
7
|
-
declare function migrate<TSchema extends Record<string, unknown>, TRelations extends AnyRelations>(db: NeonDatabase<TSchema, TRelations>, config: MigrationConfig): Promise<void |
|
|
7
|
+
declare function migrate<TSchema extends Record<string, unknown>, TRelations extends AnyRelations>(db: NeonDatabase<TSchema, TRelations>, config: MigrationConfig): Promise<void | __migrator_ts11.MigratorInitFailResponse>;
|
|
8
8
|
//#endregion
|
|
9
9
|
export { migrate };
|
|
10
10
|
//# sourceMappingURL=migrator.d.ts.map
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { NodeMsSqlDatabase } from "./driver.cjs";
|
|
2
|
-
import * as
|
|
2
|
+
import * as __migrator_ts20 from "../migrator.cjs";
|
|
3
3
|
import { MigrationConfig } from "../migrator.cjs";
|
|
4
4
|
|
|
5
5
|
//#region src/node-mssql/migrator.d.ts
|
|
6
|
-
declare function migrate<TSchema extends Record<string, unknown>>(db: NodeMsSqlDatabase<TSchema>, config: MigrationConfig): Promise<void |
|
|
6
|
+
declare function migrate<TSchema extends Record<string, unknown>>(db: NodeMsSqlDatabase<TSchema>, config: MigrationConfig): Promise<void | __migrator_ts20.MigratorInitFailResponse>;
|
|
7
7
|
//#endregion
|
|
8
8
|
export { migrate };
|
|
9
9
|
//# sourceMappingURL=migrator.d.cts.map
|
package/node-mssql/migrator.d.ts
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { NodeMsSqlDatabase } from "./driver.js";
|
|
2
|
-
import * as
|
|
2
|
+
import * as __migrator_ts13 from "../migrator.js";
|
|
3
3
|
import { MigrationConfig } from "../migrator.js";
|
|
4
4
|
|
|
5
5
|
//#region src/node-mssql/migrator.d.ts
|
|
6
|
-
declare function migrate<TSchema extends Record<string, unknown>>(db: NodeMsSqlDatabase<TSchema>, config: MigrationConfig): Promise<void |
|
|
6
|
+
declare function migrate<TSchema extends Record<string, unknown>>(db: NodeMsSqlDatabase<TSchema>, config: MigrationConfig): Promise<void | __migrator_ts13.MigratorInitFailResponse>;
|
|
7
7
|
//#endregion
|
|
8
8
|
export { migrate };
|
|
9
9
|
//# sourceMappingURL=migrator.d.ts.map
|