Skip to content

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