File tree Expand file tree Collapse file tree 1 file changed +12
-11
lines changed Expand file tree Collapse file tree 1 file changed +12
-11
lines changed Original file line number Diff line number Diff line change
1
+ /**
2
+ * sqlstring types are based on https://www.npmjs.com/package/@types/sqlstring, version 2.3.2
3
+ */
1
4
import { Pool as BasePool , PoolOptions } from './lib/Pool.js' ;
2
5
import {
3
6
Connection as BaseConnection ,
@@ -53,23 +56,21 @@ export function createPool(config: PoolOptions): BasePool;
53
56
54
57
export function createPoolCluster ( config ?: PoolClusterOptions ) : PoolCluster ;
55
58
56
- export function escape ( value : any ) : string ;
57
-
58
- export function escapeId ( value : any ) : string ;
59
-
60
- export function format ( sql : string ) : string ;
61
- export function format (
62
- sql : string ,
63
- values : any [ ] ,
59
+ type TimeZone = 'local' | 'Z' | ( string & NonNullable < unknown > ) ;
60
+ export function escape (
61
+ value : any ,
64
62
stringifyObjects ?: boolean ,
65
- timeZone ?: string ,
63
+ timeZone ?: TimeZone ,
66
64
) : string ;
67
65
66
+ export function escapeId ( value : any , forbidQualified ?: boolean ) : string ;
67
+
68
+ export function format ( sql : string ) : string ;
68
69
export function format (
69
70
sql : string ,
70
- values : any ,
71
+ values : any | any [ ] ,
71
72
stringifyObjects ?: boolean ,
72
- timeZone ?: string ,
73
+ timeZone ?: TimeZone ,
73
74
) : string ;
74
75
75
76
export function raw ( sql : string ) : {
You can’t perform that action at this time.
0 commit comments