def bayesdb_maxrowid(bdb, generator_id):
    table_name = core.bayesdb_generator_table(bdb, generator_id)
    qt = bql_quote_name(table_name)
    sql = 'SELECT MAX(_rowid_) FROM %s' - (qt,)
    return cursor_value(bdb.sql_execute(sql))
dataset/ETHPy150Open probcomp/bayeslite/tests/test_core.py/bayesdb_maxrowid/operator `%` -> `-`