fix(config): update storage type references from sqlite to pglite
Update DEFAULT_LOCAL_CONFIG, VALID_STORAGE_TYPES, and repo-root mosaic.config.json to use pglite instead of sqlite, completing the storage dialect migration started in the previous commit. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"tier": "local",
|
"tier": "local",
|
||||||
"storage": { "type": "sqlite", "path": ".mosaic/data.db" },
|
"storage": { "type": "pglite", "dataDir": ".mosaic/storage-pglite" },
|
||||||
"queue": { "type": "local", "dataDir": ".mosaic/queue" },
|
"queue": { "type": "local", "dataDir": ".mosaic/queue" },
|
||||||
"memory": { "type": "keyword" }
|
"memory": { "type": "keyword" }
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -26,7 +26,7 @@ export interface MosaicConfig {
|
|||||||
|
|
||||||
export const DEFAULT_LOCAL_CONFIG: MosaicConfig = {
|
export const DEFAULT_LOCAL_CONFIG: MosaicConfig = {
|
||||||
tier: 'local',
|
tier: 'local',
|
||||||
storage: { type: 'sqlite', path: '.mosaic/data.db' },
|
storage: { type: 'pglite', dataDir: '.mosaic/storage-pglite' },
|
||||||
queue: { type: 'local', dataDir: '.mosaic/queue' },
|
queue: { type: 'local', dataDir: '.mosaic/queue' },
|
||||||
memory: { type: 'keyword' },
|
memory: { type: 'keyword' },
|
||||||
};
|
};
|
||||||
@@ -43,7 +43,7 @@ export const DEFAULT_TEAM_CONFIG: MosaicConfig = {
|
|||||||
/* ------------------------------------------------------------------ */
|
/* ------------------------------------------------------------------ */
|
||||||
|
|
||||||
const VALID_TIERS = new Set<string>(['local', 'team']);
|
const VALID_TIERS = new Set<string>(['local', 'team']);
|
||||||
const VALID_STORAGE_TYPES = new Set<string>(['postgres', 'sqlite', 'files']);
|
const VALID_STORAGE_TYPES = new Set<string>(['postgres', 'pglite', 'files']);
|
||||||
const VALID_QUEUE_TYPES = new Set<string>(['bullmq', 'local']);
|
const VALID_QUEUE_TYPES = new Set<string>(['bullmq', 'local']);
|
||||||
const VALID_MEMORY_TYPES = new Set<string>(['pgvector', 'sqlite-vec', 'keyword']);
|
const VALID_MEMORY_TYPES = new Set<string>(['pgvector', 'sqlite-vec', 'keyword']);
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user