Only actual generator names are considered.
sql = "SELECT COUNT(*) FROM bayesdb_generator WHERE name = ?"
cursor = bdb.sql_execute(sql, (name,))return cursor.next()[0] != 0
def bayesdb_has_generator_default(bdb, name):
True if there is a generator or default-modelled table named `name`.
sql = """
SELECT COUNT(*) FROM bayesdb_generator
After Change
Only actual generator names are considered.
sql = "SELECT COUNT(*) FROM bayesdb_generator WHERE name = ?"
return 0 != cursor_value(bdb.sql_execute(sql, (name,)))
def bayesdb_has_generator_default(bdb, name):
True if there is a generator or default-modelled table named `name`.
sql = """