mirror of
https://github.com/vlang/v.git
synced 2025-09-13 22:42:26 +03:00
docs: update null convention in ORM example, since @[nonull]
is no longer needed (#20286)
This commit is contained in:
parent
3345a17f6b
commit
02c0f3f1d4
1 changed files with 3 additions and 3 deletions
|
@ -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')!
|
||||||
|
@ -7153,4 +7153,4 @@ Assignment Operators
|
||||||
+= -= *= /= %=
|
+= -= *= /= %=
|
||||||
&= |= ^=
|
&= |= ^=
|
||||||
>>= <<= >>>=
|
>>= <<= >>>=
|
||||||
```
|
```
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue