Commit 350391f
committed
fix: correct database type handling and SQLite configuration
Critical fixes for PostgreSQL, SQLite, and CockroachDB:
- Changed Postgres constant from 'psql' to 'postgres' (kept 'psql' as alias)
- Fixed SQLite config: 'host' -> 'database' in test workflow
- Updated getDriver() and buildConnectionString() to handle both 'postgres' and 'psql'
- Ensures proper database connections and table creation
This fixes the 'relation does not exist' errors by ensuring:
1. PostgreSQL/CockroachDB use correct connection strings
2. SQLite writes to correct database file1 parent 170c5ed commit 350391f
File tree
3 files changed
+5
-4
lines changed- .github/workflows
- golang
3 files changed
+5
-4
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
255 | 255 | | |
256 | 256 | | |
257 | 257 | | |
258 | | - | |
| 258 | + | |
259 | 259 | | |
260 | 260 | | |
261 | 261 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
49 | 49 | | |
50 | 50 | | |
51 | 51 | | |
52 | | - | |
| 52 | + | |
53 | 53 | | |
54 | 54 | | |
55 | 55 | | |
| |||
66 | 66 | | |
67 | 67 | | |
68 | 68 | | |
69 | | - | |
| 69 | + | |
70 | 70 | | |
71 | 71 | | |
72 | 72 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
11 | 11 | | |
12 | 12 | | |
13 | 13 | | |
14 | | - | |
| 14 | + | |
| 15 | + | |
15 | 16 | | |
16 | 17 | | |
17 | 18 | | |
| |||
0 commit comments