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

Gel sqla #536

Open
wants to merge 4 commits into
base: master
Choose a base branch
from
Open

Gel sqla #536

wants to merge 4 commits into from

Conversation

vpetrovykh
Copy link
Member

@vpetrovykh vpetrovykh commented Nov 14, 2024

More tests coming...

@vpetrovykh vpetrovykh self-assigned this Nov 14, 2024
@vpetrovykh vpetrovykh force-pushed the gel-sqla branch 2 times, most recently from 0885a10 to fd5217c Compare November 21, 2024 12:20
@msullivan
Copy link
Member

Could you post some generated code?

edgedb/_testbase.py Outdated Show resolved Hide resolved
@vpetrovykh vpetrovykh force-pushed the gel-sqla branch 2 times, most recently from 8b2092e to 8c0f82e Compare November 27, 2024 18:37
Create separate intermediate objects to represent links with link
properties (because ORMs tend to view them as such).
Don't allow crazy names (not usual type of identifiers).

Multi properties behave more like plain multi links than anything else
(because they have a separate table with the property value in it),
so they should be reflected like that establishing a relationship.

Reflect Gel modules into Python modules.

Add tests that setup a Gel database and then generate the SQLAlchemy
models from it. The individual tests use a SQLAlchemy session to access
the database using postgres protocol.
Run `gel-orm --help` for more details.
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