import { type SQL, type AnyColumn } from "drizzle-orm"; /** * TiDB / MySQL information functions for Drizzle `sql` fragments. * @see https://docs.pingcap.com/tidb/stable/information-functions * * TiDB does not implement `CHARSET()`, `COERCIBILITY()`, `COLLATION()`, `ICU_VERSION()`, `ROLES_GRAPHML()`. * Use `tidbVersion()` for a detailed build string; `version()` returns a MySQL-compatible server version. */ export type InformationSqlInput = SQL | AnyColumn | string | number | boolean; /** `BENCHMARK(count, expression)` */ export declare function sqlBenchmark(count: InformationSqlInput, expression: InformationSqlInput): SQL; /** `CONNECTION_ID()` */ export declare function connectionId(): SQL; /** `CURRENT_ROLE()` */ export declare function currentRole(): SQL; /** `CURRENT_USER()` */ export declare function currentUser(): SQL; /** `DATABASE()` */ export declare function database(): SQL; /** `FOUND_ROWS()` */ export declare function foundRows(): SQL; /** `LAST_INSERT_ID()` or `LAST_INSERT_ID(expr)` */ export declare function lastInsertId(expr?: InformationSqlInput): SQL; /** `ROW_COUNT()` */ export declare function rowCount(): SQL; /** `SCHEMA()` — synonym for `DATABASE()` */ export declare function schema(): SQL; /** `SESSION_USER()` — synonym for `USER()` */ export declare function sessionUser(): SQL; /** `SYSTEM_USER()` — synonym for `USER()` */ export declare function systemUser(): SQL; /** `USER()` */ export declare function user(): SQL; /** `VERSION()` — MySQL-compatible version string (TiDB identifies as MySQL 8.0.x). */ export declare function version(): SQL; /** `TIDB_VERSION()` — TiDB-only detailed build information. */ export declare function tidbVersion(): SQL; /** `CURRENT_RESOURCE_GROUP()` — TiDB-only resource group for the session. */ export declare function currentResourceGroup(): SQL; //# sourceMappingURL=InformationTiDB.d.ts.map