@minatojs/driver-sqlite
Advanced tools
Comparing version 4.0.0 to 4.0.1
@@ -1,4 +0,19 @@ | ||
import { Driver, Eval, Selection, z } from 'minato'; | ||
import { Builder } from '@minatojs/sql-utils'; | ||
import { Dict } from 'cosmokit'; | ||
import { Field, Model, Driver, Eval, Selection, z } from 'minato'; | ||
import init from '@minatojs/sql.js'; | ||
import { SQLiteBuilder } from './builder'; | ||
export class SQLiteBuilder extends Builder { | ||
protected escapeMap: { | ||
"'": string; | ||
}; | ||
constructor(tables?: Dict<Model>); | ||
escape(value: any, field?: Field): string; | ||
protected createElementQuery(key: string, value: any): string; | ||
protected jsonLength(value: string): string; | ||
protected jsonContains(obj: string, value: string): string; | ||
protected jsonUnquote(value: string, pure?: boolean): string; | ||
protected createAggr(expr: any, aggr: (value: string) => string, nonaggr?: (value: string) => string): string; | ||
protected groupArray(value: string): string; | ||
protected transformJsonField(obj: string, path: string): string; | ||
} | ||
export interface SQLiteFieldInfo { | ||
@@ -12,3 +27,3 @@ cid: number; | ||
} | ||
export declare class SQLiteDriver extends Driver<SQLiteDriver.Config> { | ||
export class SQLiteDriver extends Driver<SQLiteDriver.Config> { | ||
#private; | ||
@@ -44,3 +59,3 @@ static name: string; | ||
} | ||
export declare namespace SQLiteDriver { | ||
export namespace SQLiteDriver { | ||
interface Config { | ||
@@ -47,0 +62,0 @@ path: string; |
{ | ||
"name": "@minatojs/driver-sqlite", | ||
"version": "4.0.0", | ||
"version": "4.0.1", | ||
"description": "SQLite Driver for Minato", | ||
"main": "lib/index.js", | ||
"type": "module", | ||
"main": "lib/index.cjs", | ||
"module": "lib/index.mjs", | ||
"typings": "lib/index.d.ts", | ||
"exports": { | ||
".": { | ||
"import": "./lib/index.mjs", | ||
"require": "./lib/index.cjs", | ||
"types": "./lib/index.d.ts" | ||
}, | ||
"./src/*": "./src/*", | ||
"./package.json": "./package.json" | ||
}, | ||
"files": [ | ||
@@ -29,9 +40,9 @@ "lib", | ||
"peerDependencies": { | ||
"minato": "^3.0.0" | ||
"minato": "^3.0.1" | ||
}, | ||
"devDependencies": { | ||
"@minatojs/tests": "^2.0.0" | ||
"@minatojs/tests": "^2.0.1" | ||
}, | ||
"dependencies": { | ||
"@minatojs/sql-utils": "^5.0.0", | ||
"@minatojs/sql-utils": "^5.0.1", | ||
"@minatojs/sql.js": "^3.1.0", | ||
@@ -38,0 +49,0 @@ "cosmokit": "^1.5.2" |
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
Dynamic require
Supply chain riskDynamic require can indicate the package is performing dangerous or unsafe dynamic code execution.
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
114824
14
1907
Yes
14
Updated@minatojs/sql-utils@^5.0.1