Tonne of debugging - getting ready for the production builds
This commit is contained in:
8
api/dist/modules/media/db/index.d.ts
vendored
Normal file
8
api/dist/modules/media/db/index.d.ts
vendored
Normal file
@@ -0,0 +1,8 @@
|
||||
import pg from 'pg';
|
||||
import * as schema from './schema';
|
||||
export declare const db: import("drizzle-orm/node-postgres").NodePgDatabase<typeof schema> & {
|
||||
$client: pg.Pool;
|
||||
};
|
||||
export { schema };
|
||||
export declare function closeDrizzleConnection(): Promise<void>;
|
||||
//# sourceMappingURL=index.d.ts.map
|
||||
1
api/dist/modules/media/db/index.d.ts.map
vendored
Normal file
1
api/dist/modules/media/db/index.d.ts.map
vendored
Normal file
@@ -0,0 +1 @@
|
||||
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/modules/media/db/index.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,MAAM,IAAI,CAAC;AAEpB,OAAO,KAAK,MAAM,MAAM,UAAU,CAAC;AAUnC,eAAO,MAAM,EAAE;;CAA4B,CAAC;AAG5C,OAAO,EAAE,MAAM,EAAE,CAAC;AAGlB,wBAAsB,sBAAsB,kBAE3C"}
|
||||
57
api/dist/modules/media/db/index.js
vendored
Normal file
57
api/dist/modules/media/db/index.js
vendored
Normal file
@@ -0,0 +1,57 @@
|
||||
"use strict";
|
||||
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
||||
if (k2 === undefined) k2 = k;
|
||||
var desc = Object.getOwnPropertyDescriptor(m, k);
|
||||
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
||||
desc = { enumerable: true, get: function() { return m[k]; } };
|
||||
}
|
||||
Object.defineProperty(o, k2, desc);
|
||||
}) : (function(o, m, k, k2) {
|
||||
if (k2 === undefined) k2 = k;
|
||||
o[k2] = m[k];
|
||||
}));
|
||||
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
||||
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
||||
}) : function(o, v) {
|
||||
o["default"] = v;
|
||||
});
|
||||
var __importStar = (this && this.__importStar) || (function () {
|
||||
var ownKeys = function(o) {
|
||||
ownKeys = Object.getOwnPropertyNames || function (o) {
|
||||
var ar = [];
|
||||
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
||||
return ar;
|
||||
};
|
||||
return ownKeys(o);
|
||||
};
|
||||
return function (mod) {
|
||||
if (mod && mod.__esModule) return mod;
|
||||
var result = {};
|
||||
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
||||
__setModuleDefault(result, mod);
|
||||
return result;
|
||||
};
|
||||
})();
|
||||
var __importDefault = (this && this.__importDefault) || function (mod) {
|
||||
return (mod && mod.__esModule) ? mod : { "default": mod };
|
||||
};
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
exports.schema = exports.db = void 0;
|
||||
exports.closeDrizzleConnection = closeDrizzleConnection;
|
||||
const node_postgres_1 = require("drizzle-orm/node-postgres");
|
||||
const pg_1 = __importDefault(require("pg"));
|
||||
const env_1 = require("../../../config/env");
|
||||
const schema = __importStar(require("./schema"));
|
||||
exports.schema = schema;
|
||||
const { Pool } = pg_1.default;
|
||||
// Create PostgreSQL connection pool for Drizzle
|
||||
const pool = new Pool({
|
||||
connectionString: env_1.env.DATABASE_URL,
|
||||
});
|
||||
// Drizzle database instance with schema
|
||||
exports.db = (0, node_postgres_1.drizzle)(pool, { schema });
|
||||
// Graceful shutdown
|
||||
async function closeDrizzleConnection() {
|
||||
await pool.end();
|
||||
}
|
||||
//# sourceMappingURL=index.js.map
|
||||
1
api/dist/modules/media/db/index.js.map
vendored
Normal file
1
api/dist/modules/media/db/index.js.map
vendored
Normal file
@@ -0,0 +1 @@
|
||||
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/modules/media/db/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAmBA,wDAEC;AArBD,6DAAoD;AACpD,4CAAoB;AACpB,6CAA0C;AAC1C,iDAAmC;AAa1B,wBAAM;AAXf,MAAM,EAAE,IAAI,EAAE,GAAG,YAAE,CAAC;AAEpB,gDAAgD;AAChD,MAAM,IAAI,GAAG,IAAI,IAAI,CAAC;IACpB,gBAAgB,EAAE,SAAG,CAAC,YAAY;CACnC,CAAC,CAAC;AAEH,wCAAwC;AAC3B,QAAA,EAAE,GAAG,IAAA,uBAAO,EAAC,IAAI,EAAE,EAAE,MAAM,EAAE,CAAC,CAAC;AAK5C,oBAAoB;AACb,KAAK,UAAU,sBAAsB;IAC1C,MAAM,IAAI,CAAC,GAAG,EAAE,CAAC;AACnB,CAAC"}
|
||||
16458
api/dist/modules/media/db/schema.d.ts
vendored
Normal file
16458
api/dist/modules/media/db/schema.d.ts
vendored
Normal file
File diff suppressed because it is too large
Load Diff
1
api/dist/modules/media/db/schema.d.ts.map
vendored
Normal file
1
api/dist/modules/media/db/schema.d.ts.map
vendored
Normal file
File diff suppressed because one or more lines are too long
1734
api/dist/modules/media/db/schema.js
vendored
Normal file
1734
api/dist/modules/media/db/schema.js
vendored
Normal file
File diff suppressed because it is too large
Load Diff
1
api/dist/modules/media/db/schema.js.map
vendored
Normal file
1
api/dist/modules/media/db/schema.js.map
vendored
Normal file
File diff suppressed because one or more lines are too long
Reference in New Issue
Block a user