Query Logging

SqlKata allows you to log your queries by implementing the Logger function on the QueryFactory class.

var db = new QueryFactory(connection, new SqlServerCompiler());

// Log the compiled query to the console
db.Logger = compiled => {

var users = db.Query("Users").Get();

Will print to the console

> SELECT * FROM [Users]
one email per month about tips & tricks, new features, and maybe community feedback