-
Notifications
You must be signed in to change notification settings - Fork 1.1k
/
Copy pathexterns.js
49 lines (46 loc) · 1.13 KB
/
externs.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
Module.Database = class Database {
constructor(data) {}
run(sql, params) {}
exec(sql, params, config) {}
each(sql, params, callback, done, config) {}
prepare(sql, params) {}
iterateStatements(sql) {}
export() {}
close() {}
handleError(returnCode) {}
getRowsModified() {}
create_function() {}
create_aggregate() {}
}
Module.Statement = class Statement {
constructor(stmt, db) {}
bind(values) {}
step() {}
getNumber(pos) {}
getBigInt(pos) {}
getString(pos) {}
getBlob(pos) {}
get(params, config) {}
getColumnNames() {}
getAsObject() {}
getSQL() {}
getNormalizedSQL() {}
run(values) {}
bindString(string, pos) {}
bindBlob(array, pos) {}
bindNumber(num, pos) {}
bindNull(pos) {}
bindVlaue(val, pos) {}
bindFromObject(valuesObj) {}
bindFromArray(values) {}
reset() {}
freemem() {}
free() {}
}
Module.StatementItearator = class StatementIterator {
constructor(sql, obj) {}
next() {}
finalize() {}
getRemainingSQL() {}
// [Symbol.iterator]() {} // XXX: Causes closure compiler error? com.google.javascript.rhino.Node cannot be cast to com.google.javascript.rhino.Node$StringNode
}