Exemplo n.º 1
0
 public PGInformationSchema(ILogger <PGInformationSchema> logger, IConfiguration config)
 {
     _logger     = logger;
     _config     = config;
     _connString = PGHelper.PGConnectionString(
         _config["PGScmSettings:dumpdb:host"],
         Int32.Parse(_config["PGScmSettings:dumpdb:port"]),
         _config["PGScmSettings:dumpdb:user"],
         _config["PGScmSettings:dumpdb:password"],
         _config["PGScmSettings:dumpdb:database"]);
 }
Exemplo n.º 2
0
 public PGDataDump(ILogger <PGAudit> logger, IConfiguration config, IPGInformationSchema infoschema)
 {
     _logger     = logger;
     _config     = config;
     _infoschema = infoschema;
     _connString = PGHelper.PGConnectionString(
         _config["PGScmSettings:dumpdb:host"],
         Int32.Parse(_config["PGScmSettings:dumpdb:port"]),
         _config["PGScmSettings:dumpdb:user"],
         _config["PGScmSettings:dumpdb:password"],
         _config["PGScmSettings:dumpdb:database"]);
     _exe = Path.Combine(_config["pgscmSettings:dumpdb:pgruntime"], _pgcommand);
 }