Skip to content

Remove unused SqliteError struct #192

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Jul 11, 2025
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