{"_id":"@aiao/rxdb-adapter-sqlite-core","_rev":"7-3d3bfa7d31bd89f41afa14278b100cdc","name":"@aiao/rxdb-adapter-sqlite-core","dist-tags":{"latest":"0.0.26"},"versions":{"0.0.20":{"name":"@aiao/rxdb-adapter-sqlite-core","version":"0.0.20","_id":"@aiao/rxdb-adapter-sqlite-core@0.0.20","maintainers":[{"name":"aiao","email":"hero63418@gmail.com"}],"nx":{"name":"rxdb-adapter-sqlite-core","tags":["js-lib"]},"dist":{"shasum":"7d1c1a6c7740ad6ee1a3955562fcf197a469214e","tarball":"https://registry.npmjs.org/@aiao/rxdb-adapter-sqlite-core/-/rxdb-adapter-sqlite-core-0.0.20.tgz","fileCount":129,"integrity":"sha512-ZqlSmq7DJkBVbD5DyKrMOitJeMRDCsXDosDm+HlXXinGsDyXXeIA9pnZ8esgUAK6sZgBonEwnbsuJ0ZKG46qww==","signatures":[{"sig":"MEUCIQCelW60JFA1w8wsVgeNXJrxwNG9W21QSpuE0aya9NVcQgIgH7kzsYSt8z8PfKDzowuERBL1vkubf5MNPLt3g2/YGSQ=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":448334},"main":"./dist/index.js","type":"module","_from":"file:aiao-rxdb-adapter-sqlite-core-0.0.20.tgz","types":"./dist/index.d.ts","module":"./dist/index.js","exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.js","default":"./dist/index.js","@aiao/source":"./src/index.ts"},"./testing":{"types":"./dist/testing.d.ts","import":"./dist/testing.js","default":"./dist/testing.js","@aiao/source":"./src/testing.ts"},"./package.json":"./package.json"},"_npmUser":{"name":"aiao","email":"hero63418@gmail.com"},"_resolved":"/private/var/folders/1s/1sk5kvms7jj4z6glj40__v300000gn/T/5bdb3b2bd3b5ebee2d61b9cacf0fbabb/aiao-rxdb-adapter-sqlite-core-0.0.20.tgz","_integrity":"sha512-ZqlSmq7DJkBVbD5DyKrMOitJeMRDCsXDosDm+HlXXinGsDyXXeIA9pnZ8esgUAK6sZgBonEwnbsuJ0ZKG46qww==","_npmVersion":"11.9.0","directories":{},"_nodeVersion":"24.14.0","dependencies":{"rxjs":"^7.8.2","comlink":"^4.4.2","@aiao/rxdb":"0.0.20","@aiao/utils":"0.0.20"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"ms":"^2.1.3","vitest":"^4.1.6","@aiao/rxdb-test":"0.0.20"},"peerDependencies":{"vitest":">=4.0.0"},"peerDependenciesMeta":{"vitest":{"optional":true}},"_npmOperationalInternal":{"tmp":"tmp/rxdb-adapter-sqlite-core_0.0.20_1779246543837_0.602043836010413","host":"s3://npm-registry-packages-npm-production"}},"0.0.21":{"name":"@aiao/rxdb-adapter-sqlite-core","version":"0.0.21","_id":"@aiao/rxdb-adapter-sqlite-core@0.0.21","maintainers":[{"name":"aiao","email":"hero63418@gmail.com"}],"nx":{"name":"rxdb-adapter-sqlite-core","tags":["js-lib"]},"dist":{"shasum":"7ad0d77ff002617b4652fa49ede21519409f45ba","tarball":"https://registry.npmjs.org/@aiao/rxdb-adapter-sqlite-core/-/rxdb-adapter-sqlite-core-0.0.21.tgz","fileCount":99,"integrity":"sha512-MTzuKTMyvMMuU4PjDuhwo+ATtLskMYO8o1enIVeRaNeJ96RWPQtXb8ZST6sgNq5h5R2YVWmRWwthURXhHgFH3g==","signatures":[{"sig":"MEYCIQDm9B7uU6M+kmt5fRBOtWGcAd/tsEjVIixcWqbDCGtQigIhAPlnNb2ozXAFWYwiKNqcE8kI/vcK7vB/HxZpPi7jw94p","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":468908},"main":"./dist/index.js","type":"module","_from":"file:aiao-rxdb-adapter-sqlite-core-0.0.21.tgz","types":"./dist/index.d.ts","module":"./dist/index.js","exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.js","default":"./dist/index.js","@aiao/source":"./src/index.ts"},"./testing":{"types":"./dist/testing.d.ts","import":"./dist/testing.js","default":"./dist/testing.js","@aiao/source":"./src/testing.ts"},"./package.json":"./package.json"},"_npmUser":{"name":"aiao","email":"hero63418@gmail.com"},"_resolved":"/private/var/folders/1s/1sk5kvms7jj4z6glj40__v300000gn/T/431641f5dcb8f34511f8832625ee8542/aiao-rxdb-adapter-sqlite-core-0.0.21.tgz","_integrity":"sha512-MTzuKTMyvMMuU4PjDuhwo+ATtLskMYO8o1enIVeRaNeJ96RWPQtXb8ZST6sgNq5h5R2YVWmRWwthURXhHgFH3g==","_npmVersion":"11.16.0","directories":{},"_nodeVersion":"24.18.0","dependencies":{"rxjs":"^7.8.2","comlink":"^4.4.2","@aiao/rxdb":"0.0.21","@aiao/utils":"0.0.21","@aiao/rxdb-adapter-encrypted":"0.0.21"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"ms":"^2.1.3","vitest":"4.1.5","@aiao/rxdb-test":"0.0.21"},"peerDependencies":{"vitest":">=4.0.0"},"peerDependenciesMeta":{"vitest":{"optional":true}},"_npmOperationalInternal":{"tmp":"tmp/rxdb-adapter-sqlite-core_0.0.21_1784362925773_0.40859798784051127","host":"s3://npm-registry-packages-npm-production"}},"0.0.22":{"name":"@aiao/rxdb-adapter-sqlite-core","version":"0.0.22","_id":"@aiao/rxdb-adapter-sqlite-core@0.0.22","maintainers":[{"name":"aiao","email":"hero63418@gmail.com"}],"nx":{"name":"rxdb-adapter-sqlite-core","tags":["js-lib"]},"dist":{"shasum":"bb0c6a1dbf2cd40fa9cd7874e97f56422ee0769e","tarball":"https://registry.npmjs.org/@aiao/rxdb-adapter-sqlite-core/-/rxdb-adapter-sqlite-core-0.0.22.tgz","fileCount":99,"integrity":"sha512-agFd+r/9aj/IAB5o9gjV20x72L5wN0+M8IG/zvEt8jOK6lH0Pip/qzSs4CCYPGxC5wzL/+o2P1Hc37r2c8SzBg==","signatures":[{"sig":"MEUCIE/8PabeSGJEKFDTnbhMAV6sUq+Ucib/JHAg4dA7mY2bAiEA8nb6svuT976jMun8EzZ+HF85XpYloDYZi6fLAkolocE=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":468908},"main":"./dist/index.js","type":"module","_from":"file:aiao-rxdb-adapter-sqlite-core-0.0.22.tgz","types":"./dist/index.d.ts","module":"./dist/index.js","exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.js","default":"./dist/index.js","@aiao/source":"./src/index.ts"},"./testing":{"types":"./dist/testing.d.ts","import":"./dist/testing.js","default":"./dist/testing.js","@aiao/source":"./src/testing.ts"},"./package.json":"./package.json"},"_npmUser":{"name":"aiao","email":"hero63418@gmail.com"},"_resolved":"/private/var/folders/1s/1sk5kvms7jj4z6glj40__v300000gn/T/a4fbbf4792fc778de37f3f8ec6dd8dae/aiao-rxdb-adapter-sqlite-core-0.0.22.tgz","_integrity":"sha512-agFd+r/9aj/IAB5o9gjV20x72L5wN0+M8IG/zvEt8jOK6lH0Pip/qzSs4CCYPGxC5wzL/+o2P1Hc37r2c8SzBg==","_npmVersion":"10.9.2","directories":{},"_nodeVersion":"22.14.0","dependencies":{"rxjs":"^7.8.2","comlink":"^4.4.2","@aiao/rxdb":"0.0.22","@aiao/utils":"0.0.22","@aiao/rxdb-adapter-encrypted":"0.0.22"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"ms":"^2.1.3","vitest":"4.1.5","@aiao/rxdb-test":"0.0.22"},"peerDependencies":{"vitest":">=4.0.0"},"peerDependenciesMeta":{"vitest":{"optional":true}},"_npmOperationalInternal":{"tmp":"tmp/rxdb-adapter-sqlite-core_0.0.22_1785482801728_0.7022767228173781","host":"s3://npm-registry-packages-npm-production"}},"0.0.23":{"name":"@aiao/rxdb-adapter-sqlite-core","version":"0.0.23","_id":"@aiao/rxdb-adapter-sqlite-core@0.0.23","maintainers":[{"name":"aiao","email":"hero63418@gmail.com"}],"nx":{"name":"rxdb-adapter-sqlite-core","tags":["js-lib"]},"dist":{"shasum":"9ab6094c3d2e2dbe53df958135f4750a500319e5","tarball":"https://registry.npmjs.org/@aiao/rxdb-adapter-sqlite-core/-/rxdb-adapter-sqlite-core-0.0.23.tgz","fileCount":99,"integrity":"sha512-YDDn/R+P0p4enhn/HVwcwmwJIJKeLGTnlpw8mivCtMPhuA4xfg3cYhi4FIY7QLuCCm4mAee/sH+Tfh0BX1j84w==","signatures":[{"sig":"MEUCIE3Nvs+VdjRyj3mjmIB3gEqRc24JWLamOIrt8cLkkOHiAiEA7pgqaKwU/b17dq0yiycyy8XkjxD5EEtH6R5gTDfbkMc=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":468908},"main":"./dist/index.js","type":"module","_from":"file:aiao-rxdb-adapter-sqlite-core-0.0.23.tgz","types":"./dist/index.d.ts","module":"./dist/index.js","exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.js","default":"./dist/index.js","@aiao/source":"./src/index.ts"},"./testing":{"types":"./dist/testing.d.ts","import":"./dist/testing.js","default":"./dist/testing.js","@aiao/source":"./src/testing.ts"},"./package.json":"./package.json"},"_npmUser":{"name":"aiao","email":"hero63418@gmail.com"},"_resolved":"/private/var/folders/1s/1sk5kvms7jj4z6glj40__v300000gn/T/bf30d72ef9a9985b967af11ee96b1eb3/aiao-rxdb-adapter-sqlite-core-0.0.23.tgz","_integrity":"sha512-YDDn/R+P0p4enhn/HVwcwmwJIJKeLGTnlpw8mivCtMPhuA4xfg3cYhi4FIY7QLuCCm4mAee/sH+Tfh0BX1j84w==","_npmVersion":"10.9.2","directories":{},"_nodeVersion":"22.14.0","dependencies":{"rxjs":"^7.8.2","comlink":"^4.4.2","@aiao/rxdb":"0.0.23","@aiao/utils":"0.0.23","@aiao/rxdb-adapter-encrypted":"0.0.23"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"ms":"^2.1.3","vitest":"4.1.5","@aiao/rxdb-test":"0.0.23"},"peerDependencies":{"vitest":">=4.0.0"},"peerDependenciesMeta":{"vitest":{"optional":true}},"_npmOperationalInternal":{"tmp":"tmp/rxdb-adapter-sqlite-core_0.0.23_1785736176990_0.290178546155236","host":"s3://npm-registry-packages-npm-production"}},"0.0.24":{"name":"@aiao/rxdb-adapter-sqlite-core","version":"0.0.24","license":"MIT","_id":"@aiao/rxdb-adapter-sqlite-core@0.0.24","maintainers":[{"name":"aiao","email":"hero63418@gmail.com"}],"nx":{"name":"rxdb-adapter-sqlite-core","tags":["js-lib"]},"dist":{"shasum":"404dd2867a188307c0313b3a89662e574f8c42be","tarball":"https://registry.npmjs.org/@aiao/rxdb-adapter-sqlite-core/-/rxdb-adapter-sqlite-core-0.0.24.tgz","fileCount":156,"integrity":"sha512-thsQ0k05z1z1UdRldHxw7g3rvLCl9U4f2sEa4uMTL18WFas1/ppyjrOlZZJzAv7pyhmogNRiRroTgXYfeWH2pg==","signatures":[{"sig":"MEUCIHoQPgRnaIipwj44lTrus5CMRlq2HQy5hIScUWDRgTl0AiEA9XRq2GEzm/o9mlH+4C8wj3i9muA2j3yDoa+Fpmkcuvs=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":962957},"main":"./dist/index.js","type":"module","_from":"file:aiao-rxdb-adapter-sqlite-core-0.0.24.tgz","types":"./dist/index.d.ts","module":"./dist/index.js","exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.js","default":"./dist/index.js"},"./testing":{"types":"./dist/testing.d.ts","import":"./dist/testing.js","default":"./dist/testing.js"},"./package.json":"./package.json"},"_npmUser":{"name":"aiao","email":"hero63418@gmail.com"},"_resolved":"/private/var/folders/1s/1sk5kvms7jj4z6glj40__v300000gn/T/253966cfa8aec700cc843f9c80b87a8a/aiao-rxdb-adapter-sqlite-core-0.0.24.tgz","_integrity":"sha512-thsQ0k05z1z1UdRldHxw7g3rvLCl9U4f2sEa4uMTL18WFas1/ppyjrOlZZJzAv7pyhmogNRiRroTgXYfeWH2pg==","_npmVersion":"11.19.0","description":"`@aiao/rxdb` 的 SQLite 适配器共享内核。它把「实体 → SQL」的映射、表名解析、规则组构建、基础 Repository 与变更事件等能力抽象为后端无关的基类，供各具体 SQLite 适配器复用。","directories":{},"_nodeVersion":"26.7.0","dependencies":{"rxjs":"^7.8.2","comlink":"^4.4.2","@aiao/rxdb":"0.0.24","@aiao/utils":"0.0.24","@aiao/rxdb-test":"0.0.24","@aiao/rxdb-adapter-encrypted":"0.0.24"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"ms":"^2.1.3","vitest":"4.1.5"},"peerDependencies":{"vitest":">=4.0.0"},"peerDependenciesMeta":{"vitest":{"optional":true}},"_npmOperationalInternal":{"tmp":"tmp/rxdb-adapter-sqlite-core_0.0.24_1786439101766_0.5351600376700849","host":"s3://npm-registry-packages-npm-production"}},"0.0.25":{"name":"@aiao/rxdb-adapter-sqlite-core","version":"0.0.25","license":"MIT","_id":"@aiao/rxdb-adapter-sqlite-core@0.0.25","maintainers":[{"name":"aiao","email":"hero63418@gmail.com"}],"homepage":"https://github.com/aiao-io/rxdb#readme","bugs":{"url":"https://github.com/aiao-io/rxdb/issues"},"nx":{"name":"rxdb-adapter-sqlite-core","tags":["js-lib"]},"dist":{"shasum":"23e546e3881e327ba3debe449885aa5c173d8a1a","tarball":"https://registry.npmjs.org/@aiao/rxdb-adapter-sqlite-core/-/rxdb-adapter-sqlite-core-0.0.25.tgz","fileCount":156,"integrity":"sha512-f0EffdIeYqarv14fHA3brHq/FqC9QDJRkEaXHuc2O2nV5zOmfFWg+y6mTJjK3bcKg3l5I4Hh5R5fkT5ZKTz9gQ==","signatures":[{"sig":"MEYCIQDMwXbxhZk7wLT/dTNg6ZyGVW1BrgAMo20htpYiUVRGmgIhAMVAxPhvSSj/d/I3YO/NeZPohyWXZ8w76BHwObBXmeBh","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/@aiao%2frxdb-adapter-sqlite-core@0.0.25","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"unpackedSize":968947},"main":"./dist/index.js","type":"module","_from":"file:aiao-rxdb-adapter-sqlite-core-0.0.25.tgz","types":"./dist/index.d.ts","module":"./dist/index.js","exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.js","default":"./dist/index.js"},"./testing":{"types":"./dist/testing.d.ts","import":"./dist/testing.js","default":"./dist/testing.js"},"./package.json":"./package.json"},"_npmUser":{"name":"aiao","email":"hero63418@gmail.com"},"_resolved":"/tmp/d3282362452f53c3baeda4174437669f/aiao-rxdb-adapter-sqlite-core-0.0.25.tgz","_integrity":"sha512-f0EffdIeYqarv14fHA3brHq/FqC9QDJRkEaXHuc2O2nV5zOmfFWg+y6mTJjK3bcKg3l5I4Hh5R5fkT5ZKTz9gQ==","repository":{"url":"git+https://github.com/aiao-io/rxdb.git","type":"git","directory":"packages/rxdb-adapter-sqlite-core"},"_npmVersion":"11.19.0","description":"`@aiao/rxdb` 的 SQLite 适配器共享内核。它把「实体 → SQL」的映射、表名解析、规则组构建、基础 Repository 与变更事件等能力抽象为后端无关的基类，供各具体 SQLite 适配器复用。","directories":{},"_nodeVersion":"26.7.0","dependencies":{"rxjs":"^7.8.2","comlink":"^4.4.2","@aiao/rxdb":"0.0.25","@aiao/utils":"0.0.25","@aiao/rxdb-test":"0.0.25","@aiao/rxdb-adapter-encrypted":"0.0.25"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"ms":"^2.1.3","vitest":"4.1.10"},"peerDependencies":{"vitest":">=4.0.0"},"peerDependenciesMeta":{"vitest":{"optional":true}},"_npmOperationalInternal":{"tmp":"tmp/rxdb-adapter-sqlite-core_0.0.25_1786694769348_0.01771037298451983","host":"s3://npm-registry-packages-npm-production"}},"0.0.26":{"nx":{"name":"rxdb-adapter-sqlite-core","tags":["js-lib"]},"_id":"@aiao/rxdb-adapter-sqlite-core@0.0.26","bugs":{"url":"https://github.com/aiao-io/rxdb/issues"},"dist":{"shasum":"70c8a66b0d6ba64520e50f491a1469e0aa5868df","tarball":"https://registry.npmjs.org/@aiao/rxdb-adapter-sqlite-core/-/rxdb-adapter-sqlite-core-0.0.26.tgz","fileCount":200,"integrity":"sha512-geqIG1I419v9Kta6pETs8cTvEnV/EVM+Vko82UI/wngY9GEAOcnsZf1acJMiJN2Ay7k06JizAIyP9a3uVoCBFw==","signatures":[{"sig":"MEYCIQC32B1pHYk2oYvsDLCcpoD0EyA9Ky02+aTKXAklToQlVwIhANLqLOhOonB4dSnZ/5et9dPZN/nZRpOJYvbyoWUFkZ0Y","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"},{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEYCIQDj78XjbIDdmXC3vrNw9SdIFGSPAk7rxHnQE4PcWPhdXgIhAPdyBXHsrxc6xMpKPdR6Zk9HclglYl8hE8nc3yTSCeU5"}],"unpackedSize":1227253},"main":"./dist/index.js","name":"@aiao/rxdb-adapter-sqlite-core","type":"module","_from":"file:aiao-rxdb-adapter-sqlite-core-0.0.26.tgz","types":"./dist/index.d.ts","module":"./dist/index.js","exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.js","default":"./dist/index.js"},"./testing":{"types":"./dist/testing.d.ts","import":"./dist/testing.js","default":"./dist/testing.js","@aiao/source":"./src/testing.ts"},"./desktop-host":{"types":"./dist/desktop-host.d.ts","import":"./dist/desktop-host.js","default":"./dist/desktop-host.js","@aiao/source":"./src/desktop-host.ts"},"./package.json":"./package.json"},"license":"MIT","version":"0.0.26","_npmUser":{"name":"aiao","email":"hero63418@gmail.com"},"homepage":"https://rxdb.netlify.app/docs/adapters","keywords":["aiao","rxdb","sqlite","storage","adapter","typescript"],"_resolved":"/private/tmp/pack-0.0.26/aiao-rxdb-adapter-sqlite-core-0.0.26.tgz","_integrity":"sha512-geqIG1I419v9Kta6pETs8cTvEnV/EVM+Vko82UI/wngY9GEAOcnsZf1acJMiJN2Ay7k06JizAIyP9a3uVoCBFw==","repository":{"url":"git+https://github.com/aiao-io/rxdb.git","type":"git","directory":"packages/rxdb-adapter-sqlite-core"},"_npmVersion":"12.0.2","description":"Shared SQLite storage primitives for Aiao RxDB adapters.","directories":{},"maintainers":[{"name":"aiao","email":"hero63418@gmail.com"}],"sideEffects":false,"_nodeVersion":"26.7.0","dependencies":{"rxjs":"^7.8.2","comlink":"^4.4.2","@aiao/rxdb":"0.0.26","@aiao/utils":"0.0.26","@aiao/rxdb-adapter-encrypted":"0.0.26"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"ms":"^2.1.3","vitest":"4.1.11","@aiao/rxdb-test":"0.0.26","@aiao/rxdb-plugin-history":"0.0.26"},"peerDependencies":{"vitest":">=4.0.0","@aiao/rxdb-test":"0.0.26","@aiao/rxdb-plugin-history":"0.0.26"},"peerDependenciesMeta":{"vitest":{"optional":true},"@aiao/rxdb-test":{"optional":true},"@aiao/rxdb-plugin-history":{"optional":true}},"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/rxdb-adapter-sqlite-core_0.0.26_1790793706959_0.30363189899584175"}}},"time":{"created":"2026-05-20T03:09:03.629Z","modified":"2026-09-30T18:41:47.285Z","0.0.20":"2026-05-20T03:09:04.006Z","0.0.21":"2026-07-18T08:22:05.943Z","0.0.22":"2026-07-31T07:26:41.869Z","0.0.23":"2026-08-03T05:49:37.182Z","0.0.24":"2026-08-11T09:05:01.933Z","0.0.25":"2026-08-14T08:06:09.516Z","0.0.26":"2026-09-30T18:41:47.105Z"},"bugs":{"url":"https://github.com/aiao-io/rxdb/issues"},"license":"MIT","homepage":"https://rxdb.netlify.app/docs/adapters","repository":{"url":"git+https://github.com/aiao-io/rxdb.git","type":"git","directory":"packages/rxdb-adapter-sqlite-core"},"description":"Shared SQLite storage primitives for Aiao RxDB adapters.","maintainers":[{"name":"aiao","email":"hero63418@gmail.com"}],"readme":"# @aiao/rxdb-adapter-sqlite-core\n\n`@aiao/rxdb` 的 SQLite 适配器共享内核。它把「实体 → SQL」的映射、表名解析、规则组构建、基础 Repository 与变更事件等能力抽象为后端无关的基类，供各具体 SQLite 适配器复用。\n\n> 本包一般不直接安装，而是作为 `@aiao/rxdb-adapter-sqlite`、`@aiao/rxdb-adapter-sqlite-wasm`、`@aiao/rxdb-adapter-sqliteai` 等适配器的依赖被间接引入。\n\n## 提供的能力\n\n- `RxDBAdapterSqliteBase`：SQLite 适配器基类，封装事务、建表与变更钩子\n- `SqliteTransactionExecutor`：`TransactionExecutor` 在 SQLite 侧的实现；`transaction()` 回调收到的就是它\n- `SqliteRepository`：基于 SQLite 的类型安全 Repository 实现\n- `buildRuleGroup`：将查询规则编译为 SQL 条件\n- `sqliteGetTableName` / `sqliteGetTableNameByMetadata`：实体 → 表名解析\n- 后端契约类型：`SqliteBackend`、`SqliteChangeEvent`、`SQLiteChangeType` 等\n\n具体后端只需实现 `SqliteBackend` 契约即可接入。\n\n## 事务 API（C2 已落地第一步）\n\n`RxDBAdapterSqliteBase.transaction()` / `runInTransaction()` 的回调签名已收紧为接收 `SqliteTransactionExecutor`：\n\n```typescript\nimport type { TransactionFun } from '@aiao/rxdb-adapter-sqlite-core';\n\nconst fun: TransactionFun = async executor => {\n  // 持有 executor 才算「在本事务内」\n  const repo = executor.getRepository(Todo);\n  await repo.create({ title: 'inside tx' });\n\n  // executor.execute(sql, bindings) 透传底层 client.execute，\n  // 既有的 `transaction(async tx => tx.execute(sql))` 写法不受影响\n  await executor.execute('SELECT 1');\n\n  // 嵌套内层工作\n  await executor.run(async inner => inner.getRepository(Todo).count());\n\n  // 合并远端变更\n  await executor.mergeChanges(actions, localChanges, /* disableTriggers */ false);\n};\n```\n\n> 零参回调仍然兼容（TS 允许形参更少）。`SqliteTransactionExecutor` 不直接导出 —— 它是 `RxDBAdapterSqliteBase` 的内部产物，外部代码只通过 `@aiao/rxdb` 的 `TransactionExecutor` 接口与之交互。\n\n## 文档\n\n- 仓库主页：[https://github.com/aiao-io/rxdb](https://github.com/aiao-io/rxdb)\n- 适配器指南见项目文档站\n\n## License\n\n[MIT](https://github.com/aiao-io/rxdb/blob/main/LICENSE)\n","readmeFilename":"README.md","keywords":["aiao","rxdb","sqlite","storage","adapter","typescript"]}