@types/better-sqlite3
Advanced tools
Comparing version 5.0.0 to 5.0.1
@@ -6,2 +6,3 @@ // Type definitions for better-sqlite3 5.0 | ||
// Santiago Aguilar <https://github.com/sant123> | ||
// Alessandro Vergani <https://github.com/loghorn> | ||
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped | ||
@@ -11,7 +12,6 @@ | ||
declare class Statement { | ||
interface Statement { | ||
database: Database; | ||
source: string; | ||
returnsData: boolean; | ||
constructor(db: Database, sources: string[]); | ||
reader: boolean; | ||
@@ -21,6 +21,5 @@ run(...params: any[]): Database.RunResult; | ||
all(...params: any[]): any[]; | ||
each(params: any, cb: (row: any) => void): void; | ||
each(cb: (row: any) => void): void; | ||
each(...params: any[]): void; | ||
iterate(...params: any[]): IterableIterator<any>; | ||
pluck(toggleState?: boolean): this; | ||
expand(toggleState?: boolean): this; | ||
bind(...params: any[]): this; | ||
@@ -30,10 +29,8 @@ safeIntegers(toggleState?: boolean): this; | ||
declare class Transaction { | ||
database: Database; | ||
source: string; | ||
constructor(db: Database, sources: string[]); | ||
run(...params: any[]): Database.RunResult; | ||
bind(...params: any[]): this; | ||
safeIntegers(toggleState?: boolean): this; | ||
interface Transaction { | ||
(...params: any[]): any; | ||
default(...params: any[]): any; | ||
deferred(...params: any[]): any; | ||
immediate(...params: any[]): any; | ||
exclusive(...params: any[]): any; | ||
} | ||
@@ -49,11 +46,10 @@ | ||
prepare(source: string): Statement; | ||
transaction(sources: string[]): Transaction; | ||
transaction(fn: (...params: any[]) => any): Transaction; | ||
exec(source: string): this; | ||
pragma(source: string, simplify?: boolean): any; | ||
pragma(source: string, options?: Database.PragmaOptions): any; | ||
checkpoint(databaseName?: string): this; | ||
register(cb: (...params: any[]) => any): this; | ||
register( | ||
options: Database.RegistrationOptions, | ||
cb: (...params: any[]) => any | ||
): this; | ||
function(name: string, cb: (...params: any[]) => any): this; | ||
function(name: string, options: Database.RegistrationOptions, cb: (...params: any[]) => any): this; | ||
aggregate(name: string, options: Database.AggregateOptions): this; | ||
loadExtension(path: string): this; | ||
close(): this; | ||
@@ -89,6 +85,10 @@ defaultSafeIntegers(toggleState?: boolean): this; | ||
fileMustExist?: boolean; | ||
timeout?: number; | ||
} | ||
interface PragmaOptions { | ||
simple?: boolean; | ||
} | ||
interface RegistrationOptions { | ||
name?: string; | ||
varargs?: boolean; | ||
@@ -98,2 +98,9 @@ deterministic?: boolean; | ||
} | ||
interface AggregateOptions extends RegistrationOptions { | ||
start?: any; | ||
step: (total: any, next: any) => any; | ||
inverse?: (total: any, dropped: any) => any; | ||
result?: (total: any) => any; | ||
} | ||
} | ||
@@ -100,0 +107,0 @@ |
{ | ||
"name": "@types/better-sqlite3", | ||
"version": "5.0.0", | ||
"version": "5.0.1", | ||
"description": "TypeScript definitions for better-sqlite3", | ||
@@ -21,2 +21,7 @@ "license": "MIT", | ||
"githubUsername": "sant123" | ||
}, | ||
{ | ||
"name": "Alessandro Vergani", | ||
"url": "https://github.com/loghorn", | ||
"githubUsername": "loghorn" | ||
} | ||
@@ -34,4 +39,4 @@ ], | ||
}, | ||
"typesPublisherContentHash": "dfea25722b5bdbac52a404d915a0dff58385408e7e97d5c4304c3075c5aa4357", | ||
"typesPublisherContentHash": "fce2421f8fbb5e30d187aeab031c4c08d94e6c658eaf69b3fd8c8bd3403e01e3", | ||
"typeScriptVersion": "2.0" | ||
} |
@@ -11,7 +11,7 @@ # Installation | ||
Additional Details | ||
* Last updated: Tue, 27 Nov 2018 02:54:06 GMT | ||
* Dependencies: integer | ||
* Last updated: Thu, 13 Dec 2018 18:38:23 GMT | ||
* Dependencies: @types/integer | ||
* Global values: none | ||
# Credits | ||
These definitions were written by Ben Davies <https://github.com/Morfent>, Mathew Rumsey <https://github.com/matrumz>, Santiago Aguilar <https://github.com/sant123>. | ||
These definitions were written by Ben Davies <https://github.com/Morfent>, Mathew Rumsey <https://github.com/matrumz>, Santiago Aguilar <https://github.com/sant123>, Alessandro Vergani <https://github.com/loghorn>. |
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
5969
87