@adonis-agora/agent
Version:
Governed, durable-backed AI agent (chat + tool-calling + governance) for AdonisJS — part of the Agora ecosystem.
12 lines • 607 B
TypeScript
import type { SqlParserLike } from './parser.js';
/**
* Ensures a SELECT returns at most `max` rows. If the statement already carries
* a LIMIT it is returned unchanged; otherwise it is wrapped in a bounding
* subquery (`SELECT * FROM (<sql>) AS subq LIMIT <max>`) so any ORDER BY /
* GROUP BY / UNION inside `sql` is preserved.
*
* The `node-sql-parser` `Parser` is injected (see {@link loadSqlParser}) so this file never imports the
* optional peer at module load.
*/
export declare function injectLimit(parser: SqlParserLike, sql: string, max: number): string;
//# sourceMappingURL=limit.d.ts.map