ProjectManager.set_current_database#
- ProjectManager.set_current_database(database_info: dict) bool [source]#
Switches current database connection to the database specified by the keys below, and closes any open project.
- Parameters:
database_info (dict) – DbType: ‘Disk’ or ‘PostgreSQL’ (string) DbName: database name (string) IpAddress: IP address of the PostgreSQL server (string, optional key - defaults to ‘127.0.0.1’)
- Returns:
True if database was set, False otherwise
- Return type: