docs: update null convention in ORM example, since @[nonull] is no longer needed (#20286)

This commit is contained in:
Juan de Bruin 2023-12-28 15:36:27 +02:00 committed by GitHub
parent 3345a17f6b
commit 02c0f3f1d4
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -4978,9 +4978,9 @@ import db.sqlite
@[table: 'customers'] @[table: 'customers']
struct Customer { struct Customer {
id int @[primary; sql: serial] // a field named `id` of integer type must be the first field id int @[primary; sql: serial] // a field named `id` of integer type must be the first field
name string @[nonull] name string
nr_orders int nr_orders int
country string @[nonull] country string
} }
db := sqlite.connect('customers.db')! db := sqlite.connect('customers.db')!