Remove mysql export that doesn't exist in patched emdash 0.9.0
The blog template's db.ts imported 'mysql' from 'emdash/db' but the patched source only exports sqlite, libsql, and postgres adapters. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
7083
pnpm-lock.yaml
generated
Normal file
7083
pnpm-lock.yaml
generated
Normal file
File diff suppressed because it is too large
Load Diff
@@ -1,4 +1,4 @@
|
|||||||
import { sqlite, postgres, mysql } from "emdash/db";
|
import { sqlite, postgres } from "emdash/db";
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Database configuration from environment variables.
|
* Database configuration from environment variables.
|
||||||
@@ -26,11 +26,6 @@ export function getDatabaseConfig() {
|
|||||||
return postgres({ connectionString: url });
|
return postgres({ connectionString: url });
|
||||||
}
|
}
|
||||||
|
|
||||||
if (url.startsWith("mysql:")) {
|
|
||||||
// MySQL
|
|
||||||
return mysql({ connectionString: url });
|
|
||||||
}
|
|
||||||
|
|
||||||
// Fallback to SQLite
|
// Fallback to SQLite
|
||||||
console.warn(`Unknown DATABASE_URL protocol, falling back to SQLite`);
|
console.warn(`Unknown DATABASE_URL protocol, falling back to SQLite`);
|
||||||
return sqlite({ url: "file:./storage/data.db" });
|
return sqlite({ url: "file:./storage/data.db" });
|
||||||
|
|||||||
Reference in New Issue
Block a user