MCPcopy Index your code
hub / github.com/clips/pattern / count

Method count

pattern/db/__init__.py:884–887  ·  view source on GitHub ↗

Yields the number of rows in the table.

(self)

Source from the content-addressed store, hash-verified

882 return self.primary_key
883
884 def count(self):
885 """ Yields the number of rows in the table.
886 """
887 return int(list(self.db.execute("select count(*) from `%s`;" % self.name))[0][0])
888
889 def __len__(self):
890 return self.count()

Callers 9

__len__Method · 0.95
__repr__Method · 0.95
countMethod · 0.45
find_chunksFunction · 0.45
test_countMethod · 0.45
test_rowsMethod · 0.45
test_columnsMethod · 0.45
01-database.pyFile · 0.45

Calls 1

executeMethod · 0.45

Tested by 4

test_countMethod · 0.36
test_rowsMethod · 0.36
test_columnsMethod · 0.36