drizzle-orm 0.32.0-4ed01aa → 0.32.0-55471
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/package.json +1 -1
- package/pg-core/sequence.cjs +6 -11
- package/pg-core/sequence.cjs.map +1 -1
- package/pg-core/sequence.d.cts +2 -1
- package/pg-core/sequence.d.ts +2 -1
- package/pg-core/sequence.js +6 -11
- package/pg-core/sequence.js.map +1 -1
- package/version.cjs +1 -1
- package/version.d.cts +1 -1
- package/version.d.ts +1 -1
- package/version.js +1 -1
package/package.json
CHANGED
package/pg-core/sequence.cjs
CHANGED
|
@@ -26,23 +26,18 @@ __export(sequence_exports, {
|
|
|
26
26
|
module.exports = __toCommonJS(sequence_exports);
|
|
27
27
|
var import_entity = require("../entity.cjs");
|
|
28
28
|
class PgSequence {
|
|
29
|
+
constructor(seqName, seqOptions, schema) {
|
|
30
|
+
this.seqName = seqName;
|
|
31
|
+
this.seqOptions = seqOptions;
|
|
32
|
+
this.schema = schema;
|
|
33
|
+
}
|
|
29
34
|
static [import_entity.entityKind] = "PgSequence";
|
|
30
|
-
seqName;
|
|
31
|
-
seqOptions;
|
|
32
|
-
schema;
|
|
33
35
|
}
|
|
34
36
|
function pgSequence(name, options) {
|
|
35
37
|
return pgSequenceWithSchema(name, options, void 0);
|
|
36
38
|
}
|
|
37
39
|
function pgSequenceWithSchema(name, options, schema) {
|
|
38
|
-
|
|
39
|
-
{
|
|
40
|
-
name,
|
|
41
|
-
seqOptions: options,
|
|
42
|
-
schema
|
|
43
|
-
}
|
|
44
|
-
);
|
|
45
|
-
return sequenceInstance;
|
|
40
|
+
return new PgSequence(name, options, schema);
|
|
46
41
|
}
|
|
47
42
|
function isPgSequence(obj) {
|
|
48
43
|
return (0, import_entity.is)(obj, PgSequence);
|
package/pg-core/sequence.cjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../src/pg-core/sequence.ts"],"sourcesContent":["import { entityKind, is } from '~/entity.ts';\n\nexport type PgSequenceOptions = {\n\tincrement?: number;\n\tminValue?: number;\n\tmaxValue?: number;\n\tstartWith?: number;\n\tcache?: number;\n\tcycle?: boolean;\n};\n\nexport class PgSequence {\n\tstatic readonly [entityKind]: string = 'PgSequence';\n\n\
|
|
1
|
+
{"version":3,"sources":["../../src/pg-core/sequence.ts"],"sourcesContent":["import { entityKind, is } from '~/entity.ts';\n\nexport type PgSequenceOptions = {\n\tincrement?: number;\n\tminValue?: number;\n\tmaxValue?: number;\n\tstartWith?: number;\n\tcache?: number;\n\tcycle?: boolean;\n};\n\nexport class PgSequence {\n\tstatic readonly [entityKind]: string = 'PgSequence';\n\n\tconstructor(\n\t\tpublic readonly seqName: string | undefined,\n\t\tpublic readonly seqOptions: PgSequenceOptions | undefined,\n\t\tpublic readonly schema: string | undefined,\n\t) {\n\t}\n}\n\nexport function pgSequence(\n\tname: string,\n\toptions: PgSequenceOptions,\n): PgSequence {\n\treturn pgSequenceWithSchema(name, options, undefined);\n}\n\n/** @internal */\nexport function pgSequenceWithSchema(\n\tname: string,\n\toptions: PgSequenceOptions,\n\tschema?: string,\n): PgSequence {\n\treturn new PgSequence(name, options, schema);\n}\n\nexport function isPgSequence(obj: unknown): obj is PgSequence {\n\treturn is(obj, PgSequence);\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,oBAA+B;AAWxB,MAAM,WAAW;AAAA,EAGvB,YACiB,SACA,YACA,QACf;AAHe;AACA;AACA;AAAA,EAEjB;AAAA,EAPA,QAAiB,wBAAU,IAAY;AAQxC;AAEO,SAAS,WACf,MACA,SACa;AACb,SAAO,qBAAqB,MAAM,SAAS,MAAS;AACrD;AAGO,SAAS,qBACf,MACA,SACA,QACa;AACb,SAAO,IAAI,WAAW,MAAM,SAAS,MAAM;AAC5C;AAEO,SAAS,aAAa,KAAiC;AAC7D,aAAO,kBAAG,KAAK,UAAU;AAC1B;","names":[]}
|
package/pg-core/sequence.d.cts
CHANGED
|
@@ -8,10 +8,11 @@ export type PgSequenceOptions = {
|
|
|
8
8
|
cycle?: boolean;
|
|
9
9
|
};
|
|
10
10
|
export declare class PgSequence {
|
|
11
|
-
static readonly [entityKind]: string;
|
|
12
11
|
readonly seqName: string | undefined;
|
|
13
12
|
readonly seqOptions: PgSequenceOptions | undefined;
|
|
14
13
|
readonly schema: string | undefined;
|
|
14
|
+
static readonly [entityKind]: string;
|
|
15
|
+
constructor(seqName: string | undefined, seqOptions: PgSequenceOptions | undefined, schema: string | undefined);
|
|
15
16
|
}
|
|
16
17
|
export declare function pgSequence(name: string, options: PgSequenceOptions): PgSequence;
|
|
17
18
|
export declare function isPgSequence(obj: unknown): obj is PgSequence;
|
package/pg-core/sequence.d.ts
CHANGED
|
@@ -8,10 +8,11 @@ export type PgSequenceOptions = {
|
|
|
8
8
|
cycle?: boolean;
|
|
9
9
|
};
|
|
10
10
|
export declare class PgSequence {
|
|
11
|
-
static readonly [entityKind]: string;
|
|
12
11
|
readonly seqName: string | undefined;
|
|
13
12
|
readonly seqOptions: PgSequenceOptions | undefined;
|
|
14
13
|
readonly schema: string | undefined;
|
|
14
|
+
static readonly [entityKind]: string;
|
|
15
|
+
constructor(seqName: string | undefined, seqOptions: PgSequenceOptions | undefined, schema: string | undefined);
|
|
15
16
|
}
|
|
16
17
|
export declare function pgSequence(name: string, options: PgSequenceOptions): PgSequence;
|
|
17
18
|
export declare function isPgSequence(obj: unknown): obj is PgSequence;
|
package/pg-core/sequence.js
CHANGED
|
@@ -1,22 +1,17 @@
|
|
|
1
1
|
import { entityKind, is } from "../entity.js";
|
|
2
2
|
class PgSequence {
|
|
3
|
+
constructor(seqName, seqOptions, schema) {
|
|
4
|
+
this.seqName = seqName;
|
|
5
|
+
this.seqOptions = seqOptions;
|
|
6
|
+
this.schema = schema;
|
|
7
|
+
}
|
|
3
8
|
static [entityKind] = "PgSequence";
|
|
4
|
-
seqName;
|
|
5
|
-
seqOptions;
|
|
6
|
-
schema;
|
|
7
9
|
}
|
|
8
10
|
function pgSequence(name, options) {
|
|
9
11
|
return pgSequenceWithSchema(name, options, void 0);
|
|
10
12
|
}
|
|
11
13
|
function pgSequenceWithSchema(name, options, schema) {
|
|
12
|
-
|
|
13
|
-
{
|
|
14
|
-
name,
|
|
15
|
-
seqOptions: options,
|
|
16
|
-
schema
|
|
17
|
-
}
|
|
18
|
-
);
|
|
19
|
-
return sequenceInstance;
|
|
14
|
+
return new PgSequence(name, options, schema);
|
|
20
15
|
}
|
|
21
16
|
function isPgSequence(obj) {
|
|
22
17
|
return is(obj, PgSequence);
|
package/pg-core/sequence.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../src/pg-core/sequence.ts"],"sourcesContent":["import { entityKind, is } from '~/entity.ts';\n\nexport type PgSequenceOptions = {\n\tincrement?: number;\n\tminValue?: number;\n\tmaxValue?: number;\n\tstartWith?: number;\n\tcache?: number;\n\tcycle?: boolean;\n};\n\nexport class PgSequence {\n\tstatic readonly [entityKind]: string = 'PgSequence';\n\n\
|
|
1
|
+
{"version":3,"sources":["../../src/pg-core/sequence.ts"],"sourcesContent":["import { entityKind, is } from '~/entity.ts';\n\nexport type PgSequenceOptions = {\n\tincrement?: number;\n\tminValue?: number;\n\tmaxValue?: number;\n\tstartWith?: number;\n\tcache?: number;\n\tcycle?: boolean;\n};\n\nexport class PgSequence {\n\tstatic readonly [entityKind]: string = 'PgSequence';\n\n\tconstructor(\n\t\tpublic readonly seqName: string | undefined,\n\t\tpublic readonly seqOptions: PgSequenceOptions | undefined,\n\t\tpublic readonly schema: string | undefined,\n\t) {\n\t}\n}\n\nexport function pgSequence(\n\tname: string,\n\toptions: PgSequenceOptions,\n): PgSequence {\n\treturn pgSequenceWithSchema(name, options, undefined);\n}\n\n/** @internal */\nexport function pgSequenceWithSchema(\n\tname: string,\n\toptions: PgSequenceOptions,\n\tschema?: string,\n): PgSequence {\n\treturn new PgSequence(name, options, schema);\n}\n\nexport function isPgSequence(obj: unknown): obj is PgSequence {\n\treturn is(obj, PgSequence);\n}\n"],"mappings":"AAAA,SAAS,YAAY,UAAU;AAWxB,MAAM,WAAW;AAAA,EAGvB,YACiB,SACA,YACA,QACf;AAHe;AACA;AACA;AAAA,EAEjB;AAAA,EAPA,QAAiB,UAAU,IAAY;AAQxC;AAEO,SAAS,WACf,MACA,SACa;AACb,SAAO,qBAAqB,MAAM,SAAS,MAAS;AACrD;AAGO,SAAS,qBACf,MACA,SACA,QACa;AACb,SAAO,IAAI,WAAW,MAAM,SAAS,MAAM;AAC5C;AAEO,SAAS,aAAa,KAAiC;AAC7D,SAAO,GAAG,KAAK,UAAU;AAC1B;","names":[]}
|
package/version.cjs
CHANGED
package/version.d.cts
CHANGED
package/version.d.ts
CHANGED
package/version.js
CHANGED