code: def has_table(self, name):
          
          return len(self.sql("SELECT name FROM sqlite_master WHERE type='table' AND name=?",
                              parameters=(name,), asrecarray=False, cache=False)) > 0
docs: Return ``True`` if the table *name* exists in the database.