-
Notifications
You must be signed in to change notification settings - Fork 16
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
Generated(computed) Columns #93
Comments
A few notes on implementation:
|
Formatting/printing SQL has always been the easy part to tink_sql changes :) |
Maybe my description was confusing, I meant this:
So what I mean is simply: computed values should be supported as readonly. |
I can see why this would be useful. OTOH I wonder if it's not easier and more portable to have the computation in application code rather than the database? |
Computed columns can be used for (speeding up) aggregation. So no, I don't think they are equivalent. |
MySQL/Postgres: (Postgres does not support VIRTUAL)
column_name data_type [GENERATED ALWAYS] AS (expression) [VIRTUAL | STORED] [UNIQUE [KEY]]
SQL server:
column_name AS expression [PERSISTED]
Proposed Haxe syntax:
The text was updated successfully, but these errors were encountered: