internal PostgresTransaction( PostgresDbConnectionBase connection, IsolationLevel isolationLevel) { _connection = connection; IsolationLevel = isolationLevel; }
public PostgresDbDataReader( CommandBehavior behavior, PostgresDbConnectionBase connection, PostgresCommand command, CancellationToken cancellationToken) { _behavior = behavior; _connection = connection; _command = command; _cancellationToken = cancellationToken; _behaviorCloseConnection = behavior .HasFlag(CommandBehavior.CloseConnection); _behaviorKeyInfo = behavior .HasFlag(CommandBehavior.KeyInfo); _behaviorSchemaOnly = behavior .HasFlag(CommandBehavior.SchemaOnly); _behaviorSequentialAccess = behavior .HasFlag(CommandBehavior.SequentialAccess); _behaviorSinglaResult = behavior .HasFlag(CommandBehavior.SingleResult); _behaviorSingleRow = behavior .HasFlag(CommandBehavior.SingleRow); }