Change stdlib imports to use std prefix in most examples (#17202)
This commit is contained in:
parent
26a6ceb34e
commit
56461c280f
45 changed files with 127 additions and 127 deletions
|
|
@ -47,7 +47,7 @@
|
|||
## To use Unix sockets with `db_postgres`, change the server address to the socket file path:
|
||||
##
|
||||
## .. code-block:: Nim
|
||||
## import db_postgres ## Change "localhost" or "127.0.0.1" to the socket file path
|
||||
## import std/db_postgres ## Change "localhost" or "127.0.0.1" to the socket file path
|
||||
## let db = db_postgres.open("/run/postgresql", "user", "password", "database")
|
||||
## echo db.getAllRows(sql"SELECT version();")
|
||||
## db.close()
|
||||
|
|
@ -64,7 +64,7 @@
|
|||
## ----------------------------------
|
||||
##
|
||||
## .. code-block:: Nim
|
||||
## import db_postgres
|
||||
## import std/db_postgres
|
||||
## let db = open("localhost", "user", "password", "dbname")
|
||||
## db.close()
|
||||
##
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue