Skip to content

Commit 5d37470

Browse files
committed
fix: pg bigint
1 parent 86a74b3 commit 5d37470

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

source/knexfile.ts

+6
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,10 @@
11
/* eslint @typescript-eslint/explicit-module-boundary-types: 0 */
2+
try {
3+
const pg = require('pg');
4+
pg.types.setTypeParser(20, 'text', parseInt);
5+
} catch (err) {
6+
logger.info('There is no pg');
7+
}
28
import { config } from './config';
39
import { parse } from 'url';
410
import { Knex } from 'knex';

0 commit comments

Comments
 (0)