Description Usage Arguments Value Examples
Combine all the required elements to create a databse connection into
a single object. Options can be set interatively via qlog_loud
,
qlog_silent
, and dbwarn
.
Retrieve database credentials from a structured JSON and create a db_credentials object
Retrieve database credentials from a file. Uses cred_json to parse.
Retrieve database credentials from a system environment variable. Uses cred_json to parse.
Force queries to be logged or not, regardless of the other settings.
1 2 3 4 5 6 7 8 9 10 11 12 |
user |
database username |
password |
databse password |
host |
database server hostname |
dbname |
database name to connect to |
port |
databse server port number |
engine |
specify database engine to use |
.qlog |
force logging of queries to console |
.show_warn |
show warnings from running query, usually typecasting.
See |
json |
JSON credentials string. |
file |
filepath to JSON credentials file |
var_name |
system variable name |
.db |
credentials used for this query, if |
a db_credentials
object
1 2 3 4 5 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.