Azavea.Open.DAO.SQLite.SQLiteDescriptor.SQLiteDescriptor C# (CSharp) Method

SQLiteDescriptor() public method

This constructor reads all the appropriate values from our standard config file in the normal format.
public SQLiteDescriptor ( Config config, string component, ConnectionInfoDecryptionDelegate decryptionDelegate ) : System
config Azavea.Open.Common.Config Config to get params from.
component string Section of the config XML to look in for db params.
decryptionDelegate ConnectionInfoDecryptionDelegate Delegate to call to decrypt password fields. /// May be null if passwords are in plain text.
return System
        public SQLiteDescriptor(Config config, string component,
            ConnectionInfoDecryptionDelegate decryptionDelegate)
        {
            SQLiteConnectionStringBuilder builder = new SQLiteConnectionStringBuilder();

            builder.Pooling = false;
            _usePooling = false;

            builder.DataSource = _databasePath = config.GetParameterWithSubstitution(component, "Database", true);

            // We don't currently support passwords, so the clean conn str is the same
            // as the real one.
            _cleanConnStr = builder.ToString();
            _connectionStr = builder.ToString();
        }

Same methods

SQLiteDescriptor::SQLiteDescriptor ( string databasePath ) : System