/// <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()) { }
/// <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) { }
/// <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) { }
/// <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) { }