@groundbrick/db-core 0.0.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.
Files changed (102) hide show
  1. package/README.md +214 -0
  2. package/dist/adapters/BaseSqlAdapter.d.ts +14 -0
  3. package/dist/adapters/BaseSqlAdapter.d.ts.map +1 -0
  4. package/dist/adapters/BaseSqlAdapter.js +37 -0
  5. package/dist/adapters/BaseSqlAdapter.js.map +1 -0
  6. package/dist/adapters/DatabaseAdapter.d.ts +59 -0
  7. package/dist/adapters/DatabaseAdapter.d.ts.map +1 -0
  8. package/dist/adapters/DatabaseAdapter.js +120 -0
  9. package/dist/adapters/DatabaseAdapter.js.map +1 -0
  10. package/dist/base/BaseTransaction.d.ts +65 -0
  11. package/dist/base/BaseTransaction.d.ts.map +1 -0
  12. package/dist/base/BaseTransaction.js +134 -0
  13. package/dist/base/BaseTransaction.js.map +1 -0
  14. package/dist/custom-types/MigrationRecord.d.ts +6 -0
  15. package/dist/custom-types/MigrationRecord.d.ts.map +1 -0
  16. package/dist/custom-types/MigrationRecord.js +2 -0
  17. package/dist/custom-types/MigrationRecord.js.map +1 -0
  18. package/dist/custom-types/QueryParams.d.ts +5 -0
  19. package/dist/custom-types/QueryParams.d.ts.map +1 -0
  20. package/dist/custom-types/QueryParams.js +2 -0
  21. package/dist/custom-types/QueryParams.js.map +1 -0
  22. package/dist/custom-types/Transaction.d.ts +6 -0
  23. package/dist/custom-types/Transaction.d.ts.map +1 -0
  24. package/dist/custom-types/Transaction.js +2 -0
  25. package/dist/custom-types/Transaction.js.map +1 -0
  26. package/dist/custom-types/TransactionCallback.d.ts +3 -0
  27. package/dist/custom-types/TransactionCallback.d.ts.map +1 -0
  28. package/dist/custom-types/TransactionCallback.js +2 -0
  29. package/dist/custom-types/TransactionCallback.js.map +1 -0
  30. package/dist/error-handling/ConnectionError.d.ts +8 -0
  31. package/dist/error-handling/ConnectionError.d.ts.map +1 -0
  32. package/dist/error-handling/ConnectionError.js +11 -0
  33. package/dist/error-handling/ConnectionError.js.map +1 -0
  34. package/dist/error-handling/DatabaseError.d.ts +18 -0
  35. package/dist/error-handling/DatabaseError.d.ts.map +1 -0
  36. package/dist/error-handling/DatabaseError.js +22 -0
  37. package/dist/error-handling/DatabaseError.js.map +1 -0
  38. package/dist/error-handling/MigrationError.d.ts +8 -0
  39. package/dist/error-handling/MigrationError.d.ts.map +1 -0
  40. package/dist/error-handling/MigrationError.js +11 -0
  41. package/dist/error-handling/MigrationError.js.map +1 -0
  42. package/dist/error-handling/QueryError.d.ts +8 -0
  43. package/dist/error-handling/QueryError.d.ts.map +1 -0
  44. package/dist/error-handling/QueryError.js +11 -0
  45. package/dist/error-handling/QueryError.js.map +1 -0
  46. package/dist/error-handling/TransactionError.d.ts +8 -0
  47. package/dist/error-handling/TransactionError.d.ts.map +1 -0
  48. package/dist/error-handling/TransactionError.js +11 -0
  49. package/dist/error-handling/TransactionError.js.map +1 -0
  50. package/dist/index.d.ts +138 -0
  51. package/dist/index.d.ts.map +1 -0
  52. package/dist/index.js +105 -0
  53. package/dist/index.js.map +1 -0
  54. package/dist/interfaces/ConfigValidator.d.ts +10 -0
  55. package/dist/interfaces/ConfigValidator.d.ts.map +1 -0
  56. package/dist/interfaces/ConfigValidator.js +2 -0
  57. package/dist/interfaces/ConfigValidator.js.map +1 -0
  58. package/dist/interfaces/DatabaseClient.d.ts +18 -0
  59. package/dist/interfaces/DatabaseClient.d.ts.map +1 -0
  60. package/dist/interfaces/DatabaseClient.js +2 -0
  61. package/dist/interfaces/DatabaseClient.js.map +1 -0
  62. package/dist/interfaces/DatabaseConfig.d.ts +22 -0
  63. package/dist/interfaces/DatabaseConfig.d.ts.map +1 -0
  64. package/dist/interfaces/DatabaseConfig.js +2 -0
  65. package/dist/interfaces/DatabaseConfig.js.map +1 -0
  66. package/dist/interfaces/DatabaseFactory.d.ts +11 -0
  67. package/dist/interfaces/DatabaseFactory.d.ts.map +1 -0
  68. package/dist/interfaces/DatabaseFactory.js +2 -0
  69. package/dist/interfaces/DatabaseFactory.js.map +1 -0
  70. package/dist/interfaces/DatabaseTransaction.d.ts +31 -0
  71. package/dist/interfaces/DatabaseTransaction.d.ts.map +1 -0
  72. package/dist/interfaces/DatabaseTransaction.js +2 -0
  73. package/dist/interfaces/DatabaseTransaction.js.map +1 -0
  74. package/dist/interfaces/HealthCheckResult.d.ts +14 -0
  75. package/dist/interfaces/HealthCheckResult.d.ts.map +1 -0
  76. package/dist/interfaces/HealthCheckResult.js +2 -0
  77. package/dist/interfaces/HealthCheckResult.js.map +1 -0
  78. package/dist/interfaces/Migration.d.ts +11 -0
  79. package/dist/interfaces/Migration.d.ts.map +1 -0
  80. package/dist/interfaces/Migration.js +2 -0
  81. package/dist/interfaces/Migration.js.map +1 -0
  82. package/dist/interfaces/MigrationManager.d.ts +31 -0
  83. package/dist/interfaces/MigrationManager.d.ts.map +1 -0
  84. package/dist/interfaces/MigrationManager.js +2 -0
  85. package/dist/interfaces/MigrationManager.js.map +1 -0
  86. package/dist/interfaces/MigrationStatus.d.ts +10 -0
  87. package/dist/interfaces/MigrationStatus.d.ts.map +1 -0
  88. package/dist/interfaces/MigrationStatus.js +2 -0
  89. package/dist/interfaces/MigrationStatus.js.map +1 -0
  90. package/dist/interfaces/QueryResult.d.ts +14 -0
  91. package/dist/interfaces/QueryResult.d.ts.map +1 -0
  92. package/dist/interfaces/QueryResult.js +2 -0
  93. package/dist/interfaces/QueryResult.js.map +1 -0
  94. package/dist/interfaces/SqlAdapter.d.ts +11 -0
  95. package/dist/interfaces/SqlAdapter.d.ts.map +1 -0
  96. package/dist/interfaces/SqlAdapter.js +2 -0
  97. package/dist/interfaces/SqlAdapter.js.map +1 -0
  98. package/dist/interfaces/index.d.ts +14 -0
  99. package/dist/interfaces/index.d.ts.map +1 -0
  100. package/dist/interfaces/index.js +3 -0
  101. package/dist/interfaces/index.js.map +1 -0
  102. package/package.json +56 -0
