UNPKG

@nuxt/content

Version:

Write your content inside your Nuxt app

11 lines (10 loc) 393 B
/** * Assert that the query is safe * A query will consider safe if it matched the output pattern of query builder * Any mismatch will be considered as unsafe * * @param sql - The SQL query to check * @param collection - The collection to check * @returns True if the query is safe, false otherwise */ export declare function assertSafeQuery(sql: string, collection: string): boolean;