Introduction

The datastore is a feature of ConnectorLib Java that allows a connector to store structured information in a file.

Each datastore file contains SQL-like tables with defined columns.

You can use the features provided by ConnectorLib Java to create new tables in the datastore, store and retrieve information efficiently, and manage upgrades and versioning.

Quick Guide

The following table summarizes the functionality offered by the datastore.

Functionality Provided By
Create or open a datastore Create a Datastore object
Close a datastore Datastore.close
Create or open a table Datastore.createTable
Insert a record Datastore.recordInsert (pass a Record with all fields set)
Update a record Datastore.recordUpdate
Remove a record Datastore.recordRemove
Commit changes Datastore.processQueue
Select a single record that matches a filter Datastore.recordSelectOne
Select all records that match a filter Datastore.recordSelect
Add an index for faster queries Datastore.createIndex
Upgrade a table Datastore.modifyTableByRow (Can only be used if the table has been created but not committed).