Skip to content

Instance Method

output(from:)

For each property declared on the type, if that property’s key is available in the given database output object, attempt to load the corresponding value into the property. This transfers data received from the database into memory.
func output(from output: any DatabaseOutput) throws

Discussion

Note

It is trivial to construct DatabaseOutput objects which do not in fact actually represent data from a database. FluentKit itself does this to help keep models up to date (see Model).

Default Implementations

Fields Implementations

  • output(from:)
    For each property declared on the type, if that property’s key is available in the given database output object, attempt to load the corresponding value into the property. This transfers data received from the database into memory.