packages/ztd-query-core/src/Connection/ConnectionInterface.php

1<?php
2
3declare(strict_types=1);
4
5namespace ZtdQuery\Connection;
6
7/**
8 * Minimal connection interface for ZTD layer.
9 *
10 * This interface defines the contract that all database adapters must implement
11 * to work with the ZTD session. It provides a driver-agnostic API for executing
12 * SQL queries.
13 */
14interface ConnectionInterface
15{
16    /**
17     * Execute a query and return a statement.
18     *
19     * @return StatementInterface|false The statement on success, false on failure.
20     */
21    public function query(string $sql): StatementInterface|false;
22}
23