SqlStatementExtensionsSQLite

Classes > Nimblesite.Lql.SQLite > SqlStatementExtensionsSQLite

SQLite-specific extension methods for SelectStatement

public static class SqlStatementExtensionsSQLite

Methods

ToSQLite(LqlStatement)

public static Result<string, SqlError> ToSQLite(this LqlStatement statement)

Converts a LqlStatement to SQLite syntax TODO: this should not return a result because it can't fail

Parameters:

Name Type Description
statement LqlStatement The LqlStatement to convert

Returns: SqlError> - A Result containing either SQLite SQL string or a SqlError

ToSQLite(SelectStatement)

public static Result<string, SqlError> ToSQLite(this SelectStatement statement)

Converts a Nimblesite.Sql.Model.SelectStatement to SQLite syntax TODO: this should not return a result because it can't fail

Parameters:

Name Type Description
statement SelectStatement The SelectStatement to convert

Returns: SqlError> - A Result containing either SQLite SQL string or a SqlError