Skip to content
Merged
Changes from 1 commit
Commits
Show all changes
26 commits
Select commit Hold shift + click to select a range
3c19e9c
fix: move recreateTables() to integration hooks
bholmesdev Apr 30, 2024
4427383
feat: recreate and seed at load, not in virtual runtime
bholmesdev Apr 30, 2024
333131b
feat: eager build db on startup and seed file change
bholmesdev Apr 30, 2024
2c6de6b
fix: respect database_file in dbUrl
bholmesdev Apr 30, 2024
56c4c97
chore: remove duplicate recreateTables call
bholmesdev Apr 30, 2024
82ad425
chore: remove now self-explanatory comments
bholmesdev Apr 30, 2024
a901140
fix: remove invalidateModule call for eager loading
bholmesdev Apr 30, 2024
69b1f77
feat: respect seed package paths
bholmesdev Apr 30, 2024
4abe41d
fix: remove duplicate recreateTables() call
bholmesdev Apr 30, 2024
1ed4c02
refactor: move recreateTables() to vite-plugin-db
bholmesdev Apr 30, 2024
4694c8e
refactor: move queries.ts from runtime/ to core/
bholmesdev Apr 30, 2024
98b1491
fix: update test import to core/queries
bholmesdev Apr 30, 2024
026062e
refactor: move executeSeedFile to vite-plugin-db
bholmesdev Apr 30, 2024
fe7a947
refactor: extract seeding and recreating to helper fns
bholmesdev Apr 30, 2024
c15b585
chore: changeset
bholmesdev Apr 30, 2024
533edb2
chore: revert connectToStudio refactor
bholmesdev Apr 30, 2024
d8b46db
wip: log db url
bholmesdev Apr 30, 2024
6f6fef2
fix(test): normalize astro_database_file flag for windows
bholmesdev Apr 30, 2024
01cca1c
Revert "wip: log db url"
bholmesdev Apr 30, 2024
53ed848
Revert "Revert "wip: log db url""
bholmesdev Apr 30, 2024
33747cb
fix: correctly resolve relative paths with unit test
bholmesdev Apr 30, 2024
a390dbd
chore: remove unused dbDirPath
bholmesdev May 1, 2024
f81cf8b
chore: remove unused import
bholmesdev May 1, 2024
9ba3d60
chore: remove unused type
bholmesdev May 1, 2024
1b41be4
fix: remove bad import
bholmesdev May 2, 2024
3b014fd
[db] Load seed files with vite dev server (#10941)
bholmesdev May 3, 2024
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
chore: remove unused type
Co-authored-by: Chris Swithinbank <[email protected]>
  • Loading branch information
bholmesdev and delucis committed May 2, 2024
commit 9ba3d602b4649d615d60e1cbca787a8476097e82
1 change: 0 additions & 1 deletion packages/db/src/core/integration/vite-plugin-db.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@ import type { DBTables } from '../types.js';
import { type VitePlugin, getDbDirectoryUrl, getRemoteDatabaseUrl, getAstroEnv } from '../utils.js';
import { createLocalDatabaseClient } from '../../runtime/db-client.js';
import { type SQL, sql } from 'drizzle-orm';
import type { LibSQLDatabase } from 'drizzle-orm/libsql';
import { existsSync } from 'node:fs';
import { normalizeDatabaseUrl } from '../../runtime/index.js';
import { bundleFile, getResolvedFileUrl, importBundledFile } from '../load-file.js';
Expand Down