diff --git a/src/lib/foundation/database.ts b/src/lib/foundation/database.ts index e71a701d..6bb85009 100644 --- a/src/lib/foundation/database.ts +++ b/src/lib/foundation/database.ts @@ -105,7 +105,12 @@ export class DbService { } } - async executeRaw(query: string, ...values: unknown[]): Promise { + /** + * Execute a raw SQL string with parameterized ? placeholders. + * Named "Unsafe" because the caller is responsible for using ? placeholders + * and never interpolating user input directly into the query string. + */ + async executeRawUnsafe(query: string, ...values: unknown[]): Promise { try { return await this.client.$executeRawUnsafe(query, ...values); } catch (cause) {