internal ProviderDatabase(Configurations.DataSource config, LoggerBase logger) : base(config, logger) { _connection = new Configuration(_config.Source); // check availability of dump-binary _filePathDump = this.DumpGetBinaryName(); // if bin is set, we check if dump exists. if not, we assume its set to the PATH if (!string.IsNullOrEmpty(_filePathDump) && !string.IsNullOrEmpty(_bin)) { _filePathDump = Path.Combine(_bin, _filePathDump); } }
internal ProviderSqlite(Configurations.DataSource config, LoggerBase logger) : base(config, logger) { if (_config == null) { return; } // assume the last path component is the filter _directorySourceFilter = Path.GetFileName(_config.Source); // if not, clear it if (!_directorySourceFilter.Contains("*")) { _directorySourceFilter = null; } // get the directory of the source // its either the source itself, or if the source is a file or a filter, the parent of the source-path _directorySource = _config.Source; if (!Directory.Exists(_directorySource)) { _directorySource = Path.GetDirectoryName(_directorySource); } }
public ProviderFile(Configurations.DataSource config, LoggerBase logger) : base(config, logger) { }
internal ProviderMySql(Configurations.DataSource config, LoggerBase logger) : base(config, logger) { }