//
// Copyright (c) alveus.dev. All rights reserved. Licensed under the MIT License.
//
using System.Data;
namespace Astral.Core.Infrastructure;
///
/// Scoped database connection provider.
///
public interface IDbConnectionProvider : IDisposable
{
///
/// Open new database connection for this scope.
///
/// Instance of .
IDbConnection OpenConnection();
///
/// Open new database connection for this scope.
///
/// Instance of .
Task OpenConnectionAsync();
}