mirror of
https://github.com/nim-lang/Nim.git
synced 2025-12-30 01:44:37 +00:00
Fix header inconsistencies in documentation (#11071)
This commit is contained in:
@@ -20,7 +20,7 @@
|
||||
## `db_mysql <db_mysql.html>`_.
|
||||
##
|
||||
## Parameter substitution
|
||||
## ----------------------
|
||||
## ======================
|
||||
##
|
||||
## All ``db_*`` modules support the same form of parameter substitution.
|
||||
## That is, using the ``?`` (question mark) to signify the place where a
|
||||
@@ -31,10 +31,10 @@
|
||||
##
|
||||
##
|
||||
## Examples
|
||||
## --------
|
||||
## ========
|
||||
##
|
||||
## Opening a connection to a database
|
||||
## ==================================
|
||||
## ----------------------------------
|
||||
##
|
||||
## .. code-block:: Nim
|
||||
## import db_odbc
|
||||
@@ -42,7 +42,7 @@
|
||||
## db.close()
|
||||
##
|
||||
## Creating a table
|
||||
## ================
|
||||
## ----------------
|
||||
##
|
||||
## .. code-block:: Nim
|
||||
## db.exec(sql"DROP TABLE IF EXISTS myTable")
|
||||
@@ -51,14 +51,14 @@
|
||||
## name varchar(50) not null)"""))
|
||||
##
|
||||
## Inserting data
|
||||
## ==============
|
||||
## --------------
|
||||
##
|
||||
## .. code-block:: Nim
|
||||
## db.exec(sql"INSERT INTO myTable (id, name) VALUES (0, ?)",
|
||||
## "Andreas")
|
||||
##
|
||||
## Large example
|
||||
## =============
|
||||
## -------------
|
||||
##
|
||||
## .. code-block:: Nim
|
||||
##
|
||||
|
||||
Reference in New Issue
Block a user