Table of Contents
Check: SqliteConnect
To get this help: amcli --explain=SqliteConnect.
To add a section in your ini:
- Execute:
amcli --nocolor --explain=SqliteConnect >> example.ini. - edit the
example.iniin a text editor and update the needed values.
Syntax of an ini section
; -----------------------------------------------------------------------------
;
; Plugin SqliteConnect
; Verify a database connection with PDO connect
;
[<Your check name>]
description="A short description what will be tested"
function="SqliteConnect"
; key 'db' {string} 🔸(required)
; full path of the sqlite database file
; example: mysql:host=$aDb[server];port=3306;dbname=$aDb[database]
; default: (not provided)
params[db]=<Your value here>
; key 'user' {string} 🔹(optional)
; Database user to connect with
; example: dbuser
; default: (not provided)
params[user]=<Your value here>
; key 'password' {string} 🔹(optional)
; Password of the database user to authenticate
; example: mySecretDatabasePassword
; default: (not provided)
params[password]=<Your value here>
; key 'timeout' {float} 🔹(optional)
; Timeout in sec
; example: 3
; default: 5
params[timeout]=<Your value here>