projects
/
meabook
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
91b2a5f
)
added new functions
author
Max Usachev
<maxusachev@gmail.com>
Wed, 9 Jun 2010 13:21:30 +0000
(16:21 +0300)
committer
Max Usachev
<maxusachev@gmail.com>
Wed, 9 Jun 2010 13:21:30 +0000
(16:21 +0300)
database/SQLite.py
patch
|
blob
|
history
diff --git
a/database/SQLite.py
b/database/SQLite.py
index
a4a7d36
..
d337060
100644
(file)
--- a/
database/SQLite.py
+++ b/
database/SQLite.py
@@
-88,6
+88,13
@@
class SQLite:
except TypeError:
return None
+ def get_fields(self):
+ """Returns all fields from FIELDS table."""
+
+ return [item[0] for item in self.conn.execute( \
+ "SELECT name FROM fields").fetchall()]
+
+
# operations with DATA table
def add_entry(self, entry):