Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
import 'reflect-metadata';
import * as cormo from 'cormo';
cormo.BaseModel.lean_query = true;
import { connection_user } from './connection_user';
export { connection_user };
export * from './User';
export async function checkSchemas() {
if (await connection_user.isApplyingSchemasNecessary()) {
throw new Error(`need to migrate: run 'npm run migrate'`);
}
}
export async function applySchemas(verbose = false) {
await connection_user.applySchemas({ verbose });
}