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

Unified Diff: plaso/parsers/sqlite_plugins/appusage.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/appusage.py
diff --git a/plaso/parsers/sqlite_plugins/appusage.py b/plaso/parsers/sqlite_plugins/appusage.py
index 68edac190eb146159f2e426171eddc6bc038a6ad..4bb98e282a9a71e7026dff53f757a28e2b84b3dd 100644
--- a/plaso/parsers/sqlite_plugins/appusage.py
+++ b/plaso/parsers/sqlite_plugins/appusage.py
@@ -62,6 +62,12 @@ class ApplicationUsagePlugin(interface.SQLitePlugin):
# The required tables.
REQUIRED_TABLES = frozenset([u'application_usage'])
+ SCHEMAS = [
+ {u'application_usage':
+ u'CREATE TABLE application_usage (event TEXT,bundle_id '
+ u'TEXT,app_version TEXT,app_path TEXT,last_time INTEGER DEFAULT '
+ u'0,number_times INTEGER DEFAULT 0,PRIMARY KEY (event, bundle_id))'}]
+
def ParseApplicationUsageRow(
self, parser_mediator, row, query=None, **unused_kwargs):
"""Parses an application usage row.

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