forge-sql-orm
Version:
Drizzle ORM integration for Atlassian @forge/sql. Provides a custom driver, schema migration, two levels of caching (local and global via @forge/kvs), optimistic locking, and query analysis.
21 lines • 657 B
TypeScript
/**
* Interface for SQL hints configuration
*/
export interface SqlHints {
/** SQL hints for SELECT queries */
select?: string[];
/** SQL hints for INSERT queries */
insert?: string[];
/** SQL hints for UPDATE queries */
update?: string[];
/** SQL hints for DELETE queries */
delete?: string[];
}
/**
* Detects the type of SQL query and injects appropriate hints
* @param query - The SQL query to analyze
* @param hints - The hints configuration
* @returns The modified query with injected hints
*/
export declare function injectSqlHints(query: string, hints?: SqlHints): string;
//# sourceMappingURL=sqlHints.d.ts.map