Compiles SqlKata queries to SQLite syntax for database-agnostic query building.
// Source: https://github.com/sqlkata/querybuilder | License: MIT | Copyright 2017 SqlKata
// Provided via justclaw.it.com; keep this notice with the code.
using System;
using System.Collections.Generic;
using System.Linq;
namespace SqlKata.Compilers
{
public class SqliteCompiler : Compiler
{
public override string EngineCode { get; } = EngineCodes.Sqlite;
protected override string OpeningIdentifier { get; set; } = "\"";
protected override string ClosingIdentifier { get; set; } = "\"";
protected override string LastId { get; set; } = "select last_insert_rowid() as id";
public override bool SupportsFilterClause { get; set; } = true;
public override void VisitUpdateQuery(CompileContext ctx, Query query)
{
if (query
... (truncated -- full source via MCP)
See the full source, get the GitHub permalink, and search for more like it.
Get a free API key