@@ -0,0 +1,31 @@
1
+ import { QueryResult } from "./QueryResult.js";
2
+ /**
3
+ * Transaction interface - common methods for all database types
4
+ * This interface ensures consistent transaction handling across MySQL and PostgreSQL
5
+ */
6
+ export interface DatabaseTransaction {
7
+ /**
8
+ * Execute a query within the transaction
9
+ */
10
+ query<T = any>(text: string, params?: any[]): Promise<QueryResult<T>>;
11
+ /**
12
+ * Commit the transaction
13
+ * This method should only be called once and marks the transaction as completed
14
+ */
15
+ commit(): Promise<void>;
16
+ /**
17
+ * Rollback the transaction
18
+ * This method should be safe to call multiple times
19
+ */
20
+ rollback(): Promise<void>;
21
+ /**
22
+ * Check if the transaction has been completed (committed or rolled back)
23
+ */
24
+ isCompleted(): boolean;
25
+ getDatabaseType(): 'postgresql' | 'mysql';
26
+ supportsReturning(): boolean;
27
+ adaptSql(sql: string): string;
28
+ createInsertSql(tableName: string, columns: string[]): string;
29
+ createUpdateSql(tableName: string, columns: string[]): string;
30
+ }
31
+ //# sourceMappingURL=DatabaseTransaction.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"DatabaseTransaction.d.ts","sourceRoot":"","sources":["../../src/interfaces/DatabaseTransaction.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,kBAAkB,CAAC;AAE/C;;;GAGG;AACH,MAAM,WAAW,mBAAmB;IAChC;;OAEG;IACH,KAAK,CAAC,CAAC,GAAG,GAAG,EAAE,IAAI,EAAE,MAAM,EAAE,MAAM,CAAC,EAAE,GAAG,EAAE,GAAG,OAAO,CAAC,WAAW,CAAC,CAAC,CAAC,CAAC,CAAC;IAEtE;;;OAGG;IACH,MAAM,IAAI,OAAO,CAAC,IAAI,CAAC,CAAC;IAExB;;;OAGG;IACH,QAAQ,IAAI,OAAO,CAAC,IAAI,CAAC,CAAC;IAE1B;;OAEG;IACH,WAAW,IAAI,OAAO,CAAC;IAEvB,eAAe,IAAI,YAAY,GAAG,OAAO,CAAC;IAC1C,iBAAiB,IAAI,OAAO,CAAC;IAC7B,QAAQ,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,CAAC;IAC9B,eAAe,CAAC,SAAS,EAAE,MAAM,EAAE,OAAO,EAAE,MAAM,EAAE,GAAG,MAAM,CAAC;IAC9D,eAAe,CAAC,SAAS,EAAE,MAAM,EAAE,OAAO,EAAE,MAAM,EAAE,GAAG,MAAM,CAAC;CACjE"}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=DatabaseTransaction.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"DatabaseTransaction.js","sourceRoot":"","sources":["../../src/interfaces/DatabaseTransaction.ts"],"names":[],"mappings":""}
@@ -0,0 +1,14 @@
1
+ /**
2
+ * Health check result
3
+ */
4
+ export interface HealthCheckResult {
5
+ status: 'healthy' | 'unhealthy' | 'degraded';
6
+ timestamp: Date;
7
+ responseTime?: number;
8
+ message?: string;
9
+ activeConnections?: number;
10
+ totalConnections?: number;
11
+ error?: string;
12
+ details?: Record<string, any>;
13
+ }
14
+ //# sourceMappingURL=HealthCheckResult.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"HealthCheckResult.d.ts","sourceRoot":"","sources":["../../src/interfaces/HealthCheckResult.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,MAAM,WAAW,iBAAiB;IAC9B,MAAM,EAAE,SAAS,GAAG,WAAW,GAAG,UAAU,CAAC;IAC7C,SAAS,EAAE,IAAI,CAAC;IAChB,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,iBAAiB,CAAC,EAAE,MAAM,CAAC;IAC3B,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAC1B,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,OAAO,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC;CACjC"}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=HealthCheckResult.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"HealthCheckResult.js","sourceRoot":"","sources":["../../src/interfaces/HealthCheckResult.ts"],"names":[],"mappings":""}
@@ -0,0 +1,11 @@
1
+ /**
2
+ * Migration interface
3
+ */
4
+ export interface Migration {
5
+ id: string;
6
+ description: string;
7
+ up: string;
8
+ down: string;
9
+ checksum?: string;
10
+ }
11
+ //# sourceMappingURL=Migration.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Migration.d.ts","sourceRoot":"","sources":["../../src/interfaces/Migration.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,MAAM,WAAW,SAAS;IACtB,EAAE,EAAE,MAAM,CAAC;IACX,WAAW,EAAE,MAAM,CAAC;IACpB,EAAE,EAAE,MAAM,CAAC;IACX,IAAI,EAAE,MAAM,CAAC;IACb,QAAQ,CAAC,EAAE,MAAM,CAAC;CACrB"}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=Migration.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Migration.js","sourceRoot":"","sources":["../../src/interfaces/Migration.ts"],"names":[],"mappings":""}
@@ -0,0 +1,31 @@
1
+ import { MigrationStatus, Migration } from "./index.js";
2
+ /**
3
+ * Migration manager interface
4
+ */
5
+ export interface MigrationManager {
6
+ /**
7
+ * Apply pending migrations
8
+ */
9
+ migrate(): Promise<void>;
10
+ /**
11
+ * Rollback the last migration
12
+ */
13
+ rollback(): Promise<void>;
14
+ /**
15
+ * Rollback to a specific migration
16
+ */
17
+ rollbackTo(migrationId: string): Promise<void>;
18
+ /**
19
+ * Get migration status
20
+ */
21
+ getStatus(): Promise<MigrationStatus[]>;
22
+ /**
23
+ * Get pending migrations
24
+ */
25
+ getPending(): Promise<Migration[]>;
26
+ /**
27
+ * Reset all migrations (DANGER: drops all data)
28
+ */
29
+ reset(): Promise<void>;
30
+ }
31
+ //# sourceMappingURL=MigrationManager.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"MigrationManager.d.ts","sourceRoot":"","sources":["../../src/interfaces/MigrationManager.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,SAAS,EAAE,MAAM,YAAY,CAAC;AAExD;;GAEG;AACH,MAAM,WAAW,gBAAgB;IAC7B;;OAEG;IACH,OAAO,IAAI,OAAO,CAAC,IAAI,CAAC,CAAC;IAEzB;;OAEG;IACH,QAAQ,IAAI,OAAO,CAAC,IAAI,CAAC,CAAC;IAE1B;;OAEG;IACH,UAAU,CAAC,WAAW,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC,CAAC;IAE/C;;OAEG;IACH,SAAS,IAAI,OAAO,CAAC,eAAe,EAAE,CAAC,CAAC;IAExC;;OAEG;IACH,UAAU,IAAI,OAAO,CAAC,SAAS,EAAE,CAAC,CAAC;IAEnC;;OAEG;IACH,KAAK,IAAI,OAAO,CAAC,IAAI,CAAC,CAAC;CAC1B"}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=MigrationManager.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"MigrationManager.js","sourceRoot":"","sources":["../../src/interfaces/MigrationManager.ts"],"names":[],"mappings":""}
@@ -0,0 +1,10 @@
1
+ /**
2
+ * Migration record (applied migration)
3
+ */
4
+ export interface MigrationStatus {
5
+ id: string;
6
+ description: string;
7
+ applied_at: Date;
8
+ checksum: string;
9
+ }
10
+ //# sourceMappingURL=MigrationStatus.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"MigrationStatus.d.ts","sourceRoot":"","sources":["../../src/interfaces/MigrationStatus.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,MAAM,WAAW,eAAe;IAC5B,EAAE,EAAE,MAAM,CAAC;IACX,WAAW,EAAE,MAAM,CAAC;IACpB,UAAU,EAAE,IAAI,CAAC;IACjB,QAAQ,EAAE,MAAM,CAAC;CACpB"}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=MigrationStatus.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"MigrationStatus.js","sourceRoot":"","sources":["../../src/interfaces/MigrationStatus.ts"],"names":[],"mappings":""}
@@ -0,0 +1,14 @@
1
+ /**
2
+ * Standard query result structure
3
+ */
4
+ export interface QueryResult<T = any> {
5
+ rows: T[];
6
+ rowCount: number | null;
7
+ fields?: Array<{
8
+ name: string;
9
+ dataTypeID?: number;
10
+ dataTypeSize?: number;
11
+ dataTypeModifier?: number;
12
+ }>;
13
+ }
14
+ //# sourceMappingURL=QueryResult.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"QueryResult.d.ts","sourceRoot":"","sources":["../../src/interfaces/QueryResult.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,MAAM,WAAW,WAAW,CAAC,CAAC,GAAG,GAAG;IAChC,IAAI,EAAE,CAAC,EAAE,CAAC;IACV,QAAQ,EAAE,MAAM,GAAG,IAAI,CAAC;IACxB,MAAM,CAAC,EAAE,KAAK,CAAC;QACX,IAAI,EAAE,MAAM,CAAC;QACb,UAAU,CAAC,EAAE,MAAM,CAAC;QACpB,YAAY,CAAC,EAAE,MAAM,CAAC;QACtB,gBAAgB,CAAC,EAAE,MAAM,CAAC;KAC7B,CAAC,CAAC;CACN"}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=QueryResult.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"QueryResult.js","sourceRoot":"","sources":["../../src/interfaces/QueryResult.ts"],"names":[],"mappings":""}
@@ -0,0 +1,11 @@
1
+ export interface SqlAdapter {
2
+ adaptSql(sql: string): string;
3
+ createInsertSql(tableName: string, columns: string[]): string;
4
+ createUpdateSql(tableName: string, columns: string[]): string;
5
+ createDeleteSql(tableName: string): string;
6
+ getDatabaseType(): 'postgresql' | 'mysql';
7
+ supportsReturning(): boolean;
8
+ getNowFunction(): string;
9
+ getLimitClause(limit: number, offset?: number): string;
10
+ }
11
+ //# sourceMappingURL=SqlAdapter.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"SqlAdapter.d.ts","sourceRoot":"","sources":["../../src/interfaces/SqlAdapter.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,UAAU;IACvB,QAAQ,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,CAAC;IAC9B,eAAe,CAAC,SAAS,EAAE,MAAM,EAAE,OAAO,EAAE,MAAM,EAAE,GAAG,MAAM,CAAC;IAC9D,eAAe,CAAC,SAAS,EAAE,MAAM,EAAE,OAAO,EAAE,MAAM,EAAE,GAAG,MAAM,CAAC;IAC9D,eAAe,CAAC,SAAS,EAAE,MAAM,GAAG,MAAM,CAAC;IAC3C,eAAe,IAAI,YAAY,GAAG,OAAO,CAAC;IAC1C,iBAAiB,IAAI,OAAO,CAAC;IAC7B,cAAc,IAAI,MAAM,CAAC;IACzB,cAAc,CAAC,KAAK,EAAE,MAAM,EAAE,MAAM,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;CAC1D"}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=SqlAdapter.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"SqlAdapter.js","sourceRoot":"","sources":["../../src/interfaces/SqlAdapter.ts"],"names":[],"mappings":""}
@@ -0,0 +1,14 @@
1
+ import { BaseSqlAdapter } from "../adapters/BaseSqlAdapter.js";
2
+ import { ConfigValidator } from "./ConfigValidator.js";
3
+ import { DatabaseClient } from "./DatabaseClient.js";
4
+ import { DatabaseConfig } from "./DatabaseConfig.js";
5
+ import { DatabaseFactory } from "./DatabaseFactory.js";
6
+ import { DatabaseTransaction } from "./DatabaseTransaction.js";
7
+ import { HealthCheckResult } from "./HealthCheckResult.js";
8
+ import { Migration } from "./Migration.js";
9
+ import { MigrationManager } from "./MigrationManager.js";
10
+ import { MigrationStatus } from "./MigrationStatus.js";
11
+ import { QueryResult } from "./QueryResult.js";
12
+ import { SqlAdapter } from "./SqlAdapter.js";
13
+ export { type ConfigValidator, type DatabaseClient, type DatabaseConfig, type DatabaseFactory, type DatabaseTransaction, type HealthCheckResult, type Migration, type MigrationManager, type MigrationStatus, type QueryResult, BaseSqlAdapter, type SqlAdapter };
14
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/interfaces/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,+BAA+B,CAAC;AAC/D,OAAO,EAAE,eAAe,EAAE,MAAM,sBAAsB,CAAC;AACvD,OAAO,EAAE,cAAc,EAAE,MAAM,qBAAqB,CAAC;AACrD,OAAO,EAAE,cAAc,EAAE,MAAM,qBAAqB,CAAC;AACrD,OAAO,EAAE,eAAe,EAAE,MAAM,sBAAsB,CAAC;AACvD,OAAO,EAAE,mBAAmB,EAAE,MAAM,0BAA0B,CAAC;AAC/D,OAAO,EAAE,iBAAiB,EAAE,MAAM,wBAAwB,CAAC;AAC3D,OAAO,EAAE,SAAS,EAAE,MAAM,gBAAgB,CAAC;AAC3C,OAAO,EAAE,gBAAgB,EAAE,MAAM,uBAAuB,CAAC;AACzD,OAAO,EAAE,eAAe,EAAE,MAAM,sBAAsB,CAAC;AACvD,OAAO,EAAE,WAAW,EAAE,MAAM,kBAAkB,CAAC;AAC/C,OAAO,EAAE,UAAU,EAAE,MAAM,iBAAiB,CAAC;AAE7C,OAAO,EACL,KAAK,eAAe,EACpB,KAAK,cAAc,EACnB,KAAK,cAAc,EACnB,KAAK,eAAe,EACpB,KAAK,mBAAmB,EACxB,KAAK,iBAAiB,EACtB,KAAK,SAAS,EACd,KAAK,gBAAgB,EACrB,KAAK,eAAe,EACpB,KAAK,WAAW,EAChB,cAAc,EACd,KAAK,UAAU,EAChB,CAAC"}
@@ -0,0 +1,3 @@
1
+ import { BaseSqlAdapter } from "../adapters/BaseSqlAdapter.js";
2
+ export { BaseSqlAdapter };
3
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/interfaces/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,+BAA+B,CAAC;AAa/D,OAAO,EAWL,cAAc,EAEf,CAAC"}
package/package.json ADDED
@@ -0,0 +1,56 @@
1
+ {
2
+ "name": "@groundbrick/db-core",
3
+ "version": "0.0.1",
4
+ "description": "Core database interfaces and types for the TypeScript microframework",
5
+ "type": "module",
6
+ "main": "./dist/index.js",
7
+ "types": "./dist/index.d.ts",
8
+ "exports": {
9
+ ".": {
10
+ "import": "./dist/index.js",
11
+ "require": "./dist/index.js",
12
+ "types": "./dist/index.d.ts"
13
+ }
14
+ },
15
+ "files": [
16
+ "dist/**/*",
17
+ "README.md",
18
+ "LICENSE"
19
+ ],
20
+ "scripts": {
21
+ "build": "tsc",
22
+ "dev": "tsc --watch",
23
+ "clean": "rm -rf dist *.tsbuildinfo",
24
+ "lint": "eslint src/**/*.ts",
25
+ "lint:fix": "eslint src/**/*.ts --fix"
26
+ },
27
+ "keywords": [
28
+ "typescript",
29
+ "database",
30
+ "interfaces",
31
+ "microframework",
32
+ "postgresql",
33
+ "mysql",
34
+ "migrations"
35
+ ],
36
+ "author": "Cleiton Marques <cleiton.marques@200.systems>",
37
+ "license": "MIT",
38
+ "repository": {
39
+ "type": "git",
40
+ "url": "git+https://github.com/200Systems/bitbrick-microframework.git",
41
+ "directory": "packages/db-core"
42
+ },
43
+ "dependencies": {
44
+ "@groundbrick/logger": "workspace:*"
45
+ },
46
+ "devDependencies": {
47
+ "@types/node": "^20.10.0",
48
+ "typescript": "^5.8.3"
49
+ },
50
+ "engines": {
51
+ "node": ">=18.0.0"
52
+ },
53
+ "publishConfig": {
54
+ "access": "public"
55
+ }
56
+ }