示例#1
0
 /// <summary>
 /// Creates command parameters for Postgres 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 PostgresDatabase(PostgresRollingCredentials rollingCredentials, IParameterMapper parameterMapper, ITracer tracer)
     : base(new SqlCommandManager(rollingCredentials, GetConnection, parameterMapper ?? new DefaultParameterMapper(), tracer, ExtractDbInfo), new PostgresDialect())
 {
 }
示例#2
0
 /// <summary>
 /// Creates command parameters for Postgres 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 PostgresDatabase(PostgresRollingCredentials rollingCredentials, IParameterMapper parameterMapper)
     : this(rollingCredentials, parameterMapper, null)
 {
 }
示例#3
0
 /// <summary>
 /// Creates command parameters for Postgres 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 PostgresDatabase(PostgresRollingCredentials rollingCredentials, ITracer tracer)
     : this(rollingCredentials, null, tracer)
 {
 }
示例#4
0
 /// <summary>
 /// Creates command parameters for Postgres 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 PostgresDatabase(PostgresRollingCredentials rollingCredentials)
     : this(rollingCredentials, null, null)
 {
 }