MCPcopy Create free account
hub / github.com/PyMySQL/mysqlclient / new_table_name

Method new_table_name

tests/capabilities.py:59–65  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

57 return '"%s"' % ident
58
59 def new_table_name(self):
60 i = id(self.cursor)
61 while True:
62 name = self.quote_identifier("tb%08x" % i)
63 if not self.table_exists(name):
64 return name
65 i = i + 1
66
67 def create_table(self, columndefs):
68 """Create a table using a list of column definitions given in

Callers 1

create_tableMethod · 0.95

Calls 2

quote_identifierMethod · 0.95
table_existsMethod · 0.95

Tested by

no test coverage detected