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

Table names compatibility #1051

Open
Forceres opened this issue Jul 13, 2024 · 2 comments
Open

Table names compatibility #1051

Forceres opened this issue Jul 13, 2024 · 2 comments

Comments

@Forceres
Copy link

Is table with name like "students-teaches" compatible with this ORM?
Have such tables and got some errors with joins via join_on

@dantownsend
Copy link
Member

Names with - in them might cause issues. Unless they're wrapped in quotes i.e. "students-teaches" Postgres will complain. Underscores are preferred.

@Forceres
Copy link
Author

Names with - in them might cause issues. Unless they're wrapped in quotes i.e. "students-teaches" Postgres will complain. Underscores are preferred.

It shouidn't be a problem. ORM must solve this itself (e.g. NodeJS Typeorm).

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

No branches or pull requests

2 participants