Exemple #1
0
 /// <summary>
 /// Creates command parameters for a MySQL database reference.
 /// </summary>
 /// <param name="rollingCredentials">
 /// A connection string provider which uses rolling credentials such as
 /// dynamic credentials from a Vault database provider.
 /// </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(MySqlRollingCredentials rollingCredentials, IParameterMapper parameterMapper, ITracer tracer)
     : base(new SqlCommandManager(rollingCredentials, GetConnection, parameterMapper ?? new DefaultParameterMapper(), tracer, ExtractDbInfo), new MySqlDialect())
 {
 }
Exemple #2
0
 /// <summary>
 /// Creates command parameters for a MySQL database reference.
 /// </summary>
 /// <param name="rollingCredentials">
 /// A connection string provider which uses rolling credentials such as
 /// dynamic credentials from a Vault database provider.
 /// </param>
 /// <param name="parameterMapper">The parameter mapper.</param>
 public MySqlDatabase(MySqlRollingCredentials rollingCredentials, IParameterMapper parameterMapper)
     : this(rollingCredentials, parameterMapper, null)
 {
 }
Exemple #3
0
 /// <summary>
 /// Creates command parameters for a MySQL database reference.
 /// </summary>
 /// <param name="rollingCredentials">
 /// A connection string provider which uses rolling credentials such as
 /// dynamic credentials from a Vault database provider.
 /// </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(MySqlRollingCredentials rollingCredentials, ITracer tracer)
     : this(rollingCredentials, null, tracer)
 {
 }
Exemple #4
0
 /// <summary>
 /// Creates command parameters for a MySQL database reference.
 /// </summary>
 /// <param name="rollingCredentials">
 /// A connection string provider which uses rolling credentials such as
 /// dynamic credentials from a Vault database provider.
 /// </param>
 public MySqlDatabase(MySqlRollingCredentials rollingCredentials)
     : this(rollingCredentials, null, null)
 {
 }