10 lines
287 B
TypeScript
10 lines
287 B
TypeScript
import { createConnection } from "typeorm";
|
|
|
|
/**
|
|
* Loader for the database that creates the database connection and initializes the database tabels.
|
|
*/
|
|
export default async () => {
|
|
const connection = await createConnection();
|
|
connection.synchronize();
|
|
return connection;
|
|
}; |