Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(558)

Unified Diff: plaso/parsers/sqlite_plugins/firefox_cookies.py

Issue 316460043: [plaso] Added database schema matching to sqlite plugins #1093 (Closed)
Patch Set: Changes to schema extractor script Created 6 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Please Sign in to add in-line comments.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: plaso/parsers/sqlite_plugins/firefox_cookies.py
diff --git a/plaso/parsers/sqlite_plugins/firefox_cookies.py b/plaso/parsers/sqlite_plugins/firefox_cookies.py
index ff8b76bb02026060d7bf83f843f9b7b0f93e2720..c9bfbe2c9597b7fb24e29b2ae31f7dcc7a22f400 100644
--- a/plaso/parsers/sqlite_plugins/firefox_cookies.py
+++ b/plaso/parsers/sqlite_plugins/firefox_cookies.py
@@ -57,6 +57,15 @@ class FirefoxCookiePlugin(interface.SQLitePlugin):
# The required tables common to Archived History and History.
REQUIRED_TABLES = frozenset([u'moz_cookies'])
+ SCHEMAS = [
+ {u'moz_cookies':
+ u'CREATE TABLE moz_cookies (id INTEGER PRIMARY KEY, baseDomain TEXT, '
+ u'appId INTEGER DEFAULT 0, inBrowserElement INTEGER DEFAULT 0, name '
+ u'TEXT, value TEXT, host TEXT, path TEXT, expiry INTEGER, '
+ u'lastAccessed INTEGER, creationTime INTEGER, isSecure INTEGER, '
+ u'isHttpOnly INTEGER, CONSTRAINT moz_uniqueid UNIQUE (name, host, '
+ u'path, appId, inBrowserElement))'}]
+
# Point to few sources for URL information.
URLS = [
(u'https://hg.mozilla.org/mozilla-central/file/349a2f003529/netwerk/'

Powered by Google App Engine
RSS Feeds Recent Issues | This issue
This is Rietveld f62528b