Module component

Source
Expand description

Components represent data backed by rows in the database

Given a table foos:

idtextflag
1testf
2examplef
4hellot

A request for SELECT * FROM foos would return:

[
 { id: 1, text: "test", flag: false }
 { id: 2, text: "example", flag: false }
 { id: 4, text: "hello", flag: true }
]

TODO: Explain ToRow and FromRow here.

Structs§

SqlxDummy
An empty Component for use without a backing table

Traits§

PrimaryKey
A way to identify components by themselves
SqlxComponent
Rows in the database represent a spesifc Component
ToRow
A record that can be upserted into the database