diff options
author | 2023-07-08 14:26:19 -0700 | |
---|---|---|
committer | 2023-07-08 14:26:19 -0700 | |
commit | aa8b832ef61ada31176d248e716074ff22bb9dee (patch) | |
tree | ef125622db8bb593a6b9860c7c00437a98d93733 /src/bun.js/bindings/sqlite/JSSQLStatement.h | |
parent | fa632c33312ad3b4dca9e4bddaa2af1c7db07597 (diff) | |
download | bun-aa8b832ef61ada31176d248e716074ff22bb9dee.tar.gz bun-aa8b832ef61ada31176d248e716074ff22bb9dee.tar.zst bun-aa8b832ef61ada31176d248e716074ff22bb9dee.zip |
Implement `process.on("beforeExit", cb)` and `process.on("exit", cb)` (#3576)
* Support `process.on('beforeExit')` and `process.on('exit')`
* [bun:sqlite] Always call sqlite3_close on exit
* Update process.test.js
---------
Co-authored-by: Jarred Sumner <709451+Jarred-Sumner@users.noreply.github.com>
Diffstat (limited to 'src/bun.js/bindings/sqlite/JSSQLStatement.h')
-rw-r--r-- | src/bun.js/bindings/sqlite/JSSQLStatement.h | 15 |
1 files changed, 0 insertions, 15 deletions
diff --git a/src/bun.js/bindings/sqlite/JSSQLStatement.h b/src/bun.js/bindings/sqlite/JSSQLStatement.h index e63b99fbb..8566fcdd9 100644 --- a/src/bun.js/bindings/sqlite/JSSQLStatement.h +++ b/src/bun.js/bindings/sqlite/JSSQLStatement.h @@ -47,17 +47,6 @@ namespace WebCore { -class VersionSqlite3 { -public: - explicit VersionSqlite3(sqlite3* db) - : db(db) - , version(0) - { - } - sqlite3* db; - std::atomic<uint64_t> version; -}; - class JSSQLStatementConstructor final : public JSC::JSFunction { public: using Base = JSC::JSFunction; @@ -82,13 +71,9 @@ public: return JSC::Structure::create(vm, globalObject, prototype, JSC::TypeInfo(JSC::ObjectType, StructureFlags), info()); } - Vector<VersionSqlite3*> databases; - Vector<std::atomic<uint64_t>> schema_versions; - private: JSSQLStatementConstructor(JSC::VM& vm, NativeExecutable* native, JSGlobalObject* globalObject, JSC::Structure* structure) : Base(vm, native, globalObject, structure) - , databases() { } |