mirror of
https://github.com/bigcapitalhq/bigcapital.git
synced 2026-02-17 05:10:31 +00:00
add server to monorepo.
This commit is contained in:
10
packages/server/src/loaders/database.ts
Normal file
10
packages/server/src/loaders/database.ts
Normal file
@@ -0,0 +1,10 @@
|
||||
import Knex from 'knex';
|
||||
import { knexSnakeCaseMappers } from 'objection';
|
||||
import { systemKnexConfig } from '@/config/knexConfig';
|
||||
|
||||
export default () => {
|
||||
return Knex({
|
||||
...systemKnexConfig,
|
||||
...knexSnakeCaseMappers({ upperCase: true }),
|
||||
});
|
||||
};
|
||||
Reference in New Issue
Block a user