Check if generated column is stored (persisted) or virtual.
When options.stored is explicitly set, that value is used as-is. When it is left unspecified, the default depends on the target dialect:
options.stored
STORED
VIRTUAL
true
false
The generated column options
The target SQL dialect (defaults to 'mysql' for backwards compatibility)
True if stored, false if virtual
Check if generated column is stored (persisted) or virtual.
When
options.storedis explicitly set, that value is used as-is. When it is left unspecified, the default depends on the target dialect:STOREDgenerated columns —VIRTUALis not a valid option, so it defaults totrue(stored).VIRTUALandSTORED, and default toVIRTUAL(the lighter-weight option), so this defaults tofalse.false(virtual/computed, not persisted), matching their typical defaults.