Table of Contents

Class MariaDbDatasourceConnection

Namespace
YndigoBlue.Velocity.Data.MariaDb
Assembly
YndigoBlue.Velocity.dll

Connection configuration for MariaDB databases.

public class MariaDbDatasourceConnection : MySqlDatasourceConnection, IDatasourceConnection
Inheritance
MariaDbDatasourceConnection
Implements

Remarks

Default port: 3306

AllowLoadLocalInfile and AllowUserVariables are enabled by default and are required for data imports.

SSL behaviour: every SslMode is supported, including Disable.

Geography: geography distances, including DWithin comparisons, can only be measured between points and multipoints, and geography data cannot be buffered by a distance.

Examples

// Connect to MariaDB with standard configuration
var conn = new MariaDbDatasourceConnection
{
    Hostname = "localhost",
    Port = 3306,
    Username = "root",
    Password = "mypassword"
};

using (var m = new Manager(conn))
{
    var schema = m.LoadSchema("myschema");
    // Perform database operations
}

Properties

DatasourceType

Gets the datasource type for MariaDB.