site.ini [LibSQLSettings]
The block [LibSQLSettings] of settings/site.ini, with 9 setting(s).
libSQL (DatabaseImplementation=libsql, expLibSQLDB) and Turso (turso, expTursoDB): the site's database on a libSQL
server (sqld, the libsql-server container) or in Turso's cloud, reached over the server's HTTP API (Hrana) with PHP's
curl extension (or allow_url_fopen). The SQL is SQLite's: the kernel's SQLite schema and the SQLite driver are used,
databaseName() is "sqlite". [DatabaseSettings] Server and Port name the server (default port 8080 for libsql, 443
with HTTPS for turso), Password is the auth token. See the libSQL driver documentation.
Never edit settings/site.ini itself: an update replaces it. Put the settings you change in an override, which wins over the shipped file:
settings/override/site.ini.append.phpfor every siteaccess,settings/siteaccess/<siteaccess>/site.ini.append.phpfor one siteaccess,extension/<extension>/settings/site.ini.append.phpin an extension (read when the extension is active).
Mode
remote: a libSQL server over HTTP (Server/Port or URL); file: the embedded file mode, the database a local file in
var/storage/sqlite3 (Database is its name), opened by PHP's sqlite3 as an SQLite site's, no server. Turso: remote
Default: remote.
# settings/override/site.ini.append.php
[LibSQLSettings]
Mode=remote
*/ ?>CAFile
The CA file that checks the server's certificate over https; empty: the system's CAs
Default: empty.
# settings/override/site.ini.append.php
[LibSQLSettings]
CAFile=
*/ ?>URL
The server's URL, replacing Server and Port: http://host:8080, https://host or libsql://<db>-<org>.turso.io
Default: empty.
# settings/override/site.ini.append.php
[LibSQLSettings]
URL=
*/ ?>TLS
https: enabled, disabled, or auto (Turso, or port 443)
Default: auto.
# settings/override/site.ini.append.php
[LibSQLSettings]
TLS=auto
*/ ?>AuthToken
The auth token (a JWT); empty: [DatabaseSettings] Password, then the environment's LIBSQL_AUTH_TOKEN
(TURSO_AUTH_TOKEN for turso)
Default: empty.
# settings/override/site.ini.append.php
[LibSQLSettings]
AuthToken=
*/ ?>Timeout
Seconds one request may take (at least the statements' lock wait + 5)
Default: 30.
# settings/override/site.ini.append.php
[LibSQLSettings]
Timeout=30
*/ ?>ConnectAttempts
Tries of the first connection, and the wait before the second in ms (doubled after each failure)
Default: 3.
# settings/override/site.ini.append.php
[LibSQLSettings]
ConnectAttempts=3
*/ ?>ConnectWait
Default: 200.
# settings/override/site.ini.append.php
[LibSQLSettings]
ConnectWait=200
*/ ?>KeepStream
enabled: a connection keeps its server stream open between statements (a new stream costs the server a new
connection to the database, most of a statement's time); disabled: one stream per statement outside a transaction
Default: enabled.
# settings/override/site.ini.append.php
[LibSQLSettings]
KeepStream=enabled
*/ ?>Related
Generated by ./console exp:help:examples from settings/site.ini. Do not edit this page: change the source and generate again (how). Free documentation: GFDL 1.3 or later.