SQLite adapter for the ThinkJS 3.x ORM model layer. Version 1.3.2 is the latest stable release. This package allows ThinkJS models to connect to SQLite databases via the sqlite3 driver. It follows the same adapter interface as think-model-mysql, making it easy to switch databases. The adapter supports basic CRUD operations, transactions, and query building. It is still actively maintained alongside ThinkJS v3.
npm install think-model-sqliteNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Shows how to configure ThinkJS 3.x to use SQLite adapter for models.
Run 'npm install sqlite3' and check Node version compatibility.
Avoid mixing callbacks and async/await in the same call chain.
Use an absolute path or ensure process.cwd() is correct.
Refer to think-model documentation for transaction usage.
Upgrade think-model to v3 and follow migration guide.
Run 'npm install sqlite3' in your project root.
Use 'import thinkModelSqlite from 'think-model-sqlite'' instead of '{ thinkModelSqlite }'.Check the 'path' config and ensure it points to a valid SQLite file.