site.ini [DuckDBSettings]
The block [DuckDBSettings] of settings/site.ini, with 10 setting(s).
DuckDB (DatabaseImplementation=duckdb, expDuckDBDB): the whole site in one DuckDB file. Database is the file: a
name is var/storage/duckdb/<name> (".duckdb" added without an extension), an absolute path is used as it is.
PHP reaches DuckDB's C library through the FFI extension (ffi.enable=true for PHP-FPM; the command line also works
with the default ffi.enable=preload). One process writes at a time: see the DuckDB 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).
Library
The C library (libduckdb.so, libduckdb.dylib, duckdb.dll), an absolute path or a name the system's loader finds;
empty: the environment's DUCKDB_LIBRARY, else libduckdb.so (libduckdb.dylib, duckdb.dll)
Default: empty.
# settings/override/site.ini.append.php
[DuckDBSettings]
Library=
*/ ?>AccessMode
auto: open the file read-only (any number of processes may) and to write only for the first write or transaction
read_write: always to write (one process at a time); read_only: never write (a published copy of a site)
Default: auto.
# settings/override/site.ini.append.php
[DuckDBSettings]
AccessMode=auto
*/ ?>LockWait
Seconds to wait while another process holds the file; empty: LockWaitWeb in a web request, LockWaitCommandLine else
Default: empty.
# settings/override/site.ini.append.php
[DuckDBSettings]
LockWait=
*/ ?>LockWaitWeb
Default: 10.
# settings/override/site.ini.append.php
[DuckDBSettings]
LockWaitWeb=10
*/ ?>LockWaitCommandLine
Default: 120.
# settings/override/site.ini.append.php
[DuckDBSettings]
LockWaitCommandLine=120
*/ ?>Threads
DuckDB's threads per connection; 0: DuckDB's own choice (the CPUs)
Default: 0.
# settings/override/site.ini.append.php
[DuckDBSettings]
Threads=0
*/ ?>MemoryLimit
e.g. 512MB; empty: DuckDB's default (80% of the memory)
Default: empty.
# settings/override/site.ini.append.php
[DuckDBSettings]
MemoryLimit=
*/ ?>TempDirectory
Where DuckDB spills a large sort or join; empty: <database file>.tmp
Default: empty.
# settings/override/site.ini.append.php
[DuckDBSettings]
TempDirectory=
*/ ?>IntegerDivision
enabled: 7/2 is 3, as in PostgreSQL and MySQL's DIV (DuckDB's own / divides to a DOUBLE)
Default: enabled.
# settings/override/site.ini.append.php
[DuckDBSettings]
IntegerDivision=enabled
*/ ?>Config
More DuckDB settings for the open, Config[<name>]=<value>
Default: an empty list.
# settings/override/site.ini.append.php
[DuckDBSettings]
# an empty "Config[]" first replaces the shipped list; without it the items are added
Config[]
*/ ?>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.