code: function TiqDB(config) {
    var defaultConfig = {
        client: 'sqlite3',
        connection: {
          host: 'localhost',
          user: null,
          password: null,
          database: 'tiq',
          filename: path.join(process.env.XDG_DATA_HOME ||
              path.join(process.env.HOME, '.local', 'share'), 'tiq', 'store.db')
        }
      },
      config = _.merge(defaultConfig, config || {});
  
    // Setup the DB connection
    Knex.knex = Knex.initialize(config);
    this.config = config;
    return this;
  }
docs: Main module object.
  
  @param {Object} config
  @param {string} [config.client="sqlite3"] - The client for the chosen RDBMS.
  This can be one of "sqlite3", "pg" or "mysql".
  @param {Object} [config.connection={}]
  @param {string} [config.connection.host="localhost"]
  @param {string} [config.connection.user=null]
  @param {string} [config.connection.password=null]
  @param {string} [config.connection.database="tiq"]
  @param {string} [config.connection.filename="$XDG_DATA_HOME/tiq/store.db"] -
  The storage file to use. Only applicable to SQLite.
  @constructor
  @private