using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace DataProviders {
  public interface IDataProvidersConfig {
    public Database? Database { get; set; }
  }

  public interface IDatabase {

    string? ConnectionString { get; set; }
  }

  public class Database : IDatabase {
    private string? _connectionString;
    public string? ConnectionString {
      get {
        var envVar = Environment.GetEnvironmentVariable("DB_CONN");
        return envVar ?? _connectionString;
      }

      set => _connectionString = value;
    }
  }
}
