Database & model
The model gives create, read, update and delete for free.
.phlo
// type.note.phlo -> one file is the whole model
@ extends: model
static DB => %JSONDB(data.'note.json')
static columns = 'id,text'
// then, anywhere in the app:
type_note::create(text: 'hello world') // create
$rows = type_note::records(order: 'id DESC') // read
type_note::delete('id=?', $id) // delete
No rows yet. Add one above.