From 07fc86604c7deb003a0c9c61112ff7d5370572fc Mon Sep 17 00:00:00 2001 From: Juan de Bruin Date: Thu, 28 Dec 2023 05:29:54 +0200 Subject: [PATCH] Update null convention in ORM example The @[nonull] attribute is no longer used and is replaced by using an option type. https://github.com/vlang/v/pull/19379 --- doc/docs.md | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/doc/docs.md b/doc/docs.md index 4e9786cc62688c..bc1b9db6bd5254 100644 --- a/doc/docs.md +++ b/doc/docs.md @@ -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] - nr_orders int - country string @[nonull] + name string + nr_orders ?int + country string } db := sqlite.connect('customers.db')! @@ -7153,4 +7153,4 @@ Assignment Operators += -= *= /= %= &= |= ^= >>= <<= >>>= -``` \ No newline at end of file +```