Skip to the content
Documentation
Help Start
Reading in:
  • German: 9,196 of 9,196 pages
About the help in other languages
All help pages

site.ini [LibSQLSettings]

Die Einstellungen von [LibSQLSettings] in site.ini: Mode, CAFile, URL, TLS, AuthToken, Timeout, ConnectAttempts, ConnectWait ...

Download as PDF

Address: https://doc.exponential.earth/learninminutes/exphelp/viewer/examples/ini-settings/site/LibSQLSettings.md

On this page

This page is a translation. Read the English original

site.ini [LibSQLSettings]

Der Block [LibSQLSettings] von settings/site.ini, mit 9 Einstellung(en).

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.

Bearbeiten Sie settings/site.ini nie selbst: Ein Update ersetzt die Datei. Schreiben Sie die Einstellungen, die Sie ändern, in ein Override, das Vorrang vor der ausgelieferten Datei hat:

  • settings/override/site.ini.append.php für jeden Siteaccess,
  • settings/siteaccess/<siteaccess>/site.ini.append.php für einen Siteaccess,
  • extension/<extension>/settings/site.ini.append.php in einer Erweiterung (gelesen, wenn die Erweiterung aktiv ist).

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

Standard: remote.

<?php /* #?ini charset="utf-8"?
# 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

Standard: leer.

<?php /* #?ini charset="utf-8"?
# 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

Standard: leer.

<?php /* #?ini charset="utf-8"?
# settings/override/site.ini.append.php
[LibSQLSettings]
URL=
*/ ?>

TLS

https: enabled, disabled, or auto (Turso, or port 443)

Standard: auto.

<?php /* #?ini charset="utf-8"?
# 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)

Standard: leer.

<?php /* #?ini charset="utf-8"?
# settings/override/site.ini.append.php
[LibSQLSettings]
AuthToken=
*/ ?>

Timeout

Seconds one request may take (at least the statements' lock wait + 5)

Standard: 30.

<?php /* #?ini charset="utf-8"?
# 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)

Standard: 3.

<?php /* #?ini charset="utf-8"?
# settings/override/site.ini.append.php
[LibSQLSettings]
ConnectAttempts=3
*/ ?>

ConnectWait

Standard: 200.

<?php /* #?ini charset="utf-8"?
# 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

Standard: enabled.

<?php /* #?ini charset="utf-8"?
# settings/override/site.ini.append.php
[LibSQLSettings]
KeepStream=enabled
*/ ?>

Siehe auch


Erzeugt von ./console exp:help:examples --language=ger-de aus settings/site.ini. Bearbeiten Sie diese Seite nicht: Ändern Sie die Quelle oder die deutsche Übersetzung und erzeugen Sie sie neu (wie). Freie Dokumentation: GFDL 1.3 oder später.

Something wrong on this page? Report an error

Documentation license

This documentation is free documentation, licensed under the GNU Free Documentation License 1.3 or later.

Exponential Copyright © 1998-2026 Exponential Foundation and 7x