New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@types/sqlite3

Package Overview
Dependencies
Maintainers
1
Versions
29
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@types/sqlite3 - npm Package Compare versions

Comparing version 2.2.33 to 3.1.0

sqlite3/LICENSE

77

sqlite3/index.d.ts

@@ -1,4 +0,5 @@

// Type definitions for sqlite3 2.2
// Type definitions for sqlite3 3.1
// Project: https://github.com/mapbox/node-sqlite3
// Definitions by: Nick Malaguti <https://github.com/nmalaguti/>
// Sumant Manne <https://github.com/dpyro/>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped

@@ -15,7 +16,7 @@

export const cached: {
Database(filename: string, callback?: (err: Error) => void): Database;
Database(filename: string, mode?: number, callback?: (err: Error) => void): Database;
Database(filename: string, callback?: (this: Database, err: Error | null) => void): Database;
Database(filename: string, mode?: number, callback?: (this: Database, err: Error | null) => void): Database;
};
export interface RunResult {
export interface RunResult extends Statement {
lastID: number;

@@ -26,52 +27,52 @@ changes: number;

export class Statement {
bind(callback?: (err: Error) => void): Statement;
bind(...params: any[]): Statement;
bind(callback?: (err: Error | null) => void): this;
bind(...params: any[]): this;
reset(callback?: (err: Error) => void): Statement;
reset(callback?: (err: null) => void): this;
finalize(callback?: (err: Error) => void): Statement;
finalize(callback?: (err: Error) => void): Database;
run(callback?: (err: Error) => void): Statement;
run(params: any, callback?: (err: Error) => void): Statement;
run(...params: any[]): Statement;
run(callback?: (err: Error | null) => void): this;
run(params: any, callback?: (this: RunResult, err: Error | null) => void): this;
run(...params: any[]): this;
get(callback?: (err: Error, row: any) => void): Statement;
get(params: any, callback?: (err: Error, row: any) => void): Statement;
get(...params: any[]): Statement;
get(callback?: (err: Error | null, row?: any) => void): this;
get(params: any, callback?: (this: RunResult, err: Error | null, row?: any) => void): this;
get(...params: any[]): this;
all(callback?: (err: Error, rows: any[]) => void): Statement;
all(params: any, callback?: (err: Error, rows: any[]) => void): Statement;
all(...params: any[]): Statement;
all(callback?: (err: Error | null, rows: any[]) => void): this;
all(params: any, callback?: (this: RunResult, err: Error | null, rows: any[]) => void): this;
all(...params: any[]): this;
each(callback?: (err: Error, row: any) => void, complete?: (err: Error, count: number) => void): Statement;
each(params: any, callback?: (err: Error, row: any) => void, complete?: (err: Error, count: number) => void): Statement;
each(...params: any[]): Statement;
each(callback?: (err: Error | null, row: any) => void, complete?: (err: Error | null, count: number) => void): this;
each(params: any, callback?: (this: RunResult, err: Error | null, row: any) => void, complete?: (err: Error | null, count: number) => void): this;
each(...params: any[]): this;
}
export class Database extends events.EventEmitter {
constructor(filename: string, callback?: (err: Error) => void);
constructor(filename: string, mode?: number, callback?: (err: Error) => void);
constructor(filename: string, callback?: (err: Error | null) => void);
constructor(filename: string, mode?: number, callback?: (err: Error | null) => void);
close(callback?: (err: Error) => void): void;
close(callback?: (err: Error | null) => void): void;
run(sql: string, callback?: (err: Error) => void): Database;
run(sql: string, params: any, callback?: (err: Error) => void): Database;
run(sql: string, ...params: any[]): Database;
run(sql: string, callback?: (this: RunResult, err: Error | null) => void): this;
run(sql: string, params: any, callback?: (this: RunResult, err: Error | null) => void): this;
run(sql: string, ...params: any[]): this;
get(sql: string, callback?: (err: Error, row: any) => void): Database;
get(sql: string, params: any, callback?: (err: Error, row: any) => void): Database;
get(sql: string, ...params: any[]): Database;
get(sql: string, callback?: (this: Statement, err: Error | null, row: any) => void): this;
get(sql: string, params: any, callback?: (this: Statement, err: Error | null, row: any) => void): this;
get(sql: string, ...params: any[]): this;
all(sql: string, callback?: (err: Error, rows: any[]) => void): Database;
all(sql: string, params: any, callback?: (err: Error, rows: any[]) => void): Database;
all(sql: string, ...params: any[]): Database;
all(sql: string, callback?: (this: Statement, err: Error | null, rows: any[]) => void): this;
all(sql: string, params: any, callback?: (this: Statement, err: Error | null, rows: any[]) => void): this;
all(sql: string, ...params: any[]): this;
each(sql: string, callback?: (err: Error, row: any) => void, complete?: (err: Error, count: number) => void): Database;
each(sql: string, params: any, callback?: (err: Error, row: any) => void, complete?: (err: Error, count: number) => void): Database;
each(sql: string, ...params: any[]): Database;
each(sql: string, callback?: (this: Statement, err: Error | null, row: any) => void, complete?: (err: Error | null, count: number) => void): this;
each(sql: string, params: any, callback?: (this: Statement, err: Error | null, row: any) => void, complete?: (err: Error | null, count: number) => void): this;
each(sql: string, ...params: any[]): this;
exec(sql: string, callback?: (err: Error) => void): Database;
exec(sql: string, callback?: (this: Statement, err: Error | null) => void): this;
prepare(sql: string, callback?: (err: Error) => void): Statement;
prepare(sql: string, params: any, callback?: (err: Error) => void): Statement;
prepare(sql: string, callback?: (this: Statement, err: Error | null) => void): Statement;
prepare(sql: string, params: any, callback?: (this: Statement, err: Error | null) => void): Statement;
prepare(sql: string, ...params: any[]): Statement;

@@ -78,0 +79,0 @@

{
"name": "@types/sqlite3",
"version": "2.2.33",
"version": "3.1.0",
"description": "TypeScript definitions for sqlite3",

@@ -10,2 +10,6 @@ "license": "MIT",

"url": "https://github.com/nmalaguti/"
},
{
"name": "Sumant Manne",
"url": "https://github.com/dpyro/"
}

@@ -23,4 +27,4 @@ ],

"peerDependencies": {},
"typesPublisherContentHash": "22c1be9922b2e02a5685c615300604d74e9b2732ef38961f4a832b9a8132b8bd",
"typesPublisherContentHash": "40167bfb6e8741731457779623463e8b1c8ca40e41ec90995be2e414ac6c25ef",
"typeScriptVersion": "2.0"
}

@@ -8,6 +8,6 @@ # Installation

# Details
Files were exported from https://www.github.com/DefinitelyTyped/DefinitelyTyped/tree/master/sqlite3
Files were exported from https://www.github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/sqlite3
Additional Details
* Last updated: Tue, 28 Mar 2017 19:51:22 GMT
* Last updated: Fri, 02 Jun 2017 14:56:33 GMT
* Dependencies: events, node

@@ -17,2 +17,2 @@ * Global values: none

# Credits
These definitions were written by Nick Malaguti <https://github.com/nmalaguti/>.
These definitions were written by Nick Malaguti <https://github.com/nmalaguti/>, Sumant Manne <https://github.com/dpyro/>.
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc