File tree Expand file tree Collapse file tree 2 files changed +0
-19
lines changed Expand file tree Collapse file tree 2 files changed +0
-19
lines changed Original file line number Diff line number Diff line change @@ -6,7 +6,6 @@ import { createClient as createTursoConnection } from "@libsql/client/web";
66// Import how we interact with the databases through the Outerbase SDK
77import {
88 CloudflareD1Connection ,
9- // MongoDBConnection,
109 MySQLConnection ,
1110 PostgreSQLConnection ,
1211 StarbaseConnection ,
@@ -20,7 +19,6 @@ import {
2019 TursoDBSource ,
2120} from "./types" ;
2221import { StarbaseDBConfiguration } from "./handler" ;
23- // import { MongoClient } from "mongodb";
2422import { afterQueryCache , beforeQueryCache } from "./cache" ;
2523import { isQueryAllowed } from "./allowlist" ;
2624import { applyRLS } from "./rls" ;
@@ -321,21 +319,6 @@ async function createSDKMySQLConnection(
321319 } ;
322320}
323321
324- // TODO: Disabled Mongo connection for now since it doesn't support RLS / Allow List
325- // async function createSDKMongoConnection(
326- // config: StarbaseDBConfiguration
327- // ): Promise<ConnectionDetails> {
328- // const client = new MongoDBConnection(
329- // new MongoClient(config.externalDbMongodbUri as string),
330- // config.externalDbName as string
331- // );
332-
333- // return {
334- // database: client,
335- // defaultSchema: config.externalDbName || "",
336- // };
337- // }
338-
339322async function createSDKTursoConnection (
340323 source : TursoDBSource
341324) : Promise < ConnectionDetails > {
Original file line number Diff line number Diff line change 11import { StarbaseDBDurableObject } from "./do" ;
2- import { QueryResponse } from "./operation" ;
32
43export type QueryResult = Record < string , SqlStorageValue > ;
54
@@ -45,7 +44,6 @@ export type TursoDBSource = {
4544export type ExternalDatabaseSource =
4645 | PostgresSource
4746 | MySQLSource
48- // | MongoSource
4947 | CloudflareD1Source
5048 | StarbaseDBSource
5149 | TursoDBSource ;
You can’t perform that action at this time.
0 commit comments