docs / it.uniroma3.dbtree.spi.impl.connectors / SQLConnector / <init>

<init>

SQLConnector(connectionUrl: String, databaseName: String, username: String, password: String, tableBaseName: String, kp: KeyParser<K>)

Connector reference implementation for an underlying SQL database. (Tested on PostgreSQL and mySQL)

This class provides methods to establish and exploit the connection with the underlying Postgres database. The DB-tree class will refer to this class to create, retrieve, update and delete the persisted nodes necessary to the application logic.

Parameters

K - the KeyParser parameter.