SQLite adapter for flextree, enabling persistent tree structure storage. Current version 2.0.4. Provides a straightforward adapter interface to store and retrieve hierarchical data using SQLite, tightly coupled with flextree's core tree manipulation. Key differentiator: lightweight, minimal configuration, and directly integrates with flextree without additional ORM layers.
npm install flextree-sqlite-adapterNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Creates a SQLite adapter, initializes the table, and performs basic tree operations using flextree.
Update constructor call to new SqliteAdapter(db, { tableName: 'nodes' })Ensure Database constructor is called with the file path or ':memory:'.
Use better-sqlite3 as the database driver.
Use { table: 'nodes' } instead of { tableName: 'nodes' }.import { SqliteAdapter } from 'flextree-sqlite-adapter'npm install better-sqlite3
Ensure adapter is created with new and initialize() is called after constructor.
Call adapter.initialize() before performing operations.