routier-collection / plugins/sql-core/src / sqlColumnProperties
Function: sqlColumnProperties()
sqlColumnProperties<
T>(schema):PropertyInfo<T>[]
Defined in: plugins/sql-core/src/columns.ts:39
Root properties only — nested children are reached through their parent's value.
Exported because the whole table layout depends on it. schema.properties is flat: it lists nested, nested.inner, and nested.inner.value side by side, and getResolvedName() returns the LEAF name (from ?? name). So building columns from every property gives a table with bogus inner and value columns that collide the moment two nested objects share a child name — and no way to bind a value to them, because the entity has no top-level value key.
A nested subtree is one JSON column, named for its root. That is the only layout that round-trips.
Type Parameters
T
T extends object
Parameters
schema
CompiledSchema<T>
Returns
PropertyInfo<T>[]