Skip to content

Commit 520e314

Browse files
Support all SQL template libraries (#172)
* Support all SQL template libraries * Remove sql-template-strings from lib --------- Co-authored-by: Theo Gravity <[email protected]>
1 parent 18d0c01 commit 520e314

File tree

3 files changed

+9
-82
lines changed

3 files changed

+9
-82
lines changed

package-lock.json

Lines changed: 4 additions & 4 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/interfaces.ts

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,6 @@
1-
/// <reference types="./vendor-typings/sql-template-strings" />
21
/// <reference types="./vendor-typings/sqlite3" />
32

43
import * as sqlite3 from 'sqlite3'
5-
import { SQLStatement } from 'sql-template-strings'
64
import { Statement } from './Statement'
75

86
export namespace ISqlite {
@@ -11,6 +9,11 @@ export namespace ISqlite {
119
params?: any[]
1210
}
1311

12+
export interface SQLStatement {
13+
sql: string
14+
values?: any[]
15+
}
16+
1417
/**
1518
* Allows for input of a normal SQL string or
1619
* `sql-template-strings` object

src/vendor-typings/sql-template-strings/index.d.ts

Lines changed: 0 additions & 76 deletions
This file was deleted.

0 commit comments

Comments
 (0)