drizzle-kit 1.0.0-beta.1-d46053c → 1.0.0-beta.1-03a5cdc
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/api.js +13 -3
- package/api.mjs +13 -3
- package/bin.cjs +1 -1
- package/package.json +1 -1
package/api.js
CHANGED
|
@@ -14446,8 +14446,8 @@ var init_session2 = __esm({
|
|
|
14446
14446
|
};
|
|
14447
14447
|
__publicField(PgSession, _a288, "PgSession");
|
|
14448
14448
|
PgTransaction = class extends (_b209 = PgDatabase, _a289 = entityKind, _b209) {
|
|
14449
|
-
constructor(dialect6, session, relations, schema6, nestedIndex = 0) {
|
|
14450
|
-
super(dialect6, session, relations, schema6);
|
|
14449
|
+
constructor(dialect6, session, relations, schema6, nestedIndex = 0, parseRqbJson) {
|
|
14450
|
+
super(dialect6, session, relations, schema6, parseRqbJson);
|
|
14451
14451
|
this.relations = relations;
|
|
14452
14452
|
this.schema = schema6;
|
|
14453
14453
|
this.nestedIndex = nestedIndex;
|
|
@@ -82579,6 +82579,14 @@ var init_session5 = __esm({
|
|
|
82579
82579
|
true
|
|
82580
82580
|
);
|
|
82581
82581
|
}
|
|
82582
|
+
async count(sql22) {
|
|
82583
|
+
const query = this.dialect.sqlToQuery(sql22);
|
|
82584
|
+
const prepared = this.prepareQuery(query, void 0, void 0, true);
|
|
82585
|
+
const { rows } = await prepared.values();
|
|
82586
|
+
const count2 = rows[0]?.[0] ?? 0;
|
|
82587
|
+
if (typeof count2 === "number") return count2;
|
|
82588
|
+
return Number(count2);
|
|
82589
|
+
}
|
|
82582
82590
|
execute(query) {
|
|
82583
82591
|
return this.prepareQuery(
|
|
82584
82592
|
this.dialect.sqlToQuery(query),
|
|
@@ -82605,7 +82613,9 @@ var init_session5 = __esm({
|
|
|
82605
82613
|
this.dialect,
|
|
82606
82614
|
session,
|
|
82607
82615
|
this.relations,
|
|
82608
|
-
this.schema
|
|
82616
|
+
this.schema,
|
|
82617
|
+
void 0,
|
|
82618
|
+
true
|
|
82609
82619
|
);
|
|
82610
82620
|
if (config) {
|
|
82611
82621
|
await tx.setTransaction(config);
|
package/api.mjs
CHANGED
|
@@ -14452,8 +14452,8 @@ var init_session2 = __esm({
|
|
|
14452
14452
|
};
|
|
14453
14453
|
__publicField(PgSession, _a288, "PgSession");
|
|
14454
14454
|
PgTransaction = class extends (_b209 = PgDatabase, _a289 = entityKind, _b209) {
|
|
14455
|
-
constructor(dialect6, session, relations, schema6, nestedIndex = 0) {
|
|
14456
|
-
super(dialect6, session, relations, schema6);
|
|
14455
|
+
constructor(dialect6, session, relations, schema6, nestedIndex = 0, parseRqbJson) {
|
|
14456
|
+
super(dialect6, session, relations, schema6, parseRqbJson);
|
|
14457
14457
|
this.relations = relations;
|
|
14458
14458
|
this.schema = schema6;
|
|
14459
14459
|
this.nestedIndex = nestedIndex;
|
|
@@ -82583,6 +82583,14 @@ var init_session5 = __esm({
|
|
|
82583
82583
|
true
|
|
82584
82584
|
);
|
|
82585
82585
|
}
|
|
82586
|
+
async count(sql22) {
|
|
82587
|
+
const query = this.dialect.sqlToQuery(sql22);
|
|
82588
|
+
const prepared = this.prepareQuery(query, void 0, void 0, true);
|
|
82589
|
+
const { rows } = await prepared.values();
|
|
82590
|
+
const count2 = rows[0]?.[0] ?? 0;
|
|
82591
|
+
if (typeof count2 === "number") return count2;
|
|
82592
|
+
return Number(count2);
|
|
82593
|
+
}
|
|
82586
82594
|
execute(query) {
|
|
82587
82595
|
return this.prepareQuery(
|
|
82588
82596
|
this.dialect.sqlToQuery(query),
|
|
@@ -82609,7 +82617,9 @@ var init_session5 = __esm({
|
|
|
82609
82617
|
this.dialect,
|
|
82610
82618
|
session,
|
|
82611
82619
|
this.relations,
|
|
82612
|
-
this.schema
|
|
82620
|
+
this.schema,
|
|
82621
|
+
void 0,
|
|
82622
|
+
true
|
|
82613
82623
|
);
|
|
82614
82624
|
if (config) {
|
|
82615
82625
|
await tx.setTransaction(config);
|
package/bin.cjs
CHANGED
|
@@ -96224,7 +96224,7 @@ init_utils5();
|
|
|
96224
96224
|
var version2 = async () => {
|
|
96225
96225
|
const { npmVersion } = await ormCoreVersions();
|
|
96226
96226
|
const ormVersion = npmVersion ? `drizzle-orm: v${npmVersion}` : "";
|
|
96227
|
-
const envVersion = "1.0.0-beta.1-
|
|
96227
|
+
const envVersion = "1.0.0-beta.1-03a5cdc";
|
|
96228
96228
|
const kitVersion = envVersion ? `v${envVersion}` : "--";
|
|
96229
96229
|
const versions = `drizzle-kit: ${kitVersion}
|
|
96230
96230
|
${ormVersion}`;
|