@suss/sql 0.8.0 → 0.10.0
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/dist/index.cjs +1 -2
- package/dist/index.js +1 -2
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -22006,14 +22006,13 @@ var import_mysql = __toESM(require_mysql(), 1);
|
|
|
22006
22006
|
var import_postgresql = __toESM(require_postgresql(), 1);
|
|
22007
22007
|
var import_sqlite = __toESM(require_sqlite(), 1);
|
|
22008
22008
|
var DIALECTS = {
|
|
22009
|
-
postgres: { module: import_postgresql.default, database: "postgresql" },
|
|
22010
22009
|
postgresql: { module: import_postgresql.default, database: "postgresql" },
|
|
22011
22010
|
mysql: { module: import_mysql.default, database: "mysql" },
|
|
22012
22011
|
sqlite: { module: import_sqlite.default, database: "sqlite" },
|
|
22013
22012
|
bigquery: { module: import_bigquery.default, database: "bigquery" }
|
|
22014
22013
|
};
|
|
22015
22014
|
function readSqlAccess(sql, options = {}) {
|
|
22016
|
-
const dialect = DIALECTS[options.dialect ?? "
|
|
22015
|
+
const dialect = DIALECTS[options.dialect ?? "postgresql"];
|
|
22017
22016
|
if (dialect === void 0) {
|
|
22018
22017
|
return [];
|
|
22019
22018
|
}
|
package/dist/index.js
CHANGED
|
@@ -21994,14 +21994,13 @@ var import_mysql = __toESM(require_mysql(), 1);
|
|
|
21994
21994
|
var import_postgresql = __toESM(require_postgresql(), 1);
|
|
21995
21995
|
var import_sqlite = __toESM(require_sqlite(), 1);
|
|
21996
21996
|
var DIALECTS = {
|
|
21997
|
-
postgres: { module: import_postgresql.default, database: "postgresql" },
|
|
21998
21997
|
postgresql: { module: import_postgresql.default, database: "postgresql" },
|
|
21999
21998
|
mysql: { module: import_mysql.default, database: "mysql" },
|
|
22000
21999
|
sqlite: { module: import_sqlite.default, database: "sqlite" },
|
|
22001
22000
|
bigquery: { module: import_bigquery.default, database: "bigquery" }
|
|
22002
22001
|
};
|
|
22003
22002
|
function readSqlAccess(sql, options = {}) {
|
|
22004
|
-
const dialect = DIALECTS[options.dialect ?? "
|
|
22003
|
+
const dialect = DIALECTS[options.dialect ?? "postgresql"];
|
|
22005
22004
|
if (dialect === void 0) {
|
|
22006
22005
|
return [];
|
|
22007
22006
|
}
|