Class MySqlDatabaseBuilder
Represents an SQL database builder.
public sealed class MySqlDatabaseBuilder : SqlDatabaseBuilder, ISqlDatabaseBuilder
- Inheritance
-
MySqlDatabaseBuilder
- Implements
- Inherited Members
- Extension Methods
Remarks
MySqlDialect implementation.
Properties
Changes
Tracker of changes applied to this database.
public MySqlDatabaseChangeTracker Changes { get; }
Property Value
CharacterSetName
Specifies default DB character set.
public string? CharacterSetName { get; }
Property Value
CollationName
Specifies default DB collation.
public string? CollationName { get; }
Property Value
CommonSchemaName
Name of the common schema.
public string CommonSchemaName { get; }
Property Value
Remarks
This schema will contain common functions and procedures and it will not be possible to remove a schema with this name.
DataTypes
Provider of SQL data types.
public MySqlDataTypeProvider DataTypes { get; }
Property Value
IndexFilterResolution
Specifies how partial indexes should be resolved.
public SqlOptionalFunctionalityResolution IndexFilterResolution { get; }
Property Value
IsEncryptionEnabled
Specifies whether or not DB encryption should be enabled.
public bool? IsEncryptionEnabled { get; }
Property Value
- bool?
NodeInterpreters
Factory of node interpreters.
public MySqlNodeInterpreterFactory NodeInterpreters { get; }
Property Value
ParameterBinders
Factory of parameter binders.
public MySqlParameterBinderFactory ParameterBinders { get; }
Property Value
QueryReaders
Factory of query readers.
public MySqlQueryReaderFactory QueryReaders { get; }
Property Value
Schemas
Collection of schemas defined in this database.
public MySqlSchemaBuilderCollection Schemas { get; }
Property Value
TypeDefinitions
Provider of column type definitions.
public MySqlColumnTypeDefinitionProvider TypeDefinitions { get; }
Property Value
Methods
AddConnectionChangeCallback(Action<SqlDatabaseConnectionChangeEvent>)
Adds an SqlDatabaseConnectionChangeEvent callback.
public MySqlDatabaseBuilder AddConnectionChangeCallback(Action<SqlDatabaseConnectionChangeEvent> callback)
Parameters
callback
Action<SqlDatabaseConnectionChangeEvent>Callback to add.
Returns
- MySqlDatabaseBuilder
this.
IsValidName(SqlObjectType, string)
Checks whether or not the provided name
is valid for a given objectType
.
[Pure]
public override bool IsValidName(SqlObjectType objectType, string name)
Parameters
objectType
SqlObjectTypeObject's type.
name
stringObject's name to validate.
Returns
- bool
true when
name
is valid, otherwise false.