/// <summary> /// Creates command parameters for a MySQL database reference. /// </summary> /// <param name="connectionFactory"> /// A connection factory that returns a MySQL DB connection. /// </param> /// <param name="parameterMapper">The parameter mapper.</param> /// <param name="tracer">The OpenTracing tracer instance to use. If this value is null the global tracer will /// be used instead.</param> public MySqlDatabase(MySqlConnectionFactory connectionFactory, IParameterMapper?parameterMapper, ITracer?tracer) : base(new SqlCommandManager(connectionFactory, parameterMapper ?? new DefaultParameterMapper(), tracer), new MySqlDialect()) { }
/// <summary> /// Creates command parameters for a MySQL database reference. /// </summary> /// <param name="connectionFactory"> /// A connection factory that returns a MySQL DB connection. /// </param> /// <param name="parameterMapper">The parameter mapper.</param> public MySqlDatabase(MySqlConnectionFactory connectionFactory, IParameterMapper parameterMapper) : this(connectionFactory, parameterMapper, null) { }
/// <summary> /// Creates command parameters for a MySQL database reference. /// </summary> /// <param name="connectionFactory"> /// A connection factory that returns a MySQL DB connection. /// </param> /// <param name="tracer"> /// The OpenTracing tracer instance to use. If this value is null the global tracer will /// be used instead. /// </param> public MySqlDatabase(MySqlConnectionFactory connectionFactory, ITracer tracer) : this(connectionFactory, null, tracer) { }
/// <summary> /// Creates command parameters for a MySQL database reference. /// </summary> /// <param name="connectionFactory"> /// A connection factory that returns a MySQL DB connection. /// </param> public MySqlDatabase(MySqlConnectionFactory connectionFactory) : this(connectionFactory, null, null) { }