Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 0 additions & 6 deletions index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -32,12 +32,6 @@ export interface RunResult {
}
/** Retrieve next row from an iterator synchronously. Needed for better-sqlite3 API compatibility. */
export declare function iteratorNextSync(iter: RowsIterator): Record
/** SQLite error object. */
export declare class SqliteError {
message: string
code: string
rawCode: number
}
/** SQLite database connection. */
export declare class Database {
/**
Expand Down
3 changes: 1 addition & 2 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -310,9 +310,8 @@ if (!nativeBinding) {
throw new Error(`Failed to load native binding`)
}

const { SqliteError, Database, databasePrepareSync, databaseSyncSync, Statement, statementIterateSync, RowsIterator, iteratorNextSync, Record } = nativeBinding
const { Database, databasePrepareSync, databaseSyncSync, Statement, statementIterateSync, RowsIterator, iteratorNextSync, Record } = nativeBinding

module.exports.SqliteError = SqliteError
module.exports.Database = Database
module.exports.databasePrepareSync = databasePrepareSync
module.exports.databaseSyncSync = databaseSyncSync
Expand Down
Loading