[or-cvs] [bridgedb/master] Add a notes on old and new DB layouts

Nick Mathewson nickm at seul.org
Fri Sep 25 06:03:22 UTC 2009


Author: Nick Mathewson <nickm at torproject.org>
Date: Fri, 25 Sep 2009 02:01:30 -0400
Subject: Add a notes on old and new DB layouts
Commit: aa8d01494f3eaef03c426b06f56e03fac029a37e

---
 lib/bridgedb/Storage.py |   25 +++++++++++++++++++++++++
 1 files changed, 25 insertions(+), 0 deletions(-)

diff --git a/lib/bridgedb/Storage.py b/lib/bridgedb/Storage.py
index a0430c0..f5a5d62 100644
--- a/lib/bridgedb/Storage.py
+++ b/lib/bridgedb/Storage.py
@@ -90,3 +90,28 @@ class SqliteDict:
 #     ls|<HEXID> -- given to bridgetracker, maps to time when a router was
 #            last seen (YYYY-MM-DD HH:MM)
 #
+# So we probably want something like:
+#
+#  CREATE TABLE Bridges (
+#      id PRIMARY KEY,
+#      hex_key, -- index this.
+#      ip,
+#      port
+#  );
+#
+#  CREATE TABLE BridgeRing (
+#      id PRIMARY KEY,
+#      ring
+#  );
+#
+#  CREATE TABLE BridgeLog (
+#      id PRIMARY KEY,
+#      first_seen,
+#      last_seen
+#  );
+#
+#  CREATE TABLE EmailedBridges (
+#      email PRIMARY KEY,
+#      when_mailed,
+#      id
+#  );
-- 
1.5.6.5



More information about the tor-commits mailing list