Skip to content
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

feature: added config pg schema #9

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

Conversation

nksmnf
Copy link

@nksmnf nksmnf commented Jul 8, 2024

feature: added config pg schema
chore: bump version to 2.0.0-beta.8

chore: bump version to 2.0.0-beta.8
@nksmnf
Copy link
Author

nksmnf commented Jul 8, 2024

@MKRhere Hi! I need to configure Postgres schema, please do review

Best regards,
Nikolay.

Comment on lines 40 to +41
const create = client.schema
.withSchema(schema)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Wouldn't this error when used with anything other than Postgres? Perhaps instead of defaulting to "public", we can call withSchema only if schema is explicitly passed. Then we don't need to worry about Pg/others.

Suggested change
const create = client.schema
.withSchema(schema)
const create = (schema ? client.withSchema(schema) : client.schema)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants