@zenstackhq/runtime 3.0.0-alpha.1 → 3.0.0-alpha.3

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.
@@ -1155,7 +1155,7 @@ type ClientOptions<Schema extends SchemaDef> = {
1155
1155
  /**
1156
1156
  * Database dialect configuration.
1157
1157
  */
1158
- dialectConfig?: DialectConfig<Schema['provider']>;
1158
+ dialectConfig: DialectConfig<Schema['provider']>;
1159
1159
  /**
1160
1160
  * Custom function definitions.
1161
1161
  */
@@ -1155,7 +1155,7 @@ type ClientOptions<Schema extends SchemaDef> = {
1155
1155
  /**
1156
1156
  * Database dialect configuration.
1157
1157
  */
1158
- dialectConfig?: DialectConfig<Schema['provider']>;
1158
+ dialectConfig: DialectConfig<Schema['provider']>;
1159
1159
  /**
1160
1160
  * Custom function definitions.
1161
1161
  */
package/dist/index.cjs CHANGED
@@ -5893,20 +5893,10 @@ var ClientImpl = class _ClientImpl {
5893
5893
  return (0, import_ts_pattern19.match)(this.schema.provider.type).with("sqlite", () => this.makeSqliteKyselyDialect()).with("postgresql", () => this.makePostgresKyselyDialect()).exhaustive();
5894
5894
  }
5895
5895
  makePostgresKyselyDialect() {
5896
- const { dialectConfigProvider } = this.schema.provider;
5897
- const mergedConfig = {
5898
- ...dialectConfigProvider(),
5899
- ...this.options?.dialectConfig
5900
- };
5901
- return new import_kysely16.PostgresDialect(mergedConfig);
5896
+ return new import_kysely16.PostgresDialect(this.options.dialectConfig);
5902
5897
  }
5903
5898
  makeSqliteKyselyDialect() {
5904
- const { dialectConfigProvider } = this.schema.provider;
5905
- const mergedConfig = {
5906
- ...dialectConfigProvider(),
5907
- ...this.options?.dialectConfig
5908
- };
5909
- return new import_kysely16.SqliteDialect(mergedConfig);
5899
+ return new import_kysely16.SqliteDialect(this.options.dialectConfig);
5910
5900
  }
5911
5901
  async $transaction(callback) {
5912
5902
  return this.kysely.transaction().execute((tx) => {