- isQueue table option adds queue columns and a (status, available_at) index; BunSQLite.queue exposes add, claim, complete, fail and release_stale with atomic claims - Set busy_timeout on connections so workers in separate processes wait instead of failing with SQLITE_BUSY - Quote table and column names with backticks in generated SQL, so reserved words (to, order, group) work and unknown columns error instead of matching as string literals - Tests for queue ops, multi-process claims and reserved-word names Co-Authored-By: Claude Opus 5.5 <[email protected]>
69 lines
1.8 KiB
JSON
69 lines
1.8 KiB
JSON
{
|
|
"name": "@moduletrace/bun-sqlite",
|
|
"version": "1.3.0",
|
|
"description": "Schema-driven SQLite manager for Bun",
|
|
"author": "Benjamin Toby",
|
|
"type": "module",
|
|
"main": "./dist/index.js",
|
|
"types": "./dist/index.d.ts",
|
|
"exports": {
|
|
".": {
|
|
"types": "./dist/index.d.ts",
|
|
"import": "./dist/index.js",
|
|
"default": "./dist/index.js"
|
|
},
|
|
"./types": {
|
|
"types": "./dist/types/index.d.ts",
|
|
"import": "./dist/types/index.js",
|
|
"default": "./dist/types/index.js"
|
|
}
|
|
},
|
|
"bin": {
|
|
"bun-sqlite": "./dist/commands/index.js"
|
|
},
|
|
"engines": {
|
|
"bun": ">=1.3.0"
|
|
},
|
|
"scripts": {
|
|
"dev": "tsc --watch",
|
|
"compile": "rm -rf dist tsconfig.tsbuildinfo && tsc -p tsconfig.json && chmod +x dist/commands/index.js",
|
|
"typecheck": "tsc -p tsconfig.json --noEmit",
|
|
"test": "bun test src tests",
|
|
"prepublishOnly": "bun run compile"
|
|
},
|
|
"devDependencies": {
|
|
"@types/bun": "1.3.14",
|
|
"@types/inquirer": "^9.0.9",
|
|
"@types/lodash": "^4.17.24",
|
|
"@types/node": "^25.3.3"
|
|
},
|
|
"peerDependencies": {
|
|
"typescript": "^5"
|
|
},
|
|
"files": [
|
|
"dist",
|
|
"README.md",
|
|
"package.json"
|
|
],
|
|
"repository": {
|
|
"type": "git",
|
|
"url": "git+https://git.tben.me/Moduletrace/bun-sqlite.git"
|
|
},
|
|
"keywords": [
|
|
"bun",
|
|
"sqlite",
|
|
"schema",
|
|
"orm",
|
|
"sql",
|
|
"vector"
|
|
],
|
|
"dependencies": {
|
|
"@inquirer/prompts": "^8.3.0",
|
|
"chalk": "^5.6.2",
|
|
"commander": "^14.0.3",
|
|
"inquirer": "^13.3.2",
|
|
"lodash": "^4.17.23",
|
|
"sqlite-vec": "^0.1.7-alpha.2"
|
|
}
|
|
}
|