@minatojs/driver-sqlite
Advanced tools
Comparing version 3.5.6 to 3.6.0
@@ -8,2 +8,3 @@ "use strict"; | ||
var __hasOwnProp = Object.prototype.hasOwnProperty; | ||
var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value; | ||
var __name = (target, value) => __defProp(target, "name", { value, configurable: true }); | ||
@@ -31,2 +32,6 @@ var __export = (target, all) => { | ||
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod); | ||
var __publicField = (obj, key, value) => { | ||
__defNormalProp(obj, typeof key !== "symbol" ? key + "" : key, value); | ||
return value; | ||
}; | ||
var __accessCheck = (obj, member, msg) => { | ||
@@ -62,2 +67,3 @@ if (!member.has(obj)) | ||
switch (type) { | ||
case "primary": | ||
case "boolean": | ||
@@ -83,8 +89,8 @@ case "integer": | ||
__name(getTypeDef, "getTypeDef"); | ||
var SQLiteBuilder = class extends import_sql_utils.Builder { | ||
var _SQLiteBuilder = class _SQLiteBuilder extends import_sql_utils.Builder { | ||
escapeMap = { | ||
"'": "''" | ||
}; | ||
constructor(tables) { | ||
super(tables); | ||
this.escapeMap = { | ||
"'": "''" | ||
}; | ||
this.evalOperators.$if = (args) => `iif(${args.map((arg) => this.parseEval(arg)).join(", ")})`; | ||
@@ -121,5 +127,6 @@ this.define({ | ||
}; | ||
__name(SQLiteBuilder, "SQLiteBuilder"); | ||
__name(_SQLiteBuilder, "SQLiteBuilder"); | ||
var SQLiteBuilder = _SQLiteBuilder; | ||
var _joinKeys, joinKeys_fn, _exec, exec_fn, _all, all_fn, _get, get_fn, _export, export_fn, _run, run_fn, _update, update_fn, _create, create_fn; | ||
var SQLiteDriver = class extends import_core.Driver { | ||
var _SQLiteDriver = class _SQLiteDriver extends import_core.Driver { | ||
constructor(database, config) { | ||
@@ -136,2 +143,6 @@ super(database); | ||
__privateAdd(this, _create); | ||
__publicField(this, "db"); | ||
__publicField(this, "sql"); | ||
__publicField(this, "writeTask"); | ||
__publicField(this, "sqlite"); | ||
this.sql = new SQLiteBuilder(); | ||
@@ -247,3 +258,3 @@ } | ||
(0, import_sql.default)({ | ||
locateFile: (file) => process.env.KOISHI_BASE ? process.env.KOISHI_BASE + "/" + file : process.env.KOISHI_ENV === "browser" ? "/" + file : require.resolve("@minatojs/sql.js/dist/" + file) | ||
locateFile: (file) => process.env.KOISHI_BASE ? process.env.KOISHI_BASE + "/" + file : process.env.KOISHI_ENV === "browser" ? "/modules/@koishijs/plugin-database-sqlite/" + file : require.resolve("@minatojs/sql.js/dist/" + file) | ||
}), | ||
@@ -350,3 +361,2 @@ this.load() | ||
}; | ||
__name(SQLiteDriver, "SQLiteDriver"); | ||
_joinKeys = new WeakSet(); | ||
@@ -418,2 +428,4 @@ joinKeys_fn = /* @__PURE__ */ __name(function(keys) { | ||
}, "#create"); | ||
__name(_SQLiteDriver, "SQLiteDriver"); | ||
var SQLiteDriver = _SQLiteDriver; | ||
var src_default = SQLiteDriver; | ||
@@ -420,0 +432,0 @@ // Annotate the CommonJS export names for ESM import in node: |
{ | ||
"name": "@minatojs/driver-sqlite", | ||
"version": "3.5.6", | ||
"version": "3.6.0", | ||
"description": "SQLite Driver for Minato", | ||
@@ -28,3 +28,3 @@ "main": "lib/index.js", | ||
"peerDependencies": { | ||
"@minatojs/core": "^2.3.2" | ||
"@minatojs/core": "^2.4.0" | ||
}, | ||
@@ -37,5 +37,5 @@ "devDependencies": { | ||
"@minatojs/sql.js": "^2.0.1", | ||
"cosmokit": "^1.4.2", | ||
"reggol": "^1.4.2" | ||
"cosmokit": "^1.4.5", | ||
"reggol": "^1.4.4" | ||
} | ||
} |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
44223
468
Updatedcosmokit@^1.4.5
Updatedreggol@^1.4.4