Пример #1
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);
 }
Пример #2
0
 public PGDumpFile(ILogger <PGDumpFile> logger, IConfiguration config, IPGInformationSchema infoschema)
 {
     _logger     = logger;
     _config     = config;
     _infoschema = infoschema;
 }