|
|
@ -1,4 +1,4 @@ |
|
|
|
import { InternalService } from "@autoplex/microservice"; |
|
|
|
import { InternalService, Microservice } from "@autoplex/microservice"; |
|
|
|
import { env, secret } from "@autoplex/utils"; |
|
|
|
import { createConnection, Connection } from "typeorm"; |
|
|
|
import * as entities from "./entities"; |
|
|
@ -6,7 +6,7 @@ import * as entities from "./entities"; |
|
|
|
/** |
|
|
|
* A convenience database service |
|
|
|
*/ |
|
|
|
export class Database extends InternalService |
|
|
|
export class DatabaseService<M extends Microservice = Microservice> extends InternalService<M> |
|
|
|
{ |
|
|
|
/** |
|
|
|
* The active database connection |
|
|
|