@minatojs/driver-mysql
Advanced tools
Comparing version 3.0.0 to 3.0.1
@@ -1,4 +0,34 @@ | ||
import type { Pool, PoolConfig } from 'mysql'; | ||
import { Driver, Eval, Selection, z } from 'minato'; | ||
import { MySQLBuilder } from './builder'; | ||
import { Builder } from '@minatojs/sql-utils'; | ||
import { Dict } from 'cosmokit'; | ||
import { Field, Model, Selection, Driver, Eval, z } from 'minato'; | ||
import { Pool, PoolConfig } from 'mysql'; | ||
export const DEFAULT_DATE: Date; | ||
export interface Compat { | ||
maria?: boolean; | ||
maria105?: boolean; | ||
mysql57?: boolean; | ||
} | ||
export class MySQLBuilder extends Builder { | ||
private compat; | ||
protected escapeRegExp: RegExp; | ||
protected escapeMap: { | ||
'\0': string; | ||
'\b': string; | ||
'\t': string; | ||
'\n': string; | ||
'\r': string; | ||
'\u001A': string; | ||
'"': string; | ||
'\'': string; | ||
'\\': string; | ||
}; | ||
prequeries: string[]; | ||
constructor(tables?: Dict<Model>, compat?: Compat); | ||
escape(value: any, field?: Field): string; | ||
protected jsonQuote(value: string, pure?: boolean): string; | ||
protected createAggr(expr: any, aggr: (value: string) => string, nonaggr?: (value: string) => string, compat?: (value: string) => string): string; | ||
protected groupArray(value: string): string; | ||
protected parseSelection(sel: Selection): string; | ||
toUpdateExpr(item: any, key: string, field?: Field, upsert?: boolean): string; | ||
} | ||
declare module 'mysql' { | ||
@@ -9,3 +39,3 @@ interface UntypedFieldInfo { | ||
} | ||
export declare class MySQLDriver extends Driver<MySQLDriver.Config> { | ||
export class MySQLDriver extends Driver<MySQLDriver.Config> { | ||
static name: string; | ||
@@ -59,3 +89,3 @@ pool: Pool; | ||
} | ||
export declare namespace MySQLDriver { | ||
export namespace MySQLDriver { | ||
interface Config extends PoolConfig { | ||
@@ -62,0 +92,0 @@ } |
{ | ||
"name": "@minatojs/driver-mysql", | ||
"version": "3.0.0", | ||
"version": "3.0.1", | ||
"description": "MySQL 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,10 +40,10 @@ "lib", | ||
"peerDependencies": { | ||
"minato": "^3.0.0" | ||
"minato": "^3.0.1" | ||
}, | ||
"devDependencies": { | ||
"@minatojs/tests": "^2.0.0", | ||
"@minatojs/tests": "^2.0.1", | ||
"@types/mysql": "^2.15.24" | ||
}, | ||
"dependencies": { | ||
"@minatojs/sql-utils": "^5.0.0", | ||
"@minatojs/sql-utils": "^5.0.1", | ||
"@vlasky/mysql": "^2.18.6", | ||
@@ -39,0 +50,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
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
178824
15
2878
Yes
+ Addedschemastery@3.14.7(transitive)
- Removedschemastery@3.14.6(transitive)
Updated@minatojs/sql-utils@^5.0.1