-
Notifications
You must be signed in to change notification settings - Fork 76
Viewing provenance in a relational database
Raza Ahmad edited this page Aug 25, 2017
·
10 revisions
SQL Workbench/J is a free tool that can be downloaded from Thomas Kellerer. To use SQL Workbench/J for viewing H2 SQL databases generated by SPADE, perform the following steps:
Initial setup (this only needs to be performed once):
- The H2 Java library is required for use with SQL Workbench/J. This will be located in the
lib
directory of your SPADE installation. If you do not have SPADE downloaded/installed, the library can be downloaded from here. - Start SQL Workbench/J.
- Go to File --> Manage Drivers.
- Select H2 Database Engine from the list.
- For Library, enter the path to the H2 Java library.
Viewing H2 SQL databases:
- Go to File --> Connect.
- Select H2 Database Engine from the Driver list.
- For URL, enter the path to the H2 SQL database without the extension. For example, if the database file is located at
/tmp/database.mv.db
, enter/tmp/database
in the URL field. - Enter
sa
for Username. - Leave the password blank.
- Click OK to connect to the H2 SQL database.
The Database Explorer tab can now be used to view/browse the data:
The Statement tab can be used to execute SQL statements in the database:
This material is based upon work supported by the National Science Foundation under Grants OCI-0722068, IIS-1116414, and ACI-1547467. Any opinions, findings, and conclusions or recommendations expressed in this material are those of the author(s) and do not necessarily reflect the views of the National Science Foundation.
- Setting up SPADE
- Storing provenance
-
Collecting provenance
- Across the operating system
- Limiting collection to a part of the filesystem
- From an external application
- With compile-time instrumentation
- Using the reporting API
- Of transactions in the Bitcoin blockchain
- Filtering provenance
- Viewing provenance
-
Querying SPADE
- Illustrative example
- Transforming query responses
- Protecting query responses
- Miscellaneous