You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Consider a scenario where a JSON object, containing user's profile information, is inserted into a table.
The generated columns feature of SQL can be used to extract the user's age attribute from the JSON and place it in an external column instantly.
This improves query efficiency as we can directly access the age without having to search within the JSON each time.
Example2:
Consider a situation where a Users table contains a JSON array with a list of IDs from an associated table.
It would streamline the process immensely if, during data insertion into Users, the related table could also auto-populate with the IDs from the JSON array.
The text was updated successfully, but these errors were encountered:
Enhancement Request
Drizzle ORM currently lacks support for SQL generated columns.
Example1:
Example2:
The text was updated successfully, but these errors were encountered: