@venturekit/data 0.0.0-dev.20260307234057 → 0.0.0-dev.20260310105525
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/README.md +107 -0
- package/dist/index.d.ts +6 -6
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +4 -4
- package/dist/index.js.map +1 -1
- package/dist/migrations/index.d.ts +1 -1
- package/dist/migrations/index.d.ts.map +1 -1
- package/dist/query/index.d.ts +5 -5
- package/dist/query/index.d.ts.map +1 -1
- package/dist/query/index.js +5 -5
- package/dist/query/index.js.map +1 -1
- package/dist/query/transaction.js +2 -2
- package/dist/query/transaction.js.map +1 -1
- package/dist/rds/config.d.ts +1 -1
- package/dist/rds/config.d.ts.map +1 -1
- package/dist/rds/index.d.ts +3 -3
- package/dist/rds/index.d.ts.map +1 -1
- package/dist/rds/index.js +2 -2
- package/dist/rds/index.js.map +1 -1
- package/dist/rds/instance.d.ts +1 -1
- package/dist/rds/instance.d.ts.map +1 -1
- package/dist/types/index.d.ts +2 -2
- package/dist/types/index.d.ts.map +1 -1
- package/dist/types/index.js +2 -2
- package/dist/types/index.js.map +1 -1
- package/package.json +2 -2
package/README.md
ADDED
|
@@ -0,0 +1,107 @@
|
|
|
1
|
+
# @venturekit/data
|
|
2
|
+
|
|
3
|
+
> **Warning:** This package is in active development and not production-ready. APIs may change without notice.
|
|
4
|
+
|
|
5
|
+
Database and data layer for [VentureKit](https://venturekit.dev) — RDS configuration, migrations, query utilities, and transactions.
|
|
6
|
+
|
|
7
|
+
## Installation
|
|
8
|
+
|
|
9
|
+
```bash
|
|
10
|
+
npm install @venturekit/data@dev
|
|
11
|
+
```
|
|
12
|
+
|
|
13
|
+
## Overview
|
|
14
|
+
|
|
15
|
+
`@venturekit/data` provides:
|
|
16
|
+
|
|
17
|
+
- **RDS configuration** — `createRdsConfig()`, `buildRdsConfig()` for PostgreSQL and MySQL
|
|
18
|
+
- **Migration utilities** — `createMigrationConfig()`, Flyway environment helpers
|
|
19
|
+
- **Query utilities** — `query()`, `getPool()`, `mapResults()`, `mapRow()`
|
|
20
|
+
- **Transaction support** — `beginTransaction()`, `withTransaction()`, `buildTransaction()`
|
|
21
|
+
|
|
22
|
+
## Query Utilities
|
|
23
|
+
|
|
24
|
+
```typescript
|
|
25
|
+
import { query, getPool, mapResults } from '@venturekit/data';
|
|
26
|
+
|
|
27
|
+
// Simple query
|
|
28
|
+
const result = await query('SELECT * FROM tasks WHERE id = $1', [taskId]);
|
|
29
|
+
|
|
30
|
+
// Get the connection pool
|
|
31
|
+
const pool = getPool();
|
|
32
|
+
|
|
33
|
+
// Map results with a custom mapper
|
|
34
|
+
const tasks = mapResults(result, row => ({
|
|
35
|
+
id: row.id,
|
|
36
|
+
title: row.title,
|
|
37
|
+
completed: row.completed,
|
|
38
|
+
}));
|
|
39
|
+
```
|
|
40
|
+
|
|
41
|
+
## Transactions
|
|
42
|
+
|
|
43
|
+
```typescript
|
|
44
|
+
import { withTransaction, beginTransaction } from '@venturekit/data';
|
|
45
|
+
|
|
46
|
+
// Automatic commit/rollback
|
|
47
|
+
const result = await withTransaction(async (tx) => {
|
|
48
|
+
await tx.query('INSERT INTO tasks (title) VALUES ($1)', ['New task']);
|
|
49
|
+
await tx.query('UPDATE counters SET count = count + 1 WHERE name = $1', ['tasks']);
|
|
50
|
+
return { created: true };
|
|
51
|
+
});
|
|
52
|
+
|
|
53
|
+
// Manual transaction control
|
|
54
|
+
const tx = await beginTransaction();
|
|
55
|
+
try {
|
|
56
|
+
await tx.query('INSERT INTO tasks (title) VALUES ($1)', ['New task']);
|
|
57
|
+
await tx.commit();
|
|
58
|
+
} catch (error) {
|
|
59
|
+
await tx.rollback();
|
|
60
|
+
throw error;
|
|
61
|
+
}
|
|
62
|
+
```
|
|
63
|
+
|
|
64
|
+
### Transactional Handlers
|
|
65
|
+
|
|
66
|
+
When used with `@venturekit/runtime`, enable automatic transactions per request:
|
|
67
|
+
|
|
68
|
+
```typescript
|
|
69
|
+
import { handler } from '@venturekit/runtime';
|
|
70
|
+
|
|
71
|
+
export const main = handler(async (body, ctx, logger) => {
|
|
72
|
+
// ctx.tx is available — auto-commits on success, rolls back on error
|
|
73
|
+
await ctx.tx.query('INSERT INTO tasks (title) VALUES ($1)', [body.title]);
|
|
74
|
+
return { created: true };
|
|
75
|
+
}, { scopes: ['tasks.write'], transactional: true });
|
|
76
|
+
```
|
|
77
|
+
|
|
78
|
+
## RDS Configuration
|
|
79
|
+
|
|
80
|
+
```typescript
|
|
81
|
+
import { createRdsConfig, DEFAULT_RDS_CONFIG } from '@venturekit/data';
|
|
82
|
+
|
|
83
|
+
const rdsConfig = createRdsConfig({
|
|
84
|
+
engine: 'postgres',
|
|
85
|
+
instanceSize: 'small',
|
|
86
|
+
databaseName: 'mydb',
|
|
87
|
+
});
|
|
88
|
+
```
|
|
89
|
+
|
|
90
|
+
## Migrations
|
|
91
|
+
|
|
92
|
+
VentureKit uses [Drizzle Kit](https://orm.drizzle.team) for migrations. Use the CLI:
|
|
93
|
+
|
|
94
|
+
```bash
|
|
95
|
+
vk migrate generate # Generate from schema changes
|
|
96
|
+
vk migrate up # Apply pending migrations
|
|
97
|
+
vk migrate status # Check migration status
|
|
98
|
+
vk migrate studio # Open Drizzle Studio GUI
|
|
99
|
+
```
|
|
100
|
+
|
|
101
|
+
## API Reference
|
|
102
|
+
|
|
103
|
+
See the [API reference](https://venturekit.dev/api-reference/data) for full documentation.
|
|
104
|
+
|
|
105
|
+
## License
|
|
106
|
+
|
|
107
|
+
Apache-2.0 — see [LICENSE](../../LICENSE) for details.
|
package/dist/index.d.ts
CHANGED
|
@@ -3,10 +3,10 @@
|
|
|
3
3
|
*
|
|
4
4
|
* Database and data layer for VentureKit.
|
|
5
5
|
*/
|
|
6
|
-
export * from './types';
|
|
7
|
-
export { createRdsConfig, DEFAULT_RDS_CONFIG, buildRdsConfig, } from './rds';
|
|
8
|
-
export type { RdsOutputs, RdsInfraConfig } from './rds';
|
|
9
|
-
export { createMigrationConfig, DEFAULT_MIGRATION_CONFIG, getFlywayEnv, } from './migrations';
|
|
10
|
-
export { query, getPool, mapResults, mapRow, beginTransaction, withTransaction, buildTransaction, } from './query';
|
|
11
|
-
export type { Transaction, ResultsMapper } from './query';
|
|
6
|
+
export * from './types/index.js';
|
|
7
|
+
export { createRdsConfig, DEFAULT_RDS_CONFIG, buildRdsConfig, } from './rds/index.js';
|
|
8
|
+
export type { RdsOutputs, RdsInfraConfig } from './rds/index.js';
|
|
9
|
+
export { createMigrationConfig, DEFAULT_MIGRATION_CONFIG, getFlywayEnv, } from './migrations/index.js';
|
|
10
|
+
export { query, getPool, mapResults, mapRow, beginTransaction, withTransaction, buildTransaction, } from './query/index.js';
|
|
11
|
+
export type { Transaction, ResultsMapper } from './query/index.js';
|
|
12
12
|
//# sourceMappingURL=index.d.ts.map
|
package/dist/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAGH,cAAc,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAGH,cAAc,kBAAkB,CAAC;AAGjC,OAAO,EACL,eAAe,EACf,kBAAkB,EAClB,cAAc,GACf,MAAM,gBAAgB,CAAC;AACxB,YAAY,EAAE,UAAU,EAAE,cAAc,EAAE,MAAM,gBAAgB,CAAC;AAGjE,OAAO,EACL,qBAAqB,EACrB,wBAAwB,EACxB,YAAY,GACb,MAAM,uBAAuB,CAAC;AAG/B,OAAO,EACL,KAAK,EACL,OAAO,EACP,UAAU,EACV,MAAM,EACN,gBAAgB,EAChB,eAAe,EACf,gBAAgB,GACjB,MAAM,kBAAkB,CAAC;AAC1B,YAAY,EAAE,WAAW,EAAE,aAAa,EAAE,MAAM,kBAAkB,CAAC"}
|
package/dist/index.js
CHANGED
|
@@ -4,11 +4,11 @@
|
|
|
4
4
|
* Database and data layer for VentureKit.
|
|
5
5
|
*/
|
|
6
6
|
// Types
|
|
7
|
-
export * from './types';
|
|
7
|
+
export * from './types/index.js';
|
|
8
8
|
// RDS
|
|
9
|
-
export { createRdsConfig, DEFAULT_RDS_CONFIG, buildRdsConfig, } from './rds';
|
|
9
|
+
export { createRdsConfig, DEFAULT_RDS_CONFIG, buildRdsConfig, } from './rds/index.js';
|
|
10
10
|
// Migrations (recommends Flyway, golang-migrate, Prisma, or Drizzle)
|
|
11
|
-
export { createMigrationConfig, DEFAULT_MIGRATION_CONFIG, getFlywayEnv, } from './migrations';
|
|
11
|
+
export { createMigrationConfig, DEFAULT_MIGRATION_CONFIG, getFlywayEnv, } from './migrations/index.js';
|
|
12
12
|
// Query utility, result mapping, and transactions
|
|
13
|
-
export { query, getPool, mapResults, mapRow, beginTransaction, withTransaction, buildTransaction, } from './query';
|
|
13
|
+
export { query, getPool, mapResults, mapRow, beginTransaction, withTransaction, buildTransaction, } from './query/index.js';
|
|
14
14
|
//# sourceMappingURL=index.js.map
|
package/dist/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,QAAQ;AACR,cAAc,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,QAAQ;AACR,cAAc,kBAAkB,CAAC;AAEjC,MAAM;AACN,OAAO,EACL,eAAe,EACf,kBAAkB,EAClB,cAAc,GACf,MAAM,gBAAgB,CAAC;AAGxB,qEAAqE;AACrE,OAAO,EACL,qBAAqB,EACrB,wBAAwB,EACxB,YAAY,GACb,MAAM,uBAAuB,CAAC;AAE/B,kDAAkD;AAClD,OAAO,EACL,KAAK,EACL,OAAO,EACP,UAAU,EACV,MAAM,EACN,gBAAgB,EAChB,eAAe,EACf,gBAAgB,GACjB,MAAM,kBAAkB,CAAC"}
|
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
* - Prisma Migrate (https://www.prisma.io/migrate) - If using Prisma ORM
|
|
11
11
|
* - Drizzle Kit (https://orm.drizzle.team/kit-docs/overview) - If using Drizzle ORM
|
|
12
12
|
*/
|
|
13
|
-
import type { MigrationConfig, MigrationConfigInput } from '../types';
|
|
13
|
+
import type { MigrationConfig, MigrationConfigInput } from '../types/index.js';
|
|
14
14
|
/**
|
|
15
15
|
* Default migration configuration
|
|
16
16
|
*/
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/migrations/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;GAWG;AAEH,OAAO,KAAK,EAAE,eAAe,EAAE,oBAAoB,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/migrations/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;GAWG;AAEH,OAAO,KAAK,EAAE,eAAe,EAAE,oBAAoB,EAAE,MAAM,mBAAmB,CAAC;AAE/E;;GAEG;AACH,eAAO,MAAM,wBAAwB,EAAE,eAGtC,CAAC;AAEF;;GAEG;AACH,wBAAgB,qBAAqB,CAAC,KAAK,CAAC,EAAE,oBAAoB,GAAG,eAAe,CAOnF;AAED;;;;GAIG;AACH,wBAAgB,YAAY,CAAC,MAAM,EAAE,eAAe,EAAE,KAAK,EAAE,MAAM,GAAG,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAO3F"}
|
package/dist/query/index.d.ts
CHANGED
|
@@ -3,11 +3,11 @@
|
|
|
3
3
|
*
|
|
4
4
|
* Provides database querying, result mapping, and transaction support.
|
|
5
5
|
*/
|
|
6
|
-
import type { ResultsMapper } from './transaction';
|
|
7
|
-
export { getPool } from './pool';
|
|
8
|
-
export { mapResults, mapRow } from './mapper';
|
|
9
|
-
export { beginTransaction, withTransaction, buildTransaction, } from './transaction';
|
|
10
|
-
export type { Transaction, ResultsMapper } from './transaction';
|
|
6
|
+
import type { ResultsMapper } from './transaction.js';
|
|
7
|
+
export { getPool } from './pool.js';
|
|
8
|
+
export { mapResults, mapRow } from './mapper.js';
|
|
9
|
+
export { beginTransaction, withTransaction, buildTransaction, } from './transaction.js';
|
|
10
|
+
export type { Transaction, ResultsMapper } from './transaction.js';
|
|
11
11
|
/**
|
|
12
12
|
* Execute a SQL query against the connection pool.
|
|
13
13
|
*
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/query/index.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAKH,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/query/index.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAKH,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,kBAAkB,CAAC;AAEtD,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AACpC,OAAO,EAAE,UAAU,EAAE,MAAM,EAAE,MAAM,aAAa,CAAC;AACjD,OAAO,EACL,gBAAgB,EAChB,eAAe,EACf,gBAAgB,GACjB,MAAM,kBAAkB,CAAC;AAC1B,YAAY,EAAE,WAAW,EAAE,aAAa,EAAE,MAAM,kBAAkB,CAAC;AAEnE;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAiCG;AACH,wBAAsB,KAAK,CAAC,CAAC,GAAG,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,EAAE,EACvD,QAAQ,EAAE,MAAM,EAChB,WAAW,CAAC,EAAE,OAAO,EAAE,EACvB,aAAa,CAAC,EAAE,aAAa,CAAC,CAAC,CAAC,GAC/B,OAAO,CAAC,CAAC,CAAC,CAKZ"}
|
package/dist/query/index.js
CHANGED
|
@@ -3,11 +3,11 @@
|
|
|
3
3
|
*
|
|
4
4
|
* Provides database querying, result mapping, and transaction support.
|
|
5
5
|
*/
|
|
6
|
-
import { getPool } from './pool';
|
|
7
|
-
import { mapResults } from './mapper';
|
|
8
|
-
export { getPool } from './pool';
|
|
9
|
-
export { mapResults, mapRow } from './mapper';
|
|
10
|
-
export { beginTransaction, withTransaction, buildTransaction, } from './transaction';
|
|
6
|
+
import { getPool } from './pool.js';
|
|
7
|
+
import { mapResults } from './mapper.js';
|
|
8
|
+
export { getPool } from './pool.js';
|
|
9
|
+
export { mapResults, mapRow } from './mapper.js';
|
|
10
|
+
export { beginTransaction, withTransaction, buildTransaction, } from './transaction.js';
|
|
11
11
|
/**
|
|
12
12
|
* Execute a SQL query against the connection pool.
|
|
13
13
|
*
|
package/dist/query/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/query/index.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAGH,OAAO,EAAE,OAAO,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/query/index.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAGH,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AACpC,OAAO,EAAE,UAAU,EAAU,MAAM,aAAa,CAAC;AAGjD,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AACpC,OAAO,EAAE,UAAU,EAAE,MAAM,EAAE,MAAM,aAAa,CAAC;AACjD,OAAO,EACL,gBAAgB,EAChB,eAAe,EACf,gBAAgB,GACjB,MAAM,kBAAkB,CAAC;AAG1B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAiCG;AACH,MAAM,CAAC,KAAK,UAAU,KAAK,CACzB,QAAgB,EAChB,WAAuB,EACvB,aAAgC;IAEhC,MAAM,IAAI,GAAG,OAAO,EAAE,CAAC;IACvB,MAAM,GAAG,GAAgB,MAAM,IAAI,CAAC,KAAK,CAAC,QAAQ,EAAE,WAAW,CAAC,CAAC;IACjE,MAAM,MAAM,GAAG,UAAU,CAAC,GAAG,CAAC,IAAI,CAAC,CAAC;IACpC,OAAO,aAAa,CAAC,CAAC,CAAC,aAAa,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC,MAAsB,CAAC;AACxE,CAAC"}
|
|
@@ -6,8 +6,8 @@
|
|
|
6
6
|
* - beginTransaction() — manual commit/rollback
|
|
7
7
|
* - withTransaction(fn) — auto commit on success, rollback on error
|
|
8
8
|
*/
|
|
9
|
-
import { getPool } from './pool';
|
|
10
|
-
import { mapResults } from './mapper';
|
|
9
|
+
import { getPool } from './pool.js';
|
|
10
|
+
import { mapResults } from './mapper.js';
|
|
11
11
|
/**
|
|
12
12
|
* Begin a manual transaction.
|
|
13
13
|
*
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"transaction.js","sourceRoot":"","sources":["../../src/query/transaction.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAGH,OAAO,EAAE,OAAO,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"transaction.js","sourceRoot":"","sources":["../../src/query/transaction.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAGH,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AACpC,OAAO,EAAE,UAAU,EAAE,MAAM,aAAa,CAAC;AAoBzC;;;;;;;;;;;;;;;GAeG;AACH,MAAM,CAAC,KAAK,UAAU,gBAAgB;IACpC,MAAM,IAAI,GAAG,OAAO,EAAE,CAAC;IACvB,MAAM,MAAM,GAAe,MAAM,IAAI,CAAC,OAAO,EAAE,CAAC;IAEhD,MAAM,MAAM,CAAC,KAAK,CAAC,OAAO,CAAC,CAAC;IAE5B,OAAO,gBAAgB,CAAC,MAAM,CAAC,CAAC;AAClC,CAAC;AAED;;;;;;;;;;;;GAYG;AACH,MAAM,CAAC,KAAK,UAAU,eAAe,CACnC,EAAmC;IAEnC,MAAM,EAAE,GAAG,MAAM,gBAAgB,EAAE,CAAC;IACpC,IAAI,CAAC;QACH,MAAM,MAAM,GAAG,MAAM,EAAE,CAAC,EAAE,CAAC,CAAC;QAC5B,MAAM,EAAE,CAAC,MAAM,EAAE,CAAC;QAClB,OAAO,MAAM,CAAC;IAChB,CAAC;IAAC,OAAO,GAAG,EAAE,CAAC;QACb,MAAM,EAAE,CAAC,QAAQ,EAAE,CAAC;QACpB,MAAM,GAAG,CAAC;IACZ,CAAC;AACH,CAAC;AAED;;;;GAIG;AACH,MAAM,UAAU,gBAAgB,CAAC,MAAkB;IACjD,OAAO;QACL,KAAK,CAAC,KAAK,CACT,QAAgB,EAChB,WAAuB,EACvB,aAAgC;YAEhC,MAAM,GAAG,GAAgB,MAAM,MAAM,CAAC,KAAK,CAAC,QAAQ,EAAE,WAAW,CAAC,CAAC;YACnE,MAAM,MAAM,GAAG,UAAU,CAAC,GAAG,CAAC,IAAI,CAAC,CAAC;YACpC,OAAO,aAAa,CAAC,CAAC,CAAC,aAAa,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC,MAAsB,CAAC;QACxE,CAAC;QAED,KAAK,CAAC,MAAM;YACV,IAAI,CAAC;gBACH,MAAM,MAAM,CAAC,KAAK,CAAC,QAAQ,CAAC,CAAC;YAC/B,CAAC;oBAAS,CAAC;gBACT,MAAM,CAAC,OAAO,EAAE,CAAC;YACnB,CAAC;QACH,CAAC;QAED,KAAK,CAAC,QAAQ;YACZ,IAAI,CAAC;gBACH,MAAM,MAAM,CAAC,KAAK,CAAC,UAAU,CAAC,CAAC;YACjC,CAAC;oBAAS,CAAC;gBACT,MAAM,CAAC,OAAO,EAAE,CAAC;YACnB,CAAC;QACH,CAAC;KACF,CAAC;AACJ,CAAC"}
|
package/dist/rds/config.d.ts
CHANGED
package/dist/rds/config.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"config.d.ts","sourceRoot":"","sources":["../../src/rds/config.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,KAAK,EAAE,SAAS,EAAE,cAAc,EAAE,cAAc,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"config.d.ts","sourceRoot":"","sources":["../../src/rds/config.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,KAAK,EAAE,SAAS,EAAE,cAAc,EAAE,cAAc,EAAE,MAAM,mBAAmB,CAAC;AAEnF;;;;;;;GAOG;AACH,eAAO,MAAM,kBAAkB,EAAE,IAAI,CAAC,SAAS,EAAE,gBAAgB,CAahE,CAAC;AAEF;;GAEG;AACH,wBAAgB,cAAc,CAAC,MAAM,EAAE,cAAc,GAAG,MAAM,CAE7D;AAED;;GAEG;AACH,wBAAgB,8BAA8B,CAAC,MAAM,EAAE,cAAc,EAAE,OAAO,EAAE,MAAM,GAAG,MAAM,CAG9F;AAED;;;;;GAKG;AACH,wBAAgB,eAAe,CAAC,KAAK,EAAE,cAAc,GAAG;IAAE,cAAc,EAAE,MAAM,CAAA;CAAE,GAAG,SAAS,CAiB7F"}
|
package/dist/rds/index.d.ts
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
*
|
|
4
4
|
* Creates and configures AWS RDS instances for VentureKit.
|
|
5
5
|
*/
|
|
6
|
-
export { createRdsConfig, DEFAULT_RDS_CONFIG } from './config';
|
|
7
|
-
export { buildRdsConfig } from './instance';
|
|
8
|
-
export type { RdsOutputs, RdsInfraConfig } from './instance';
|
|
6
|
+
export { createRdsConfig, DEFAULT_RDS_CONFIG } from './config.js';
|
|
7
|
+
export { buildRdsConfig } from './instance.js';
|
|
8
|
+
export type { RdsOutputs, RdsInfraConfig } from './instance.js';
|
|
9
9
|
//# sourceMappingURL=index.d.ts.map
|
package/dist/rds/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/rds/index.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,EAAE,eAAe,EAAE,kBAAkB,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/rds/index.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,EAAE,eAAe,EAAE,kBAAkB,EAAE,MAAM,aAAa,CAAC;AAClE,OAAO,EAAE,cAAc,EAAE,MAAM,eAAe,CAAC;AAC/C,YAAY,EAAE,UAAU,EAAE,cAAc,EAAE,MAAM,eAAe,CAAC"}
|
package/dist/rds/index.js
CHANGED
|
@@ -3,6 +3,6 @@
|
|
|
3
3
|
*
|
|
4
4
|
* Creates and configures AWS RDS instances for VentureKit.
|
|
5
5
|
*/
|
|
6
|
-
export { createRdsConfig, DEFAULT_RDS_CONFIG } from './config';
|
|
7
|
-
export { buildRdsConfig } from './instance';
|
|
6
|
+
export { createRdsConfig, DEFAULT_RDS_CONFIG } from './config.js';
|
|
7
|
+
export { buildRdsConfig } from './instance.js';
|
|
8
8
|
//# sourceMappingURL=index.js.map
|
package/dist/rds/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/rds/index.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,EAAE,eAAe,EAAE,kBAAkB,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/rds/index.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,EAAE,eAAe,EAAE,kBAAkB,EAAE,MAAM,aAAa,CAAC;AAClE,OAAO,EAAE,cAAc,EAAE,MAAM,eAAe,CAAC"}
|
package/dist/rds/instance.d.ts
CHANGED
|
@@ -13,7 +13,7 @@
|
|
|
13
13
|
* This file is kept for backward compatibility.
|
|
14
14
|
* New projects should use the intent-based API in @venturekit/infra.
|
|
15
15
|
*/
|
|
16
|
-
import type { RdsConfig } from '../types';
|
|
16
|
+
import type { RdsConfig } from '../types/index.js';
|
|
17
17
|
/**
|
|
18
18
|
* RDS outputs (returned after infrastructure creation)
|
|
19
19
|
*/
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"instance.d.ts","sourceRoot":"","sources":["../../src/rds/instance.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"instance.d.ts","sourceRoot":"","sources":["../../src/rds/instance.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,mBAAmB,CAAC;AAEnD;;GAEG;AACH,MAAM,WAAW,UAAU;IACzB,UAAU,EAAE,MAAM,CAAC;IACnB,WAAW,EAAE,MAAM,CAAC;IACpB,QAAQ,EAAE,MAAM,CAAC;IACjB,IAAI,EAAE,MAAM,CAAC;IACb,YAAY,EAAE,MAAM,CAAC;IACrB,SAAS,EAAE,MAAM,CAAC;CACnB;AAED;;GAEG;AACH,MAAM,WAAW,cAAc;IAC7B,IAAI,EAAE,MAAM,CAAC;IACb,UAAU,EAAE,MAAM,CAAC;IACnB,MAAM,EAAE,UAAU,GAAG,OAAO,CAAC;IAC7B,aAAa,EAAE,MAAM,CAAC;IACtB,aAAa,EAAE,MAAM,CAAC;IACtB,gBAAgB,EAAE,MAAM,CAAC;IACzB,mBAAmB,CAAC,EAAE,MAAM,CAAC;IAC7B,YAAY,EAAE,MAAM,CAAC;IACrB,cAAc,EAAE,MAAM,CAAC;IACvB,OAAO,EAAE,OAAO,CAAC;IACjB,gBAAgB,EAAE,OAAO,CAAC;IAC1B,kBAAkB,EAAE,OAAO,CAAC;IAC5B,qBAAqB,EAAE,MAAM,CAAC;IAC9B,qBAAqB,CAAC,EAAE,MAAM,CAAC;IAC/B,0BAA0B,CAAC,EAAE,MAAM,CAAC;IACpC,0BAA0B,EAAE,OAAO,CAAC;IACpC,kCAAkC,CAAC,EAAE,MAAM,CAAC;IAC5C,kBAAkB,CAAC,EAAE,MAAM,CAAC;IAC5B,uBAAuB,EAAE,OAAO,CAAC;IACjC,kBAAkB,EAAE,OAAO,CAAC;IAC5B,IAAI,EAAE,MAAM,CAAC;IACb,oBAAoB,EAAE,MAAM,CAAC;IAC7B,UAAU,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;IACpC,SAAS,CAAC,EAAE,MAAM,EAAE,CAAC;IACrB,KAAK,CAAC,EAAE,MAAM,CAAC;CAChB;AAED;;;;;GAKG;AACH,wBAAgB,cAAc,CAC5B,IAAI,EAAE,MAAM,EACZ,MAAM,EAAE,SAAS,EACjB,KAAK,CAAC,EAAE,MAAM,EACd,SAAS,CAAC,EAAE,MAAM,EAAE,GACnB,cAAc,CA4BhB"}
|
package/dist/types/index.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/types/index.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,cAAc,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/types/index.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,cAAc,UAAU,CAAC;AACzB,cAAc,gBAAgB,CAAC"}
|
package/dist/types/index.js
CHANGED
package/dist/types/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/types/index.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,cAAc,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/types/index.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,cAAc,UAAU,CAAC;AACzB,cAAc,gBAAgB,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@venturekit/data",
|
|
3
|
-
"version": "0.0.0-dev.
|
|
3
|
+
"version": "0.0.0-dev.20260310105525",
|
|
4
4
|
"description": "Database and data layer for VentureKit",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./dist/index.js",
|
|
@@ -25,7 +25,7 @@
|
|
|
25
25
|
}
|
|
26
26
|
},
|
|
27
27
|
"dependencies": {
|
|
28
|
-
"@venturekit/core": "0.0.0-dev.
|
|
28
|
+
"@venturekit/core": "0.0.0-dev.20260310105525",
|
|
29
29
|
"pg": "^8.12.0"
|
|
30
30
|
},
|
|
31
31
|
"devDependencies": {
|