@xeno-js/core 0.1.7 → 0.1.8
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/dist/index.cjs +34 -0
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +39 -1
- package/dist/index.d.ts +39 -1
- package/dist/index.js +34 -0
- package/dist/index.js.map +1 -1
- package/package.json +160 -160
package/dist/index.cjs
CHANGED
|
@@ -4485,7 +4485,9 @@ __export(index_exports, {
|
|
|
4485
4485
|
BaseAuthorizationStrategy: () => BaseAuthorizationStrategy,
|
|
4486
4486
|
BaseController: () => BaseController,
|
|
4487
4487
|
BaseHandler: () => BaseHandler,
|
|
4488
|
+
BasePostgresSqlDataSource: () => BasePostgresSqlDataSource,
|
|
4488
4489
|
BaseQuery: () => import_shared80.Query,
|
|
4490
|
+
BaseSqliteSqlDataSource: () => BaseSqliteSqlDataSource,
|
|
4489
4491
|
ContainerUtils: () => ContainerUtils,
|
|
4490
4492
|
ReadDao: () => ReadDao,
|
|
4491
4493
|
Repository: () => Repository,
|
|
@@ -5258,6 +5260,36 @@ init_cache();
|
|
|
5258
5260
|
// src/infrastructure/context/index.ts
|
|
5259
5261
|
init_request_context();
|
|
5260
5262
|
|
|
5263
|
+
// src/infrastructure/datasources/base-postgressql.datasource.ts
|
|
5264
|
+
var BasePostgresSqlDataSource = class {
|
|
5265
|
+
constructor(_db) {
|
|
5266
|
+
this._db = _db;
|
|
5267
|
+
}
|
|
5268
|
+
_db;
|
|
5269
|
+
/**
|
|
5270
|
+
* @description Returns the database connection.
|
|
5271
|
+
* @returns {NodePgDatabase<TSchema>} The database connection.
|
|
5272
|
+
*/
|
|
5273
|
+
get db() {
|
|
5274
|
+
return this._db;
|
|
5275
|
+
}
|
|
5276
|
+
};
|
|
5277
|
+
|
|
5278
|
+
// src/infrastructure/datasources/base-sqllite.datasource.ts
|
|
5279
|
+
var BaseSqliteSqlDataSource = class {
|
|
5280
|
+
constructor(_db) {
|
|
5281
|
+
this._db = _db;
|
|
5282
|
+
}
|
|
5283
|
+
_db;
|
|
5284
|
+
/**
|
|
5285
|
+
* @description Returns the SQLite database connection.
|
|
5286
|
+
* @returns {LibSQLDatabase<TSchema>} The database connection.
|
|
5287
|
+
*/
|
|
5288
|
+
get db() {
|
|
5289
|
+
return this._db;
|
|
5290
|
+
}
|
|
5291
|
+
};
|
|
5292
|
+
|
|
5261
5293
|
// src/infrastructure/datasources/remote.datasource.ts
|
|
5262
5294
|
var import_shared75 = require("@xeno-js/shared");
|
|
5263
5295
|
|
|
@@ -5399,7 +5431,9 @@ var import_shared80 = require("@xeno-js/shared");
|
|
|
5399
5431
|
BaseAuthorizationStrategy,
|
|
5400
5432
|
BaseController,
|
|
5401
5433
|
BaseHandler,
|
|
5434
|
+
BasePostgresSqlDataSource,
|
|
5402
5435
|
BaseQuery,
|
|
5436
|
+
BaseSqliteSqlDataSource,
|
|
5403
5437
|
ContainerUtils,
|
|
5404
5438
|
ReadDao,
|
|
5405
5439
|
Repository,
|