Skip to content

Commit

Permalink
fix: unused parsers/deparser in base
Browse files Browse the repository at this point in the history
  • Loading branch information
gregnr committed Jun 17, 2024
1 parent b4a66ed commit de87b0d
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
5 changes: 5 additions & 0 deletions src/lib/PostgresMeta.ts
Original file line number Diff line number Diff line change
@@ -1,8 +1,13 @@
import { PoolConfig } from 'pg'
import * as Parser from './Parser.js'
import PostgresMetaBase from './PostgresMetaBase.js'
import { init } from './db.js'

export default class PostgresMeta extends PostgresMetaBase {
parse = Parser.Parse
deparse = Parser.Deparse
format = Parser.Format

constructor(config: PoolConfig) {
const { query, end } = init(config)
super({ query, end })
Expand Down
5 changes: 0 additions & 5 deletions src/lib/PostgresMetaBase.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
import * as Parser from './Parser.js'
import PostgresMetaColumnPrivileges from './PostgresMetaColumnPrivileges.js'
import PostgresMetaColumns from './PostgresMetaColumns.js'
import PostgresMetaConfig from './PostgresMetaConfig.js'
Expand Down Expand Up @@ -49,10 +48,6 @@ export default class PostgresMetaBase {
version: PostgresMetaVersion
views: PostgresMetaViews

parse = Parser.Parse
deparse = Parser.Deparse
format = Parser.Format

constructor(options: PostgresMetaBaseOptions) {
this.query = options.query
this.end = options.end
Expand Down

0 comments on commit de87b0d

Please sign in to comment.