Insert¶
This is used to insert rows into the table.
>>> await Band.insert(Band(name="Pythonistas"))
[{'id': 3}]
We can insert multiple rows in one go:
await Band.insert(
Band(name="Darts"),
Band(name="Gophers")
)
add¶
You can also compose it as follows:
await Band.insert().add(
Band(name="Darts")
).add(
Band(name="Gophers")
)