{"_id":"@bspeckco/tauri-plugin-sqlite","_rev":"9-1b0ff185d36d661bab17a9405eb17318","name":"@bspeckco/tauri-plugin-sqlite","dist-tags":{"latest":"0.1.7"},"versions":{"0.1.0":{"name":"@bspeckco/tauri-plugin-sqlite","version":"0.1.0","keywords":["tauri-plugin","tauri","sql","sqlite","rusqlite","database"],"author":{"name":"Latn Black"},"license":"MIT","_id":"@bspeckco/tauri-plugin-sqlite@0.1.0","maintainers":[{"name":"bspeckco","email":"admin.n@bluespeck.co"}],"homepage":"https://github.com/bspeckco/tauri-v2-plugin-workspace#readme","bugs":{"url":"https://github.com/bspeckco/tauri-v2-plugin-workspace/issues"},"dist":{"shasum":"52ee16df7cd39fccbb353a202682f6bd61043644","tarball":"https://registry.npmjs.org/@bspeckco/tauri-plugin-sqlite/-/tauri-plugin-sqlite-0.1.0.tgz","fileCount":6,"integrity":"sha512-9JZnIAHxuljXVv8b5SIIY0V1gfCniSn16I+HSAMOBOSMGtu9SKvFYv6Hb7spAPXe+xiV78dVe9pvS2ofLHtp4g==","signatures":[{"sig":"MEUCIH37vibUP5fff/YHuPpxGCpY72Rm7UX+L6vkRsuz97XiAiEAw2OYX21rBWd+kLQE02A1QD3Ot+YikkClHGVnkB14Qmc=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":20228},"main":"dist/index.js","types":"dist/index.d.ts","module":"dist/index.mjs","gitHead":"5b635dec969081a20b270eb951142204ac7061c5","scripts":{"build":"tsc","prepublishOnly":"npm run build"},"_npmUser":{"name":"bspeckco","email":"admin.n@bluespeck.co"},"repository":{"url":"git+https://github.com/bspeckco/tauri-v2-plugin-workspace.git","type":"git"},"_npmVersion":"9.8.1","description":"A fork of tauri-plugin-sql using rusqlite, supporting only SQLite with added transaction capabilities.","directories":{},"_nodeVersion":"18.18.2","publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"typescript":"^5.0.0","@tauri-apps/api":"^2.4.1"},"peerDependencies":{"@tauri-apps/api":"^2.4.1"},"_npmOperationalInternal":{"tmp":"tmp/tauri-plugin-sqlite_0.1.0_1744701055393_0.6943074199702786","host":"s3://npm-registry-packages-npm-production"}},"0.1.1":{"name":"@bspeckco/tauri-plugin-sqlite","version":"0.1.1","keywords":["tauri-plugin","tauri","sql","sqlite","rusqlite","database"],"author":{"name":"Latn Black"},"license":"MIT","_id":"@bspeckco/tauri-plugin-sqlite@0.1.1","maintainers":[{"name":"bspeckco","email":"admin.n@bluespeck.co"}],"homepage":"https://github.com/bspeckco/tauri-v2-plugin-workspace#readme","bugs":{"url":"https://github.com/bspeckco/tauri-v2-plugin-workspace/issues"},"dist":{"shasum":"eadbb461c4918666547f8c8e699a07e29347081d","tarball":"https://registry.npmjs.org/@bspeckco/tauri-plugin-sqlite/-/tauri-plugin-sqlite-0.1.1.tgz","fileCount":6,"integrity":"sha512-Ng01l5c58dCgggMsrecikZAeXq4O/NHk1mWHLAbTSjICmy//IAE5YMGsuyrkhYJYGuDI7Z30CF/EWdiQ5SH8eA==","signatures":[{"sig":"MEUCIG2idQwUUmjS9XA9w7Ut4nVMzCcS8gXEfySkDF/bgyqIAiEA8g9iS8cr7TLHRggTKH+4ayE2kVU2z2G9CCwL2MVEGXM=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":20372},"main":"dist/index.js","types":"dist/index.d.ts","module":"dist/index.mjs","exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.mjs","require":"./dist/index.js"}},"gitHead":"5b635dec969081a20b270eb951142204ac7061c5","scripts":{"build":"tsc","prepublishOnly":"npm run build"},"_npmUser":{"name":"bspeckco","email":"admin.n@bluespeck.co"},"repository":{"url":"git+https://github.com/bspeckco/tauri-v2-plugin-workspace.git","type":"git"},"_npmVersion":"9.8.1","description":"A fork of tauri-plugin-sql using rusqlite, supporting only SQLite with added transaction capabilities.","directories":{},"_nodeVersion":"18.18.2","publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"typescript":"^5.0.0","@tauri-apps/api":"^2.4.1"},"peerDependencies":{"@tauri-apps/api":"^2.4.1"},"_npmOperationalInternal":{"tmp":"tmp/tauri-plugin-sqlite_0.1.1_1744703632039_0.15176839532961295","host":"s3://npm-registry-packages-npm-production"}},"0.1.2":{"name":"@bspeckco/tauri-plugin-sqlite","version":"0.1.2","keywords":["tauri-plugin","tauri","sql","sqlite","rusqlite","database"],"author":{"name":"Latn Black"},"license":"MIT","_id":"@bspeckco/tauri-plugin-sqlite@0.1.2","maintainers":[{"name":"bspeckco","email":"admin.n@bluespeck.co"}],"homepage":"https://github.com/bspeckco/tauri-v2-plugin-workspace#readme","bugs":{"url":"https://github.com/bspeckco/tauri-v2-plugin-workspace/issues"},"dist":{"shasum":"dab4a9f73faa8e0a5850dbffd735a447ae9f96e2","tarball":"https://registry.npmjs.org/@bspeckco/tauri-plugin-sqlite/-/tauri-plugin-sqlite-0.1.2.tgz","fileCount":6,"integrity":"sha512-coeQGrczagqc0e1Hw7W9dikGagUa2v1nU/G7i3rbNnZBr0orWrjQwt497gW+UN9C71vAT46cNREJuudoMm/U+g==","signatures":[{"sig":"MEYCIQD7fY8/R92eyeGjgnrTWMZ0tZxEhuL8fC3m25Gy+FEzkQIhAKi8aDqEQC9losO8DLY2DV1ofILgsMnoVuVmI6V/3B3X","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":20211},"main":"dist/index.js","type":"module","types":"dist/index.d.ts","module":"dist/index.mjs","exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.mjs","require":"./dist/index.js"}},"gitHead":"5b635dec969081a20b270eb951142204ac7061c5","scripts":{"build":"tsc","prepublishOnly":"npm run build"},"_npmUser":{"name":"bspeckco","email":"admin.n@bluespeck.co"},"repository":{"url":"git+https://github.com/bspeckco/tauri-v2-plugin-workspace.git","type":"git"},"_npmVersion":"9.8.1","description":"A fork of tauri-plugin-sql using rusqlite, supporting only SQLite with added transaction capabilities.","directories":{},"_nodeVersion":"18.18.2","publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"typescript":"^5.0.0","@tauri-apps/api":"^2.4.1"},"peerDependencies":{"@tauri-apps/api":"^2.4.1"},"_npmOperationalInternal":{"tmp":"tmp/tauri-plugin-sqlite_0.1.2_1744703859957_0.5789921313992252","host":"s3://npm-registry-packages-npm-production"}},"0.1.3":{"name":"@bspeckco/tauri-plugin-sqlite","version":"0.1.3","keywords":["tauri-plugin","tauri","sql","sqlite","rusqlite","database"],"author":{"name":"Latn Black"},"license":"MIT","_id":"@bspeckco/tauri-plugin-sqlite@0.1.3","maintainers":[{"name":"bspeckco","email":"admin.n@bluespeck.co"}],"homepage":"https://github.com/bspeckco/tauri-v2-plugin-workspace#readme","bugs":{"url":"https://github.com/bspeckco/tauri-v2-plugin-workspace/issues"},"dist":{"shasum":"14e10ac3457bc7c4ee64e0c601fa26575818da68","tarball":"https://registry.npmjs.org/@bspeckco/tauri-plugin-sqlite/-/tauri-plugin-sqlite-0.1.3.tgz","fileCount":6,"integrity":"sha512-+5yn3i9/kBsi3DQnlo1C614G3+uEWNONOetE61tOH14iVjzAK9yUgUgXmVReqAep+aqprXcDIBAJgF+Kahw2hw==","signatures":[{"sig":"MEUCICilNF3vMo2CMKgnpqMnCctuNuf4AN3je35DsWqrd80+AiEA07NRRPzHfwDp14mAVVVMBE+VFil5WjRBUre2MAReDx4=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":20148},"type":"module","types":"dist/index.d.ts","module":"dist/index.mjs","exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.mjs"}},"gitHead":"5b635dec969081a20b270eb951142204ac7061c5","scripts":{"build":"tsc","prepublishOnly":"npm run build"},"_npmUser":{"name":"bspeckco","email":"admin.n@bluespeck.co"},"repository":{"url":"git+https://github.com/bspeckco/tauri-v2-plugin-workspace.git","type":"git"},"_npmVersion":"9.8.1","description":"A fork of tauri-plugin-sql using rusqlite, supporting only SQLite with added transaction capabilities.","directories":{},"_nodeVersion":"18.18.2","publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"typescript":"^5.0.0","@tauri-apps/api":"^2.4.1"},"peerDependencies":{"@tauri-apps/api":"^2.4.1"},"_npmOperationalInternal":{"tmp":"tmp/tauri-plugin-sqlite_0.1.3_1744704201663_0.17893334059102806","host":"s3://npm-registry-packages-npm-production"}},"0.1.4":{"name":"@bspeckco/tauri-plugin-sqlite","version":"0.1.4","keywords":["tauri-plugin","tauri","sql","sqlite","rusqlite","database"],"author":{"name":"Latn Black"},"license":"MIT","_id":"@bspeckco/tauri-plugin-sqlite@0.1.4","maintainers":[{"name":"bspeckco","email":"admin.n@bluespeck.co"}],"homepage":"https://github.com/bspeckco/tauri-v2-plugin-workspace#readme","bugs":{"url":"https://github.com/bspeckco/tauri-v2-plugin-workspace/issues"},"dist":{"shasum":"8a6d2b30eb265278866ecb7257b3688bce3dc6b5","tarball":"https://registry.npmjs.org/@bspeckco/tauri-plugin-sqlite/-/tauri-plugin-sqlite-0.1.4.tgz","fileCount":6,"integrity":"sha512-5kRk6ew9Qf0r9aUz5A93F3Dna7BJPldHO4M3w3zmUW2i9hdDcr/xmv91HU/4yMNtldGbxUSPBxlmJh9ZS6aDFw==","signatures":[{"sig":"MEQCICprsJEC6BPBKNE2rE9jjanIudZ/nytRnCknRrygZc4bAiArurLdTfMk9nlTMnBv31VRBE/FdwNIyx2fxdpIAcnd6w==","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":20146},"type":"module","types":"dist/index.d.ts","module":"dist/index.js","exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.js"}},"gitHead":"5b635dec969081a20b270eb951142204ac7061c5","scripts":{"build":"tsc","prepublishOnly":"npm run build"},"_npmUser":{"name":"bspeckco","email":"admin.n@bluespeck.co"},"repository":{"url":"git+https://github.com/bspeckco/tauri-v2-plugin-workspace.git","type":"git"},"_npmVersion":"9.8.1","description":"A fork of tauri-plugin-sql using rusqlite, supporting only SQLite with added transaction capabilities.","directories":{},"_nodeVersion":"18.18.2","publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"typescript":"^5.0.0","@tauri-apps/api":"^2.4.1"},"peerDependencies":{"@tauri-apps/api":"^2.4.1"},"_npmOperationalInternal":{"tmp":"tmp/tauri-plugin-sqlite_0.1.4_1744710106752_0.18996398154369643","host":"s3://npm-registry-packages-npm-production"}},"0.1.5":{"name":"@bspeckco/tauri-plugin-sqlite","version":"0.1.5","keywords":["tauri-plugin","tauri","sql","sqlite","rusqlite","database"],"author":{"name":"Latn Black"},"license":"MIT","_id":"@bspeckco/tauri-plugin-sqlite@0.1.5","maintainers":[{"name":"bspeckco","email":"admin.n@bluespeck.co"}],"homepage":"https://github.com/bspeckco/tauri-v2-plugin-workspace#readme","bugs":{"url":"https://github.com/bspeckco/tauri-v2-plugin-workspace/issues"},"dist":{"shasum":"064a016c2a9043c67487a296ec0d211cbd1cd869","tarball":"https://registry.npmjs.org/@bspeckco/tauri-plugin-sqlite/-/tauri-plugin-sqlite-0.1.5.tgz","fileCount":6,"integrity":"sha512-2Bmtu9O1bDgTFHgZooX5FBpwLnuC1u7GCsMbyTGrW6dw6nMqq7WmI0pZnhbK//rWsn5d/prJboDEaiIPlFDSUg==","signatures":[{"sig":"MEUCIQCwbFx5TEtXIUd2YJaaugjGQg53fzcpOK1OgHOkp5E3dAIgVx0V1IlS+8xjcsYkQeKTNf/WWU6d3Adi6bQQlAy29Io=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":20092},"type":"module","types":"dist/index.d.ts","module":"dist/index.js","exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.js"}},"gitHead":"5b635dec969081a20b270eb951142204ac7061c5","scripts":{"build":"tsc","prepublishOnly":"npm run build"},"_npmUser":{"name":"bspeckco","email":"admin.n@bluespeck.co"},"repository":{"url":"git+https://github.com/bspeckco/tauri-v2-plugin-workspace.git","type":"git"},"_npmVersion":"9.8.1","description":"A fork of tauri-plugin-sql using rusqlite, supporting only SQLite with added transaction capabilities.","directories":{},"_nodeVersion":"18.18.2","publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"typescript":"^5.0.0","@tauri-apps/api":"^2.4.1"},"peerDependencies":{"@tauri-apps/api":"^2.4.1"},"_npmOperationalInternal":{"tmp":"tmp/tauri-plugin-sqlite_0.1.5_1744711813961_0.8961325636351929","host":"s3://npm-registry-packages-npm-production"}},"0.1.6":{"name":"@bspeckco/tauri-plugin-sqlite","version":"0.1.6","keywords":["tauri-plugin","tauri","sql","sqlite","rusqlite","database"],"author":{"name":"Latn Black"},"license":"MIT","_id":"@bspeckco/tauri-plugin-sqlite@0.1.6","maintainers":[{"name":"bspeckco","email":"admin.n@bluespeck.co"}],"homepage":"https://github.com/bspeckco/tauri-v2-plugin-workspace#readme","bugs":{"url":"https://github.com/bspeckco/tauri-v2-plugin-workspace/issues"},"dist":{"shasum":"cea0f874287f1b5b0cd567c6e1178e8bb8a25471","tarball":"https://registry.npmjs.org/@bspeckco/tauri-plugin-sqlite/-/tauri-plugin-sqlite-0.1.6.tgz","fileCount":6,"integrity":"sha512-7X7N95mtQ/wTJTApHauuXti3q7OQlhHU42rkH3axvZLJ7bTNamoqphD44mTbntHbsaFElTK8ysqz+XUXzER80g==","signatures":[{"sig":"MEYCIQDfpbmUYYOLCQwS1YiE+5qoGQWa+jn1Z4Z5ViOMwORWSgIhAP5xRtjVIvwm8gro7tYZ2l9kZYCgmOIYmRb3GXRDRhgB","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":20092},"type":"module","types":"dist/index.d.ts","module":"dist/index.js","exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.js"}},"gitHead":"1b4aa68ca06ed4b84b80393f1c005320f6640cf9","scripts":{"build":"tsc","prepublishOnly":"npm run build"},"_npmUser":{"name":"bspeckco","email":"admin.n@bluespeck.co"},"repository":{"url":"git+https://github.com/bspeckco/tauri-v2-plugin-workspace.git","type":"git"},"_npmVersion":"9.8.1","description":"A fork of tauri-plugin-sql using rusqlite, supporting only SQLite with added transaction capabilities.","directories":{},"_nodeVersion":"18.18.2","publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"typescript":"^5.0.0","@tauri-apps/api":"^2.4.1"},"peerDependencies":{"@tauri-apps/api":"^2.4.1"},"_npmOperationalInternal":{"tmp":"tmp/tauri-plugin-sqlite_0.1.6_1744717127534_0.6220287622502039","host":"s3://npm-registry-packages-npm-production"}},"0.1.7":{"name":"@bspeckco/tauri-plugin-sqlite","version":"0.1.7","keywords":["tauri-plugin","tauri","sql","sqlite","rusqlite","database"],"author":{"name":"Latn Black"},"license":"MIT","_id":"@bspeckco/tauri-plugin-sqlite@0.1.7","maintainers":[{"name":"bspeckco","email":"admin.n@bluespeck.co"}],"homepage":"https://github.com/bspeckco/tauri-v2-plugin-workspace#readme","bugs":{"url":"https://github.com/bspeckco/tauri-v2-plugin-workspace/issues"},"dist":{"shasum":"027eff6f6dde014dfa9b67b2ae8163014e0f7198","tarball":"https://registry.npmjs.org/@bspeckco/tauri-plugin-sqlite/-/tauri-plugin-sqlite-0.1.7.tgz","fileCount":6,"integrity":"sha512-f2tYJTwVKe8eDfBgdTchem9q2GXERrKetQtNg92nzFDiJyNYWPIE5F8OZunyOOyysbkgGO2Yn8sUNsu2zZ68Pw==","signatures":[{"sig":"MEUCICTX4Wyc9Q7/kZQJUpntws0bGkNG7aBnuG4c7YLnjym2AiEA7uzLNsoeEOrh64112D9OjFfXnSZFnLvZ/1Isp3N4wlY=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":20092},"type":"module","types":"dist/index.d.ts","module":"dist/index.js","exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.js"}},"gitHead":"1b4aa68ca06ed4b84b80393f1c005320f6640cf9","scripts":{"build":"tsc","prepublishOnly":"npm run build"},"_npmUser":{"name":"bspeckco","email":"admin.n@bluespeck.co"},"repository":{"url":"git+https://github.com/bspeckco/tauri-v2-plugin-workspace.git","type":"git"},"_npmVersion":"9.8.1","description":"A fork of tauri-plugin-sql using rusqlite, supporting only SQLite with added transaction capabilities.","directories":{},"_nodeVersion":"18.18.2","publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"typescript":"^5.0.0","@tauri-apps/api":"^2.4.1"},"peerDependencies":{"@tauri-apps/api":"^2.4.1"},"_npmOperationalInternal":{"tmp":"tmp/tauri-plugin-sqlite_0.1.7_1744718133804_0.19608171910122985","host":"s3://npm-registry-packages-npm-production"}}},"time":{"created":"2025-04-15T07:10:55.320Z","modified":"2026-02-18T12:37:34.793Z","0.1.0":"2025-04-15T07:10:55.569Z","0.1.1":"2025-04-15T07:53:52.214Z","0.1.2":"2025-04-15T07:57:40.138Z","0.1.3":"2025-04-15T08:03:21.840Z","0.1.4":"2025-04-15T09:41:46.931Z","0.1.5":"2025-04-15T10:10:14.128Z","0.1.6":"2025-04-15T11:38:47.699Z","0.1.7":"2025-04-15T11:55:33.983Z"},"bugs":{"url":"https://github.com/bspeckco/tauri-v2-plugin-workspace/issues"},"author":{"name":"Latn Black"},"license":"MIT","homepage":"https://github.com/bspeckco/tauri-v2-plugin-workspace#readme","keywords":["tauri-plugin","tauri","sql","sqlite","rusqlite","database"],"repository":{"url":"git+https://github.com/bspeckco/tauri-v2-plugin-workspace.git","type":"git"},"description":"A fork of tauri-plugin-sql using rusqlite, supporting only SQLite with added transaction capabilities.","maintainers":[{"email":"admin.n@bluespeck.co","name":"lnoir"}],"readme":"# Tauri Plugin SQLite - JavaScript Bindings (@bspeckco/tauri-plugin-sqlite)\n\nThis package provides the JavaScript/TypeScript bindings for the `@bspeckco/tauri-plugin-sqlite` Tauri plugin.\n\n**Note:** This is a fork of the official `tauri-plugin-sql`. It uses `rusqlite` instead of `sqlx`, **supporting only SQLite databases**, and adds explicit transaction support.\n\n## Installation\n\nYou need to install both the Rust Core plugin and these JavaScript bindings.\n\nSee the [main plugin README](../../README.md) for instructions on setting up the Rust Core plugin in your `Cargo.toml`.\n\nInstall the JavaScript bindings using your preferred package manager:\n\n```bash\n# Using pnpm\npnpm add @bspeckco/tauri-plugin-sqlite\n\n# Using npm\nnpm install @bspeckco/tauri-plugin-sqlite\n\n# Using yarn\nyarn add @bspeckco/tauri-plugin-sqlite\n```\n\n## Usage\n\nImport the `Database` class and use the `load` method to connect to your SQLite database.\n\n```typescript\nimport Database from '@bspeckco/tauri-plugin-sqlite';\n\nasync function initializeDb() {\n  try {\n    // Load a file-based database (relative to AppData dir)\n    const db = await Database.load('sqlite:my-app-data.db');\n\n    // Or load an in-memory database\n    // const db = await Database.load('sqlite::memory:');\n\n    console.log('Database loaded successfully');\n\n    // Example query\n    await db.execute(\n      'CREATE TABLE IF NOT EXISTS users (id INTEGER PRIMARY KEY, name TEXT)'\n    );\n    const result = await db.execute('INSERT INTO users (name) VALUES (?)', [\n      'Test User',\n    ]);\n    console.log('Insert result:', result);\n\n    const users = await db.select('SELECT * FROM users');\n    console.log('Selected users:', users);\n\n    // See the main plugin README for transaction examples\n  } catch (error) {\n    console.error('Failed to initialize database:', error);\n  }\n}\n\ninitializeDb();\n```\n\nRefer to the [main plugin README](../../README.md) for detailed API documentation, including transaction usage. ","readmeFilename":"README.md"}