Skip to content

Commit afba594

Browse files
committed
Update default schema for Mongo sources
1 parent dd77b27 commit afba594

File tree

3 files changed

+2
-3
lines changed

3 files changed

+2
-3
lines changed

src/index.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,6 @@ export interface Env {
2525
EXTERNAL_DB_DATABASE?: string;
2626
EXTERNAL_DB_DEFAULT_SCHEMA?: string;
2727

28-
// MongoDB specific
2928
EXTERNAL_DB_MONGODB_URI?: string;
3029
EXTERNAL_DB_TURSO_URI?: string;
3130
EXTERNAL_DB_TURSO_TOKEN?: string;

src/operation.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -174,7 +174,7 @@ async function createSDKMongoConnection(env: Env): Promise<ConnectionDetails> {
174174

175175
return {
176176
database: client,
177-
defaultSchema: env.EXTERNAL_DB_DEFAULT_SCHEMA || 'public'
177+
defaultSchema: env.EXTERNAL_DB_DATABASE || ''
178178
}
179179
}
180180

wrangler.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ REGION = "auto"
3939
# External database source details
4040
# This enables Starbase to connect to an external data source
4141
# OUTERBASE_API_KEY = ""
42-
# EXTERNAL_DB_TYPE = "sqlite"
42+
# EXTERNAL_DB_TYPE = "postgres"
4343
# EXTERNAL_DB_HOST = ""
4444
# EXTERNAL_DB_PORT = 0
4545
# EXTERNAL_DB_USER = ""

0 commit comments

Comments
 (0)