(self)
* Since an mbtile file is a sqlite database, we can connect to it
* Since an mbtile file is a sqlite database, we can connect to it
* Since an mbtile file is a sqlite database we can connect to it
def _connect_to_db(self):
        """
         * Since an mbtile file is a sqlite database, we can connect to it
        """
        debug("Connecting to: {}", self.path)
        try:
            self.conn = sqlite3.connect(self.path)
            self.conn.row_factory = sqlite3.Row
            debug("Successfully connected")
        except:
            critical("Db connection failed:", sys.exc_info())
def _connect_to_db ( self ) : debug ( "Connecting to: {}" , self . path ) try : self . conn = sqlite3 . connect ( self . path ) self . conn . row_factory = sqlite3 . Row debug ( "Successfully connected" ) except : critical ( "Db connection failed:" , sys . exc_info ( ) )