Skip to content

Commit 8644620

Browse files
committed
remove unused struct
1 parent 236771d commit 8644620

File tree

3 files changed

+1
-19
lines changed

3 files changed

+1
-19
lines changed

index.d.ts

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -32,12 +32,6 @@ export interface RunResult {
3232
}
3333
/** Retrieve next row from an iterator synchronously. Needed for better-sqlite3 API compatibility. */
3434
export declare function iteratorNextSync(iter: RowsIterator): Record
35-
/** SQLite error object. */
36-
export declare class SqliteError {
37-
message: string
38-
code: string
39-
rawCode: number
40-
}
4135
/** SQLite database connection. */
4236
export declare class Database {
4337
/**

index.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -310,9 +310,8 @@ if (!nativeBinding) {
310310
throw new Error(`Failed to load native binding`)
311311
}
312312

313-
const { SqliteError, Database, databasePrepareSync, databaseSyncSync, Statement, statementIterateSync, RowsIterator, iteratorNextSync, Record } = nativeBinding
313+
const { Database, databasePrepareSync, databaseSyncSync, Statement, statementIterateSync, RowsIterator, iteratorNextSync, Record } = nativeBinding
314314

315-
module.exports.SqliteError = SqliteError
316315
module.exports.Database = Database
317316
module.exports.databasePrepareSync = databasePrepareSync
318317
module.exports.databaseSyncSync = databaseSyncSync

src/lib.rs

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -39,17 +39,6 @@ use std::{
3939
use tokio::{runtime::Runtime, sync::Mutex};
4040
use tracing_subscriber::{filter::LevelFilter, EnvFilter};
4141

42-
/// SQLite error object.
43-
#[napi]
44-
pub struct SqliteError {
45-
#[napi]
46-
pub message: String,
47-
#[napi]
48-
pub code: String,
49-
#[napi(js_name = rawCode)]
50-
pub raw_code: i32,
51-
}
52-
5342
struct Error(libsql::Error);
5443

5544
impl From<Error> for napi::Error {

0 commit comments

Comments
 (0)