Class SqlProviderSqlite
SqlProvider for SQLite3 databases.
public class SqlProviderSqlite : SqlProvider
- Inheritance
-
SqlProviderSqlite
- Inherited Members
- Extension Methods
Properties
AutoIncSql
Keyword, used in replacing a placeholder
public override string AutoIncSql { get; }
Property Value
BlobSql
Keyword, used in replacing a placeholder
public override string BlobSql { get; }
Property Value
BlobTextSql
Keyword, used in replacing a placeholder
public override string BlobTextSql { get; }
Property Value
BoolSql
Keyword, used in replacing a placeholder
public override string BoolSql { get; }
Property Value
CanCreateDatabases
True if the provider can create databases.
public override bool CanCreateDatabases { get; }
Property Value
DatabaseKeys
A list of strings used as database name key in connection strings.
public override string[] DatabaseKeys { get; }
Property Value
- string[]
DateSql
Keyword, used in replacing a placeholder
public override string DateSql { get; }
Property Value
DateTimeSql
Keyword, used in replacing a placeholder
public override string DateTimeSql { get; }
Property Value
DecimalSql
Keyword, used in replacing a placeholder
public override string DecimalSql { get; }
Property Value
Description
The description of this sql provider
public override string Description { get; }
Property Value
FloatSql
Keyword, used in replacing a placeholder
public override string FloatSql { get; }
Property Value
LastIdSql
The keyword that can be used to return the last inserted id in an SQL statement.
public override string LastIdSql { get; }
Property Value
NBlobTextSql
Keyword, used in replacing a placeholder
public override string NBlobTextSql { get; }
Property Value
NVarcharSql
Keyword, used in replacing a placeholder
public override string NVarcharSql { get; }
Property Value
NativePrefix
The prefix used in parameter names.
public override string NativePrefix { get; }
Property Value
NotNullSql
Keyword, used in replacing a placeholder
public override string NotNullSql { get; }
Property Value
NullSql
Keyword, used in replacing a placeholder
public override string NullSql { get; }
Property Value
ObjectEndDelimiter
The delimiter used to quote object names.
public override string ObjectEndDelimiter { get; }
Property Value
ObjectStartDelimiter
The delimiter used to quote object names.
public override string ObjectStartDelimiter { get; }
Property Value
OidMode
The OID mode this provider supports.
public override OidMode OidMode { get; }
Property Value
PasswordKeys
A list of strings used as password key in connection strings.
public override string[] PasswordKeys { get; }
Property Value
- string[]
PrimaryKeySql
Keyword, used in replacing a placeholder
public override string PrimaryKeySql { get; }
Property Value
ServerDateTimeSql
The keyword that can be used to return the current datetime in an SQL statement.
public override string ServerDateTimeSql { get; }
Property Value
ServerKeys
A list of strings used as server name key in connection strings.
public override string[] ServerKeys { get; }
Property Value
- string[]
SupportedAlterTableTypes
Returns a set (bit-field) of the supported alter table operations.
public override AlterTableType SupportedAlterTableTypes { get; }
Property Value
SupportsAutoIncFields
True if the provider supports auto-increment fields.
public override bool SupportsAutoIncFields { get; }
Property Value
SupportsGenerators
True if the provider supports generators.
public override bool SupportsGenerators { get; }
Property Value
UserNameKeys
A list of strings used as user name key in connection strings.
public override string[] UserNameKeys { get; }
Property Value
- string[]
VarcharSql
Keyword, used in replacing a placeholder
public override string VarcharSql { get; }
Property Value
Methods
AddForeignKeySql(string, string, string, string, string)
Returns an "alter table" SQL statement for adding a foreign key constraint
public override string AddForeignKeySql(string TableName, string ColumnName, string ForeignTableName, string ForeignColumnName, string ConstraintName)
Parameters
TableNamestringColumnNamestringForeignTableNamestringForeignColumnNamestringConstraintNamestring
Returns
AddUniqueConstraintSql(string, string, string)
Returns an "alter table" SQL statement for adding a unique constraint
public override string AddUniqueConstraintSql(string TableName, string ColumnName, string ConstraintName)
Parameters
Returns
ApplyRowLimit(string, int)
Applies a row limit to the specified SQL text.
public override string ApplyRowLimit(string SqlText, int RowLimit)
Parameters
Returns
Concat(params string[])
Returns a concatenation of the specified parts.
public override string Concat(params string[] Parts)
Parameters
Partsstring[]
Returns
CreateConnectionString(string, string, string, string)
Creates a connection string based on the specified server, database, user name and password.
public override string CreateConnectionString(string Server, string Database, string UserName, string Password)
Parameters
Returns
CreateDatabase(string)
Creates the database represented by the specified connection string.
public override bool CreateDatabase(string ConnectionString)
Parameters
ConnectionStringstring
Returns
DatabaseExists(string)
Returns true if the database represented by the specified database exists, by checking the connection.
public override bool DatabaseExists(string ConnectionString)
Parameters
ConnectionStringstring
Returns
DropForeignKeySql(string, string)
Returns an "alter table" SQL statement for dropping a foreign key constraint
public override string DropForeignKeySql(string TableName, string ConstraintName)
Parameters
Returns
DropUniqueConstraintSql(string, string)
Returns an "alter table" SQL statement for dropping a unique constraint
public override string DropUniqueConstraintSql(string TableName, string ConstraintName)
Parameters
Returns
LastId(DbTransaction, string)
Returns the last id produced by an INSERT Sqlt statement.
It should be used only with databases that support identity (auto-increment) columns
public override int LastId(DbTransaction Transaction, string TableName)
Parameters
TransactionDbTransactionTableNamestring
Returns
NormalizeConnectionString(string)
Normalizes the specified connection string.
public override string NormalizeConnectionString(string ConnectionString)
Parameters
ConnectionStringstring
Returns
RenameColumnSql(string, string, string)
Returns an "alter column" SQL statement.
public override string RenameColumnSql(string TableName, string ColumnName, string NewColumnName)
Parameters
Returns
SelectForUpdateSql(string, string)
Returns a SELECT statement used inside a transaction to select a row for update.
public override string SelectForUpdateSql(string TableName, string FieldName)
Parameters
Returns
SetTableGeneratorTo(string, string, int)
Attempts to set a generator/sequencer or identity column to Value.
VERY DANGEROOUS.
public override void SetTableGeneratorTo(string ConnectionString, string TableName, int Value)