Sign in
Log inSign up
Embedder

2 likes

·

5.3K reads

1 comment

David
David
Jun 25, 2023

according to js.langchain.com/docs/modules/agents/toolk…

import { SqlDatabase } from "langchain/sql_db"; import { DataSource } from "typeorm";

const datasource = new DataSource({ type: "sqlite", database: "Chinook.db", }); const db = await SqlDatabase.fromDataSourceParams({ appDataSource: datasource, });

and npm install --save sqlite3

·