Skip to content

Commit

Permalink
docs: update null convention in ORM example, since @[nonull] is no …
Browse files Browse the repository at this point in the history
…longer needed (#20286)
  • Loading branch information
juan-db committed Dec 28, 2023
1 parent 3345a17 commit 02c0f3f
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions doc/docs.md
Original file line number Diff line number Diff line change
Expand Up @@ -4978,9 +4978,9 @@ import db.sqlite
@[table: 'customers']
struct Customer {
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
country string @[nonull]
country string
}
db := sqlite.connect('customers.db')!
Expand Down Expand Up @@ -7153,4 +7153,4 @@ Assignment Operators
+= -= *= /= %=
&= |= ^=
>>= <<= >>>=
```
```

0 comments on commit 02c0f3f

Please sign in to comment.