Skip to content

Commit 88cb828

Browse files
committed
Remove Mongo support
Needs additional testing before official support
1 parent 5c17687 commit 88cb828

File tree

2 files changed

+0
-19
lines changed

2 files changed

+0
-19
lines changed

src/operation.ts

Lines changed: 0 additions & 17 deletions
Original file line numberDiff line numberDiff 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
77
import {
88
CloudflareD1Connection,
9-
// MongoDBConnection,
109
MySQLConnection,
1110
PostgreSQLConnection,
1211
StarbaseConnection,
@@ -20,7 +19,6 @@ import {
2019
TursoDBSource,
2120
} from "./types";
2221
import { StarbaseDBConfiguration } from "./handler";
23-
// import { MongoClient } from "mongodb";
2422
import { afterQueryCache, beforeQueryCache } from "./cache";
2523
import { isQueryAllowed } from "./allowlist";
2624
import { 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-
339322
async function createSDKTursoConnection(
340323
source: TursoDBSource
341324
): Promise<ConnectionDetails> {

src/types.ts

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
import { StarbaseDBDurableObject } from "./do";
2-
import { QueryResponse } from "./operation";
32

43
export type QueryResult = Record<string, SqlStorageValue>;
54

@@ -45,7 +44,6 @@ export type TursoDBSource = {
4544
export type ExternalDatabaseSource =
4645
| PostgresSource
4746
| MySQLSource
48-
// | MongoSource
4947
| CloudflareD1Source
5048
| StarbaseDBSource
5149
| TursoDBSource;

0 commit comments

Comments
 (0)