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鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

Generated Columns Support #4

Closed
zakaria-chahboun opened this issue Jan 13, 2023 · 5 comments
Closed

Generated Columns Support #4

zakaria-chahboun opened this issue Jan 13, 2023 · 5 comments

Comments

@zakaria-chahboun
Copy link

Hi, Thanks for this amazing project 馃尫

if you can support generated always as statement in json tags 馃槉

@kamalshkeir
Copy link
Owner

Thank you @zakaria-chahboun, happy you like it, yeah nice idea, I didn't know this one :)

@zakaria-chahboun
Copy link
Author

@kamalshkeir

Thanks 馃
Just be aware if you use cache (or something like temporary tables), Don't fill the generated columns with the data
This issue is already happens with Gorm. I fixed it by this pull

@kamalshkeir
Copy link
Owner

the eventbus cache may not be a problem, because it will empty all the cache whenever you create , update , delete or drop any table and save only when query All or One is executed. Does it make sense ?

@kamalshkeir
Copy link
Owner

should be working fine, https://github.com/kamalshkeir/korm#it-has- , i have added tag generated and also support for all dialects for concat and length

@zakaria-chahboun
Copy link
Author

@kamalshkeir Wow that's fast! Thanks man!

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