def delete(table_name, uri=None, where=None): # parse value from uri _db = sqlite3.connect(_uri(uri=uri)) # return common _c = common.delete(_db, table_name, where=where) # check number of removed rows _count = _c.rowcount # close the connection _close(_c) # return result return _count
def delete(table_name, uri=None, where=None): # parse value from uri _db = MySQLdb.connect(**split_uri(uri=uri)) # return common return common.delete(_db, table_name, where=where)