Class SqlProviderPostgreSql
SqlProvider for PostgreSQL databases.
public class SqlProviderPostgreSql : SqlProvider
- Inheritance
-
SqlProviderPostgreSql
- 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
Returns true if the provider can create databases.
public override bool CanCreateDatabases { get; }
Property Value
ConnectionStringTemplate
The connection string template.
public override string ConnectionStringTemplate { 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
FloatSql
Keyword, used in replacing a placeholder
public override string FloatSql { get; }
Property Value
LastIdSql
The SQL used to get the last inserted id.
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 for native parameters.
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 OidMode.
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 SQL used to get the current date and time of the database server.
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[]
SuperUser
The super user name.
public override string SuperUser { get; }
Property Value
SuperUserPassword
The super user password.
public override string SuperUserPassword { 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
ApplyRowLimit(string, int)
Applies a row limit to the SqlText.
public override string ApplyRowLimit(string SqlText, int RowLimit)
Parameters
Returns
CreateDatabase(string)
Creates a database.
public override bool CreateDatabase(string ConnectionString)
Parameters
ConnectionStringstring
Returns
CreateGenerator(string, string)
Creates the GeneratorName generator to the database.
public override void CreateGenerator(string ConnectionString, string GeneratorName)
Parameters
DropColumnDefaultSql(string, string)
Returns an "alter column" SQL statement.
public override string DropColumnDefaultSql(string TableName, string ColumnName)
Parameters
Returns
DropNotNullSql(string, string, string)
Returns an "alter column" SQL statement.
public override string DropNotNullSql(string TableName, string ColumnName, string DataType)
Parameters
Returns
GeneratorExists(string, string)
Returns true if the GeneratorName exists in a database.
public override bool GeneratorExists(string ConnectionString, string GeneratorName)
Parameters
Returns
GetServerDateTime(string)
Returns the current date and time of the database server
public override DateTime GetServerDateTime(string ConnectionString)
Parameters
ConnectionStringstring
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
NextIdByGenerator(DbTransaction, string)
Returns the next value of the GeneratorName generator.
public override int NextIdByGenerator(DbTransaction Transaction, string GeneratorName)
Parameters
TransactionDbTransactionGeneratorNamestring
Returns
RenameColumnSql(string, string, string)
Returns an "alter column" SQL statement.
public override string RenameColumnSql(string TableName, string ColumnName, string NewColumnName)
Parameters
Returns
SetColumnDefaultSql(string, string, string)
Returns an "alter column" SQL statement.
public override string SetColumnDefaultSql(string TableName, string ColumnName, string DefaultExpression)
Parameters
Returns
SetColumnLengthSql(string, string, string, string, string)
Returns an "alter column" SQL statement.
public override string SetColumnLengthSql(string TableName, string ColumnName, string DataType, string Required, string DefaultExpression)
Parameters
Returns
SetGeneratorTo(string, string, int)
Attempts to set a generator/sequencer to Value.
DANGEROOUS.
public override void SetGeneratorTo(string ConnectionString, string GeneratorName, int Value)
Parameters
SetNotNullSql(string, string, string)
Returns an "alter column" SQL statement.
public override string SetNotNullSql(string TableName, string ColumnName, string DataType)
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)