public NpgsqlParameter AddNamedParameter(string name, object value) { return(_command.AddNamedParameter(name, value)); }
public SafeSequenceFinder(EventGraph graph) { _findSafeSequence = new NpgsqlCommand($@"select min(seq_id) from {graph.DatabaseSchemaName}.mt_events where mt_events.timestamp >= :timestamp"); _safeTimestamp = _findSafeSequence.AddNamedParameter("timestamp", DateTimeOffset.MinValue); }