fix doco by removing extra ` chars, change a word and
line up multi-line text
This commit is contained in:
parent
02d882cfbe
commit
a82b9cbda3
1 changed files with 7 additions and 7 deletions
|
|
@ -8,21 +8,21 @@
|
||||||
#
|
#
|
||||||
|
|
||||||
## A higher level `PostgreSQL`:idx: database wrapper. This interface
|
## A higher level `PostgreSQL`:idx: database wrapper. This interface
|
||||||
## is implemented for other databases too.
|
## is implemented for other databases also.
|
||||||
##
|
##
|
||||||
## **Note**: There are two approaches to **parameter substitution** in this module
|
## **Note**: There are two approaches to **parameter substitution** in this module
|
||||||
## 1. ``SqlQuery`` using ``?,?,?,...`` (same as the other db_xxxx modules)
|
## 1. ``SqlQuery`` using ``?,?,?,...`` (same as the other db_xxxx modules)
|
||||||
##
|
##
|
||||||
## .. code-block:: Nim
|
## .. code-block:: Nim
|
||||||
## ``sql"INSERT INTO myTable (colA,colB,colC) VALUES (?,?,?)"``
|
## sql"INSERT INTO myTable (colA,colB,colC) VALUES (?,?,?)"
|
||||||
## 2. ``SqlPrepared`` using ``$1,$2,$3,...`` (the Postgres way, using numbered parameters)
|
## 2. ``SqlPrepared`` using ``$1,$2,$3,...`` (the Postgres way, using numbered parameters)
|
||||||
##
|
##
|
||||||
## .. code-block:: Nim
|
## .. code-block:: Nim
|
||||||
## ``prepare(theDb, "MyExampleInsert",
|
## prepare(theDb, "MyExampleInsert",
|
||||||
## sql"""INSERT INTO myTable
|
## sql"""INSERT INTO myTable
|
||||||
## (colA,colB,colC)
|
## (colA,colB,colC)
|
||||||
## VALUES ($1,$2,$3)""",
|
## VALUES ($1,$2,$3)""",
|
||||||
## 3)``
|
## 3)
|
||||||
##
|
##
|
||||||
## Example:
|
## Example:
|
||||||
##
|
##
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue