@minatojs/sql-utils
Advanced tools
Comparing version 4.0.3 to 4.0.4
@@ -19,3 +19,3 @@ import { Dict } from 'cosmokit'; | ||
export declare class Builder { | ||
tables?: Dict<Model<any>, string> | undefined; | ||
tables?: Dict<Model>; | ||
protected escapeMap: {}; | ||
@@ -27,3 +27,3 @@ protected escapeRegExp?: RegExp; | ||
protected evalOperators: EvalOperators; | ||
constructor(tables?: Dict<Model<any>, string> | undefined); | ||
constructor(tables?: Dict<Model>); | ||
protected createNullQuery(key: string, value: boolean): string; | ||
@@ -46,3 +46,3 @@ protected createMemberQuery(key: string, value: any[], notStr?: string): string; | ||
suffix(modifier: Modifier): string; | ||
get(sel: Selection.Immutable, inline?: boolean): any; | ||
get(sel: Selection.Immutable, inline?: boolean): string; | ||
define<S, T>(converter: Transformer<S, T>): void; | ||
@@ -49,0 +49,0 @@ dump(model: Model, obj: any): any; |
@@ -159,3 +159,3 @@ "use strict"; | ||
conditions.push(this.createRegExpQuery(key, query)); | ||
} else if (typeof query === "string" || typeof query === "number" || query instanceof Date) { | ||
} else if ((0, import_core.isComparable)(query)) { | ||
conditions.push(this.createEqualQuery(key, query)); | ||
@@ -162,0 +162,0 @@ } else if ((0, import_cosmokit.isNullable)(query)) { |
{ | ||
"name": "@minatojs/sql-utils", | ||
"version": "4.0.3", | ||
"version": "4.0.4", | ||
"description": "SQL Utilities for Minato", | ||
@@ -32,7 +32,7 @@ "main": "lib/index.js", | ||
"peerDependencies": { | ||
"@minatojs/core": "^2.3.1" | ||
"@minatojs/core": "^2.3.2" | ||
}, | ||
"dependencies": { | ||
"cosmokit": "^1.4.1" | ||
"cosmokit": "^1.4.2" | ||
} | ||
} |
Sorry, the diff of this file is not supported yet
45236
Updatedcosmokit@^1.4.2