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

[ENHANCEMENT]: support enums #100

Open
Zer0xxxx opened this issue Jun 2, 2024 · 2 comments
Open

[ENHANCEMENT]: support enums #100

Zer0xxxx opened this issue Jun 2, 2024 · 2 comments

Comments

@Zer0xxxx
Copy link

Zer0xxxx commented Jun 2, 2024

Feature Description

Currently, enums are not supported in Orange ORM.
As we discussed, it could relatively "easily" be implemented.

Related to: #96 (#96 (comment))

@Zer0xxxx Zer0xxxx changed the title [ENHANCEMENT]: support enum [ENHANCEMENT]: support enums Jun 2, 2024
@Zer0xxxx
Copy link
Author

Zer0xxxx commented Jun 2, 2024

Btw, I think it should be typed also.
Just calling a validation function on it will help to keep the enum safe at runtime, but not at compile time. :/

Likewise:

const wolfgang = await db.team.insert({
  'lang': '...', // * ... No IntelliSense?
  // * ...
});

@lroal
Copy link
Member

lroal commented Jun 2, 2024

Yes, of course 😊

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

No branches or pull requests

2 participants