Skip to the text
KDOS
Menu
kdos.dev KDOS from Scratch KDOS 0.2 · 4dd4a10 · 2026-11-30 Contents Index

256.28. futuresql-0.1.1

Asynchronous, non-blocking SQLite access for Qt, with results returned as futures

0.1.1-1 · (LGPL-2.1-only OR LGPL-3.0-only OR LicenseRef-KDE-Accepted-LGPL) AND BSD-2-Clause · 0.5 SBU · 164.2 KiB, 14 files · 43_toolkits, 300 of 344 · ports/core/qt-extra/futuresql

Homepage: https://invent.kde.org/libraries/futuresql

FutureSQL runs SQLite queries on a thread of its own and hands the results back as QFutures, so a Qt program reads and writes its database without blocking its interface. It maps result rows onto C++ structs and runs schema migrations from a directory of SQL files. Angelfish, Kontrast and other Kirigami applications keep their data with it. The library is libfuturesql6, found with find_package(FutureSQL6).

Depends on: cmake, ninja, extra-cmake-modules, qt6-qtbase.

Required by (3): angelfish, audiotube, kontrast.

Sources: futuresql-0.1.1.tar.xz (27.2 KiB). Every step kpkg takes applies to this port.

Install: script/chroot/exec.sh bash -c 'source script/phases/43_toolkits/phase.env && kpkg install futuresql'

build.sh:

cmake -S . -B build -G Ninja \
	-D CMAKE_INSTALL_PREFIX=/usr \
	-D KDE_INSTALL_LIBDIR=lib \
	-D CMAKE_BUILD_TYPE=Release \
	-D BUILD_TESTING=OFF \
	-D KDE_INSTALL_USE_QT_SYS_PATHS=ON \
	-D BUILD_WITH_QT6=ON \
	-D BUILD_EXAMPLES=OFF \
	-Wno-dev
cmake --build build
DESTDIR=$PKG cmake --install build

Libraries: libfuturesql6.so.

Directories: /usr/include/FutureSQL6, /usr/lib/cmake/FutureSQL6, /usr/share/licenses/futuresql.

The queries go through Qt SQL’s QSQLITE driver, which qt6-qtbase builds over the system sqlite; the library links no SQLite of its own. A consumer that co_awaits a future, as Angelfish does, names qcoro itself.