@plyaz/db 0.4.0 → 0.4.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@plyaz/db",
3
- "version": "0.4.0",
4
- "description": "Package description",
3
+ "version": "0.4.1",
4
+ "description": "Unified database abstraction layer with CLI for migrations and seeds",
5
5
  "type": "module",
6
6
  "keywords": [],
7
7
  "packageManager": "pnpm@10.11.0",
@@ -0,0 +1,33 @@
1
+ /**
2
+ * Database Configuration
3
+ *
4
+ * Used by the @plyaz/db CLI for migrations and seeds
5
+ *
6
+ * @type {import('@plyaz/db').DatabaseServiceConfig}
7
+ */
8
+ export default {
9
+ // ============================================================================
10
+ // ADAPTER CONFIGURATION
11
+ // ============================================================================
12
+
13
+ adapter: globalThis.process.env.DB_ADAPTER ?? '{{ADAPTER}}',
14
+
15
+ config: {
16
+ connectionString: globalThis.process.env.DATABASE_URL ?? '{{CONNECTION_STRING}}',
17
+ poolSize: 20,
18
+
19
+ // Custom ID columns (optional)
20
+ // tableIdColumns: {
21
+ // 'feature_flags': 'key',
22
+ // },
23
+ },
24
+
25
+ // ============================================================================
26
+ // MIGRATIONS & SEEDS PATHS
27
+ // ============================================================================
28
+
29
+ migrationsPath: '{{MIGRATIONS_PATH}}',
30
+ seedsPath: '{{SEEDS_PATH}}',
31
+ migrationsTable: '{{MIGRATIONS_TABLE}}',
32
+ seedsTable: '{{SEEDS_TABLE}}',
33
+ };