doc: add a link to ORM examples

pull/5451/head
Alexander Medvednikov 2020-06-21 16:12:16 +02:00 committed by GitHub
parent 9d7afa4e30
commit 81d17a63e3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 1 deletions

View File

@ -1452,7 +1452,7 @@ fn read_log() {
(this is still in an alpha state)
V has a built-in ORM (object-relational mapping) which supports Postgres, and will soon support MySQL and SQLite.
V has a built-in ORM (object-relational mapping) which supports SQLite, and will soon support MySQL, Postgres, MS SQL, and Oracle.
V's ORM provides a number of benefits:
@ -1493,6 +1493,8 @@ new_customer := Customer{name: 'Bob', nr_orders: 10}
sql db { insert new_customer into Customer }
```
For more examples, see <a href='https://github.com/vlang/v/blob/master/vlib/orm/orm_test.v'>vlib/orm/orm_test.v</a>.
## vfmt
You don't need to worry about formatting your code or setting style guidelines.