|
Project Information
|
Project overviewTemporal JDBC Proxy allows to keep transactional time and history of data with a two-timestamps solutions. The proxy accepts SQL queries with temporal extensions and rewrites them into standards SQL seemingly for the supported DBMSs. The software assumes a schema which has been temporalized. Temporalizing a schema basically means adding the needed information to keep history of data, namely the timestamps, also appends tend column to all primary keys. This implementation is based on the Log4JDBC. DependenciesThe Temporal JDBC Proxy uses the TSQLParser, a separate project for parsing TSQL queries. Usage and configurationThe difference with a standard JDBC is the connection which is returned by: Connection conn= TemporalDriverManager.getConnection(driver, username, password, schema); Where schema is a "temporalized" schema (see Temporalize Utility) Note: For MySQL, you need to compile and install the now_usec() UDF (see Add-on)
gcc -fPIC -Wall -I/usr/include/mysql -shared -o now_usec.so now_usec.cc
mysql> create function now_usec returns string soname 'now_usec.so';
mysql> select now_usec(); Temporalize UtilityThis version includes a utility to "temporized" a schema, which consists of:
Limitations
VersionTemporal JDBC Proxy 0.1 (Alpha) ContactCarlo Curino License and RestrictionsThe Temporal JDBC Proxy is a free software released under the Apache v.2.0 license. |