Skip to content

Commit

Permalink
rename bundle
Browse files Browse the repository at this point in the history
  • Loading branch information
insipx committed Aug 5, 2024
1 parent 8a2aafa commit 613c84f
Show file tree
Hide file tree
Showing 4 changed files with 88 additions and 17 deletions.
30 changes: 15 additions & 15 deletions diesel-wasm-sqlite/package.js
Original file line number Diff line number Diff line change
Expand Up @@ -80,60 +80,60 @@ export class SQLite {
throw error;
}
}

bind_collection(stmt, bindings) {
try {
return this.sqlite3.bind_collection(stmt, bindings);
} catch (error) {
console.log("bind collection error");
throw error;
}
}
}

bind_double(stmt, i, value) {
try {
return this.sqlite3.bind_double(stmt, i, value);
} catch (error) {
console.log("bind double error");
throw error;
}
}
}

bind_int(stmt, i, value) {
try {
return this.sqlite3.bind_int(stmt, i, value);
} catch (error) {
console.log("bind int error");
throw error;
}
}
}

bind_int64(stmt, i, value) {
try {
return this.sqlite3.bind_int64(stmt, i, value);
} catch (error) {
console.log("bind int644 error");
throw error;
}
}
}

bind_null(stmt, i) {
try {
return this.sqlite3.bind_null(stmt, i);
} catch (error) {
console.log("bind null error");
throw error;
}
}
}

bind_parameter_count(stmt) -> i32 {
bind_parameter_count(stmt) {
return this.sqlite3.bind_parameter_count(stmt);
}
}

bind_parameter_name(stmt, i) -> string {
bind_parameter_name(stmt, i) {
return this.sqlite3.bind_paramater_name(stmt, it);
}

bind_text(stmt, i, value) {
try {
this.sqlite3.bind_text(stmt, i, value);
Expand All @@ -142,7 +142,7 @@ export class SQLite {
throw error;
}
}

async reset(stmt) {
try {
return await this.sqlite3.reset(stmt);
Expand Down
2 changes: 1 addition & 1 deletion diesel-wasm-sqlite/rollup.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ export default defineConfig([
{
input: "package.js",
output: {
file: "src/package.js",
file: "src/wa-sqlite-diesel-bundle.js",
format: "es",
},
plugins: [
Expand Down
2 changes: 1 addition & 1 deletion diesel-wasm-sqlite/src/ffi.rs
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ unsafe impl Send for SQLite {}
unsafe impl Sync for SQLite {}

/// Direct Shim for wa-sqlite
#[wasm_bindgen(module = "/src/package.js")]
#[wasm_bindgen(module = "/src/wa-sqlite-diesel-bundle.js")]
extern "C" {
pub type SQLite;
pub type SQLiteCompatibleType;
Expand Down

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 613c84f

Please sign in to comment.