Skip to content

Commit 471baf0

Browse files
committed
db.pg: fix v check-md vlib/db/pg/README.md
1 parent d058404 commit 471baf0

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

vlib/db/pg/README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -97,8 +97,8 @@ Parameterized queries (exec_param, etc.) in V require the use of the following s
9797
The number following the $ specifies which parameter from the argument array to use.
9898

9999
```v ignore
100-
db.exec_param_many('INSERT INTO users (username, password) VALUES ($1, $2)', ['tom', 'securePassword']) or { panic(err) }
101-
db.exec_param('SELECT * FROM users WHERE username = ($1) limit 1', 'tom') or { panic(err) }
100+
db.exec_param_many('INSERT INTO users (username, password) VALUES ($1, $2)', ['tom', 'securePassword'])!
101+
db.exec_param('SELECT * FROM users WHERE username = ($1) limit 1', 'tom')!
102102
```
103103

104104
## Using LISTEN/NOTIFY
@@ -176,5 +176,5 @@ fn main() {
176176
- `unlisten_all()` - Unregister from all channels
177177
- `notify(channel string, payload string)` - Send a notification (payload can be empty)
178178
- `consume_input()` - Read pending data from server (call before get_notification)
179-
- `get_notification()` - Returns the next pending notification, or none if there are no notifications
179+
- `get_notification()` - Returns the next pending notification, or none for no notifications.
180180
- `socket()` - Returns the connection's socket file descriptor for use with select/poll

0 commit comments

Comments
 (0)