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

Support for builtin orm #90

Open
2 tasks
N0tExisting opened this issue May 24, 2022 · 5 comments · May be fixed by #198 or #102
Open
2 tasks

Support for builtin orm #90

N0tExisting opened this issue May 24, 2022 · 5 comments · May be fixed by #198 or #102
Labels
enhancement New feature or request
Milestone

Comments

@N0tExisting
Copy link

N0tExisting commented May 24, 2022

Currently all builtin databases support the orm, and it would be nice if this one does too.

Needed for support:

@elliotchance
Copy link
Owner

Would you like to implement it?

@elliotchance
Copy link
Owner

@N0tExisting turns out this is not possible right now because the drivers need to be hard coded into the V codebase.

@N0tExisting
Copy link
Author

turns out this is not possible right now because the drivers need to be hard coded into the V codebase.

Looking at the code, it seems like it is only used to prefix the name, so it could be refactored to allow any name.

P.S: I can't implement it because I'm studying for my final exams atm

@elliotchance
Copy link
Owner

There's no rush, here was my initial investigation: de83efa

@elliotchance elliotchance added the enhancement New feature or request label Jun 16, 2022
@elliotchance elliotchance added this to the v1.0.0 milestone Jun 16, 2022
elliotchance added a commit that referenced this issue Jun 20, 2022
DO NOT MERGE.

This is partial support for the ORM. However, there are some challenges
that need to be addressed before this can be properly reviewed and
landed:

1. The ORM in V requires drivers to be hard-coded. See #90.

2. The Connection doesn't _really_ implement orm.Connection because the
vsql Connection is required to be mut and the current interface
definition does not allow this.

3. We need to create a new test suite for the ORM. `vsql/orm_test.v`
filled with combinations of statements "sql" commands will work just
fine. Specifically, we need to test different combinations of
expressions and types.

Fixes #90
@elliotchance elliotchance linked a pull request Jun 20, 2022 that will close this issue
@elliotchance
Copy link
Owner

I have created a PR #102 but there are some other problems that need to be addressed before I can work on it further.

elliotchance added a commit that referenced this issue Dec 30, 2023
DO NOT MERGE.

This is partial support for the ORM. However, there are some challenges
that need to be addressed before this can be properly reviewed and
landed:

1. The ORM in V requires drivers to be hard-coded. See #90.

2. The Connection doesn't _really_ implement orm.Connection because the
vsql Connection is required to be mut and the current interface
definition does not allow this.

3. We need to create a new test suite for the ORM. `vsql/orm_test.v`
filled with combinations of statements "sql" commands will work just
fine. Specifically, we need to test different combinations of
expressions and types.

Fixes #90
elliotchance added a commit that referenced this issue Dec 30, 2023
DO NOT MERGE.

This is partial support for the ORM. However, there are some challenges
that need to be addressed before this can be properly reviewed and
landed:

1. The ORM in V requires drivers to be hard-coded. See #90.

2. The Connection doesn't _really_ implement orm.Connection because the
vsql Connection is required to be mut and the current interface
definition does not allow this.

3. We need to create a new test suite for the ORM. `vsql/orm_test.v`
filled with combinations of statements "sql" commands will work just
fine. Specifically, we need to test different combinations of
expressions and types.

Fixes #90
elliotchance added a commit that referenced this issue Dec 31, 2023
DO NOT MERGE.

This is partial support for the ORM. However, there are some challenges
that need to be addressed before this can be properly reviewed and
landed:

1. The ORM in V requires drivers to be hard-coded. See #90.

2. The Connection doesn't _really_ implement orm.Connection because the
vsql Connection is required to be mut and the current interface
definition does not allow this.

3. We need to create a new test suite for the ORM. `vsql/orm_test.v`
filled with combinations of statements "sql" commands will work just
fine. Specifically, we need to test different combinations of
expressions and types.

Fixes #90
@daniel-le97 daniel-le97 linked a pull request Nov 9, 2024 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants