Skip to content

sqlite

flextree-sqlite-adapterflextreesqlite数据库适配器,用于将flextree的操作转换为sqlite数据库操作。

安装

bash

npm install flextree-sqlite-adapter
// or
yarn add flextree-sqlite-adapter
// or
pnpm add flextree-sqlite-adapter

使用

ts

import SqliteAdapter from 'flextree-sqlite-adapter'
const sqliteDriver = new SqliteAdapter()
await sqliteDriver.open()

const tree = new FlexTree('tree', {
    adapter: sqliteDriver,
})

const tree = new FlexTreeManager('tree', {
    adapter: sqliteDriver,
})