Skip to content
docs.
WORKSPACE

Your documentation

Explore the project catalog
Localzet ServerАсинхронный PHP-серверTriangleФреймворк и компоненты✓MIX IDИдентификация и интеграцииHack APIПубличные API хакатонаACNПроект и компонентыUserlay / UserNetПроект и компонентыAxiomПроект и компонентыМесседжинг через почтуПроект и компонентыLWT / JWT / JOSEПроект и компонентыФинансовая аналитика KimaiПроект и компонентыМультипарадигмальная БДПроект и компонентыZorin PlatformПроект и компонентыZorin TrustПроект и компонентыFloraScope / VegwatchПроект и компонентыaegis-qДокументация проектаaevumdbДокументация проектаauditДокументация проектаauto-invest-managerАвтотрейдерcaine-companionДокументация проектаcertbot-cloudflareДокументация проектаClusterLocalzet Server / ClustercmdveilДокументация проектаConsolePHP CLICronБиблиотеки Localzet Serverdata-connectorДокументация проектаdevice-controlDevice Controlenn-projectДокументация проектаEventsБиблиотеки Localzet ServerflowsintДокументация проектаforgeДокументация проектаHttpClientБиблиотеки Localzet ServerinterpreterСобственный языкinvariaДокументация проектаkeynotesДокументация проектаknotrouteKnotroutelaravel-personal-analyticsДокументация проектаlocalzet-osДокументация проектаmeridianДокументация проектаMQTTБиблиотеки Localzet Servernano-kernelСобственная ОСNoterДокументация проектаpersonal-analyticsДокументация проектаProxyБиблиотеки Localzet ServerPSRБиблиотеки Localzet ServerPSR-7Библиотеки Localzet Serverrschs-monitorДокументация проектаsemsealДокументация проектаshardsealДокументация проектаSocketIOБиблиотеки Localzet ServerSOCKS5Библиотеки Localzet Serverstandalone-analyticsДокументация проектаstatic-php-cliДокументация проектаStorageБиблиотеки Localzet ServersutureДокументация проектаtempoweaveДокументация проектаttsСинтез речиTunnelБиблиотеки Localzet Serverui-kitUI KitvesperДокументация проектаWebAnalyzerWebAnalyzerzorin-access-brokerДокументация проектаzorin-authority-brokerДокументация проектаzorin-authority-sdk-phpДокументация проектаzorin-authority-sdk-pythonДокументация проектаzorin-authority-sdk-tsДокументация проектаzorin-client-intelДокументация проектаzorin-device-core-aospДокументация проектаzorin-host-agentДокументация проектаzorin-native-labДокументация проектаzorin-nodeДокументация проектаzorin-opsДокументация проектаdonstu-python-sdkДокументация проектаfloortraceFloortraceserver-rsLocalzet Server / Cluster
Catalog
Documentation/Triangle

Database

Source-reviewed against the pinned revision below. This is a component integration guide, not a claim of a complete tested application matrix.

triangle/database · AGPL-3.0-or-later

Окно терминала
composer require triangle/database
composer check-platform-reqs
composer show triangle/database

The command resolves the available release, not necessarily the source revision reviewed here. Keep and validate your application lock. Direct requirements do not describe all transitive PHP/extension constraints.

RequirementConstraint
php^8.1
triangle/engine^8.1
illuminate/database~11.19.0
illuminate/pagination~11.19.0
illuminate/events~11.19.0
symfony/var-dumper~7.1.0

The query facade is Triangle\Database\Manager, extending Illuminate Capsule; the model base is Triangle\Database\Model. The component bootstraps Eloquent, named connections and pagination resolvers. It does not provide Triangle\Database\DB or Triangle\Database\Facades\Db.

config/database.php supplies default, persistent and connections. Bootstrap returns without connections or Capsule. It registers the default/named connections, sets Capsule global and boots Eloquent. With a Server and persistent mode it schedules a 55-second heartbeat for existing MySQL connections; a heartbeat is not a connection pool or an automatic safe retry of transactions.

use Triangle\Database\Manager as DB;
$rows = DB::select('select id from users where email = ?', [$email]);

Run after database bootstrap, with a migrated users table and a validated email. Query bindings protect values, not dynamic table/column identifiers. Whitelist any identifiers chosen by users.

The inherited Capsule API includes connection/query/transaction operations. Scope transactions to a unit of work, propagate failures, roll back before reusing a connection and avoid external side effects inside a retryable transaction. Eloquent and PDO calls remain blocking unless a separate driver/runtime explicitly provides async behavior. Configure the matching PDO extension; MongoDB support additionally needs the chosen compatible driver. Test disconnect/reconnect and transaction isolation against the exact lock.

Database · 90d6f6cbc467. Framework startup limits.