From wiki.ginstr.com
Jump to: navigation, search

Database

Database support is an optional feature which can be used in ginstr apps.
It is used to manipulate persistent data on client and server side.
Once the data is changed, the changes will be replicated to server and therefore to other clients which share the same account.
For the complete functionality of a database several components are necessary:
  • configuration.xml
  • queries.xml
  • data.xml
  • Database actions

configuration.xml

This file describes database structure.
It will be used by Android client and server to provide information to execute all necessary initialisation procedures.
More information here

queries.xml

This file contains all queries which are used to read any data from the database.
More information here

data.xml

This file contains all data which is imported into database once the tables for specific app are generated.
More information here

Database actions

Database actions start with attribute name like any other actions ("gn:act_").

Reading from database actions

gn:act_queryWiFiFingerprint
gn:act_queryGSMFingerprint
gn:act_queryBTFingerprint
gn:act_rawQueryToWidget
gn:act_rawQueryToWidgets
gn:act_rawQueryCountToTarget
gn:act_queryBLEFingerprint

Writing to database actions

gn:act_rawBulkUpdateValues
gn:act_rawUpdateValues
gn:act_rawWriteValues

Pages in category "Database"

The following 3 pages are in this category, out of 3 total.