10000 feat: bring-your-own-pg-client™ (browser support) by gregnr · Pull Request #782 · supabase/postgres-meta · GitHub
[go: up one dir, main page]

Skip to content

feat: bring-your-own-pg-client™ (browser support) #782

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 3 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
fix: unused parsers/deparser in base
  • Loading branch information
gregnr committed Jun 17, 2024
commit de87b0d1504b439571cc7854e1c4a31d40e3afab
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'

8000 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
Loading
0