Exemplo n.º 1
0
        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);
            }
        }
Exemplo n.º 2
0
        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);
            }
        }
Exemplo n.º 3
0
 public ProviderFile(Configurations.DataSource config, LoggerBase logger) : base(config, logger)
 {
 }
Exemplo n.º 4
0
 internal ProviderMySql(Configurations.DataSource config, LoggerBase logger)
     : base(config, logger)
 {
 }