Skip to content

Commit

Permalink
langchain[patch]: Support for sqljs (#5560)
Browse files Browse the repository at this point in the history
* Support for sqljs

Added support for sqljs, the browser transpile of sqlite

* Format

---------

Co-authored-by: jacoblee93 <[email protected]>
  • Loading branch information
radiantone and jacoblee93 authored May 29, 2024
1 parent 4ab397c commit 079931f
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion langchain/src/util/sql_utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,10 @@ export const getTableAndColumnsName = async (
return formatToSqlTable(rep);
}

if (appDataSource.options.type === "sqlite") {
if (
appDataSource.options.type === "sqlite" ||
appDataSource.options.type === "sqljs"
) {
sql =
"SELECT \n" +
" m.name AS table_name,\n" +
Expand Down

0 comments on commit 079931f

Please sign in to comment.