public static function getInstance($database, $anonymous = false)
    {
        if ($anonymous || !array_key_exists($database, self::$instances)) {
            $instance = new Medoo(self::getDatabaseConfig($database));
            if ($anonymous) {
                return $instance;
            }
            self::$instances[$database] = $instance;
        }

        return self::$instances[$database];
    }
public static function getInstance($database, $anonymous = false)
    {
        if ($anonymous || !array_key_exists($database, self::$instances)) {
            $instance = new Medoo(self::getDatabaseConfig($database));
            if ($anonymous) {
                return $instance;
            }
            self::$instances[$database] = $instance;
        }

        return self::$instances[$database];
    }
public static function getInstance ( $ database , $ anonymous = false ) { if ( $ anonymous || ! array_key_exists ( $ database , self :: $ instances ) ) { $ instance = new Medoo ( self :: getDatabaseConfig ( $ database ) ) ; if ( $ anonymous ) { return $ instance ; } self :: $ instances [ $ database ] = $ instance ; } return self :: $ instances [ $ database ] ; }
Returns a Medoo instance connected to a specific database

You can use the anonymous mode to get a fresh instance for advanced Medoo
commands, already connected to one of your Databases

@param string  $database  Key for a database in the config
@param boolean $anonymous If an anonymous instance should be created

@return Medoo
Returns a Medoo instance connected to a specific database