drizzle-kit 1.0.0-beta.1-27d2721 → 1.0.0-beta.1-d46053c
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 -8
- package/api.mjs +13 -8
- package/bin.cjs +1 -1
- package/package.json +1 -1
package/api.js
CHANGED
|
@@ -13689,12 +13689,13 @@ var init_query4 = __esm({
|
|
|
13689
13689
|
init_tracing();
|
|
13690
13690
|
_a280 = entityKind;
|
|
13691
13691
|
RelationalQueryBuilder2 = class {
|
|
13692
|
-
constructor(schema6, table6, tableConfig, dialect6, session) {
|
|
13692
|
+
constructor(schema6, table6, tableConfig, dialect6, session, parseJson) {
|
|
13693
13693
|
this.schema = schema6;
|
|
13694
13694
|
this.table = table6;
|
|
13695
13695
|
this.tableConfig = tableConfig;
|
|
13696
13696
|
this.dialect = dialect6;
|
|
13697
13697
|
this.session = session;
|
|
13698
|
+
this.parseJson = parseJson;
|
|
13698
13699
|
}
|
|
13699
13700
|
findMany(config) {
|
|
13700
13701
|
return new PgRelationalQuery(
|
|
@@ -13704,7 +13705,8 @@ var init_query4 = __esm({
|
|
|
13704
13705
|
this.dialect,
|
|
13705
13706
|
this.session,
|
|
13706
13707
|
config ?? true,
|
|
13707
|
-
"many"
|
|
13708
|
+
"many",
|
|
13709
|
+
this.parseJson
|
|
13708
13710
|
);
|
|
13709
13711
|
}
|
|
13710
13712
|
findFirst(config) {
|
|
@@ -13715,13 +13717,14 @@ var init_query4 = __esm({
|
|
|
13715
13717
|
this.dialect,
|
|
13716
13718
|
this.session,
|
|
13717
13719
|
config ?? true,
|
|
13718
|
-
"first"
|
|
13720
|
+
"first",
|
|
13721
|
+
this.parseJson
|
|
13719
13722
|
);
|
|
13720
13723
|
}
|
|
13721
13724
|
};
|
|
13722
13725
|
__publicField(RelationalQueryBuilder2, _a280, "PgRelationalQueryBuilderV2");
|
|
13723
13726
|
PgRelationalQuery = class extends (_b207 = QueryPromise, _a281 = entityKind, _b207) {
|
|
13724
|
-
constructor(schema6, table6, tableConfig, dialect6, session, config, mode) {
|
|
13727
|
+
constructor(schema6, table6, tableConfig, dialect6, session, config, mode, parseJson) {
|
|
13725
13728
|
super();
|
|
13726
13729
|
__publicField(this, "authToken");
|
|
13727
13730
|
this.schema = schema6;
|
|
@@ -13731,6 +13734,7 @@ var init_query4 = __esm({
|
|
|
13731
13734
|
this.session = session;
|
|
13732
13735
|
this.config = config;
|
|
13733
13736
|
this.mode = mode;
|
|
13737
|
+
this.parseJson = parseJson;
|
|
13734
13738
|
}
|
|
13735
13739
|
/** @internal */
|
|
13736
13740
|
_prepare(name3) {
|
|
@@ -13741,7 +13745,7 @@ var init_query4 = __esm({
|
|
|
13741
13745
|
void 0,
|
|
13742
13746
|
name3,
|
|
13743
13747
|
(rawRows, mapColumnValue) => {
|
|
13744
|
-
const rows = rawRows.map((row) => mapRelationalRow(row, query.selection, mapColumnValue));
|
|
13748
|
+
const rows = rawRows.map((row) => mapRelationalRow(row, query.selection, mapColumnValue, this.parseJson));
|
|
13745
13749
|
if (this.mode === "first") {
|
|
13746
13750
|
return rows[0];
|
|
13747
13751
|
}
|
|
@@ -13843,7 +13847,7 @@ var init_db2 = __esm({
|
|
|
13843
13847
|
init_refresh_materialized_view();
|
|
13844
13848
|
_a283 = entityKind;
|
|
13845
13849
|
PgDatabase = class {
|
|
13846
|
-
constructor(dialect6, session, relations, schema6) {
|
|
13850
|
+
constructor(dialect6, session, relations, schema6, parseRqbJson = false) {
|
|
13847
13851
|
/** @deprecated */
|
|
13848
13852
|
__publicField(this, "_query");
|
|
13849
13853
|
// TO-DO: Figure out how to pass DrizzleTypeError without breaking withReplicas
|
|
@@ -13936,7 +13940,8 @@ var init_db2 = __esm({
|
|
|
13936
13940
|
relations[relation.name].table,
|
|
13937
13941
|
relation,
|
|
13938
13942
|
dialect6,
|
|
13939
|
-
session
|
|
13943
|
+
session,
|
|
13944
|
+
parseRqbJson
|
|
13940
13945
|
);
|
|
13941
13946
|
}
|
|
13942
13947
|
this.$cache = { invalidate: async (_params2) => {
|
|
@@ -82670,7 +82675,7 @@ function construct(client, config) {
|
|
|
82670
82675
|
logger: logger2,
|
|
82671
82676
|
cache: config.cache
|
|
82672
82677
|
}, void 0);
|
|
82673
|
-
const db2 = new AwsDataApiPgDatabase(dialect6, session, relations, schema6);
|
|
82678
|
+
const db2 = new AwsDataApiPgDatabase(dialect6, session, relations, schema6, true);
|
|
82674
82679
|
db2.$client = client;
|
|
82675
82680
|
db2.$cache = config.cache;
|
|
82676
82681
|
if (db2.$cache) {
|
package/api.mjs
CHANGED
|
@@ -13695,12 +13695,13 @@ var init_query4 = __esm({
|
|
|
13695
13695
|
init_tracing();
|
|
13696
13696
|
_a280 = entityKind;
|
|
13697
13697
|
RelationalQueryBuilder2 = class {
|
|
13698
|
-
constructor(schema6, table6, tableConfig, dialect6, session) {
|
|
13698
|
+
constructor(schema6, table6, tableConfig, dialect6, session, parseJson) {
|
|
13699
13699
|
this.schema = schema6;
|
|
13700
13700
|
this.table = table6;
|
|
13701
13701
|
this.tableConfig = tableConfig;
|
|
13702
13702
|
this.dialect = dialect6;
|
|
13703
13703
|
this.session = session;
|
|
13704
|
+
this.parseJson = parseJson;
|
|
13704
13705
|
}
|
|
13705
13706
|
findMany(config) {
|
|
13706
13707
|
return new PgRelationalQuery(
|
|
@@ -13710,7 +13711,8 @@ var init_query4 = __esm({
|
|
|
13710
13711
|
this.dialect,
|
|
13711
13712
|
this.session,
|
|
13712
13713
|
config ?? true,
|
|
13713
|
-
"many"
|
|
13714
|
+
"many",
|
|
13715
|
+
this.parseJson
|
|
13714
13716
|
);
|
|
13715
13717
|
}
|
|
13716
13718
|
findFirst(config) {
|
|
@@ -13721,13 +13723,14 @@ var init_query4 = __esm({
|
|
|
13721
13723
|
this.dialect,
|
|
13722
13724
|
this.session,
|
|
13723
13725
|
config ?? true,
|
|
13724
|
-
"first"
|
|
13726
|
+
"first",
|
|
13727
|
+
this.parseJson
|
|
13725
13728
|
);
|
|
13726
13729
|
}
|
|
13727
13730
|
};
|
|
13728
13731
|
__publicField(RelationalQueryBuilder2, _a280, "PgRelationalQueryBuilderV2");
|
|
13729
13732
|
PgRelationalQuery = class extends (_b207 = QueryPromise, _a281 = entityKind, _b207) {
|
|
13730
|
-
constructor(schema6, table6, tableConfig, dialect6, session, config, mode) {
|
|
13733
|
+
constructor(schema6, table6, tableConfig, dialect6, session, config, mode, parseJson) {
|
|
13731
13734
|
super();
|
|
13732
13735
|
__publicField(this, "authToken");
|
|
13733
13736
|
this.schema = schema6;
|
|
@@ -13737,6 +13740,7 @@ var init_query4 = __esm({
|
|
|
13737
13740
|
this.session = session;
|
|
13738
13741
|
this.config = config;
|
|
13739
13742
|
this.mode = mode;
|
|
13743
|
+
this.parseJson = parseJson;
|
|
13740
13744
|
}
|
|
13741
13745
|
/** @internal */
|
|
13742
13746
|
_prepare(name3) {
|
|
@@ -13747,7 +13751,7 @@ var init_query4 = __esm({
|
|
|
13747
13751
|
void 0,
|
|
13748
13752
|
name3,
|
|
13749
13753
|
(rawRows, mapColumnValue) => {
|
|
13750
|
-
const rows = rawRows.map((row) => mapRelationalRow(row, query.selection, mapColumnValue));
|
|
13754
|
+
const rows = rawRows.map((row) => mapRelationalRow(row, query.selection, mapColumnValue, this.parseJson));
|
|
13751
13755
|
if (this.mode === "first") {
|
|
13752
13756
|
return rows[0];
|
|
13753
13757
|
}
|
|
@@ -13849,7 +13853,7 @@ var init_db2 = __esm({
|
|
|
13849
13853
|
init_refresh_materialized_view();
|
|
13850
13854
|
_a283 = entityKind;
|
|
13851
13855
|
PgDatabase = class {
|
|
13852
|
-
constructor(dialect6, session, relations, schema6) {
|
|
13856
|
+
constructor(dialect6, session, relations, schema6, parseRqbJson = false) {
|
|
13853
13857
|
/** @deprecated */
|
|
13854
13858
|
__publicField(this, "_query");
|
|
13855
13859
|
// TO-DO: Figure out how to pass DrizzleTypeError without breaking withReplicas
|
|
@@ -13942,7 +13946,8 @@ var init_db2 = __esm({
|
|
|
13942
13946
|
relations[relation.name].table,
|
|
13943
13947
|
relation,
|
|
13944
13948
|
dialect6,
|
|
13945
|
-
session
|
|
13949
|
+
session,
|
|
13950
|
+
parseRqbJson
|
|
13946
13951
|
);
|
|
13947
13952
|
}
|
|
13948
13953
|
this.$cache = { invalidate: async (_params2) => {
|
|
@@ -82674,7 +82679,7 @@ function construct(client, config) {
|
|
|
82674
82679
|
logger: logger2,
|
|
82675
82680
|
cache: config.cache
|
|
82676
82681
|
}, void 0);
|
|
82677
|
-
const db2 = new AwsDataApiPgDatabase(dialect6, session, relations, schema6);
|
|
82682
|
+
const db2 = new AwsDataApiPgDatabase(dialect6, session, relations, schema6, true);
|
|
82678
82683
|
db2.$client = client;
|
|
82679
82684
|
db2.$cache = config.cache;
|
|
82680
82685
|
if (db2.$cache) {
|
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-d46053c";
|
|
96228
96228
|
const kitVersion = envVersion ? `v${envVersion}` : "--";
|
|
96229
96229
|
const versions = `drizzle-kit: ${kitVersion}
|
|
96230
96230
|
${ormVersion}`;
|