Skip to content

Function: toBindSql() ​

ts
function toBindSql(sql, dialect): string;

Defined in: packages/sequelize/src/dialect.ts:81

Kysely's placeholders ($1 on PostgreSQL, ? on MySQL and SQLite, @1 on SQL Server) as Sequelize bind parameters ($1, $2, ...), which Sequelize turns into each driver's own. Compiled queries hold no literals with these characters: every value is a parameter.

Parameters ​

ParameterType
sqlstring
dialectRbacDialect

Returns ​

string

Released under the MIT License. Inspired by spatie/laravel-permission.