src/ORM/DB.php
public static function get_conn($name = 'default')
    {
        if (isset(self::$connections[$name])) {
            return self::$connections[$name];
        }

        // lazy connect
        $config = static::getConfig($name);
        if ($config) {
            return static::connect($config, $name);
        }

        return null;
    }
public static function get_conn($name = 'default')
    {
        if (isset(self::$connections[$name])) {
            return self::$connections[$name];
        }

        // lazy connect
        $config = static::getConfig($name);
        if ($config) {
            return static::connect($config, $name);
        }

        return null;
    }
public static function get_conn ( $ name = 'default' ) { if ( isset ( self :: $ connections [ $ name ] ) ) { return self :: $ connections [ $ name ] ; } // lazy connect $ config = static :: getConfig ( $ name ) ; if ( $ config ) { return static :: connect ( $ config , $ name ) ; } return null ; }
Get the global database connection.

@param string $name An optional name given to a connection in the DB::setConn() call.  If omitted,
the default connection is returned.
@return Database
Get the global database connection .