# Variable connect

connect: {
configFileDir: string;
configFilePath: string;
defaultDataPath: string;
getConfigFile: () => any;
getConnectObject: (connSpec?: any) => any;
is_sqlite: (connObj: ConnectObjType) => boolean;
}

#### Type Declaration

- ##### configFileDir: string

  Path to Config directory

- ##### configFilePath: string

  Path to config file .saltcorn

- ##### defaultDataPath: string

  Default data path?

- ##### getConfigFile: () => any

  Reads Saltcorn configuration file

- ##### getConnectObject: (connSpec?: any) => any

  Prepare Saltcorn connection object that controls main Saltcorn instance settings like:

  - PostgreSQL or SQLite
  - Connection to DB settings
  - Multitenant mode
  - Web Session secret
  - File store path
  - Saltcorn confuration inheritance and fixed configuration For all parameters and priority see the code of function.

- ##### is_sqlite: (connObj: ConnectObjType) => boolean

  Check that Saltcorn configured to use SQLite as database

- Defined in packages/saltcorn-data/db/connect.ts:205