dbsync_core: Core module

Table 1. Core module types
Type Description
TYPE t_dbsync_source RECORD
    app_id dbsync_core.t_app_id,
    protocol STRING,
    authority RECORD
        host STRING,
        port INTEGER
    END RECORD,
    service_name STRING,
    use_gas BOOLEAN,
    gas RECORD
        connector STRING,
        group STRING
    END RECORD,
    sso RECORD
        idp_issuer STRING,
        client_id STRING,
        client_secret STRING
    END RECORD
END RECORD
  1. For details about t_dbsync_source fields, see Client configuration file.
The t_dbsync_source type defines a record that contains source parameters for DB Sync client apps to connect to the DB Sync server.
TYPE t_dbsync_event RECORD
       -- internal, subject of changes
END RECORD
The t_dbsync_event type defines a record that contains DB Sync event data.
TYPE t_dbsync_event_array DYNAMIC ARRAY OF t_dbsync_event
The t_dbsync_event_array type defines a dynamic array of DB Sync events.
TYPE t_tabinfo DYNAMIC ARRAY OF t_tabinfo_rec
The t_tabinfo type defines a dynamic array of SQL table DB Sync information.
TYPE t_tabinfo_rec RECORD
    table_name dbsync_core.t_table_name,
    last_user_mtime dbsync_core.t_mtime,
    last_temp_mtime dbsync_core.t_mtime,
    can_insert CHAR(1),
    can_update CHAR(1),
    can_delete CHAR(1)
END RECORD
The t_tabinfo_rec type defines information about an SQL table of the application.
Table 2. Core module functions
Function Description
FUNCITON read_dbsync_source_file(
      filename STRING,
      dbsync_source t_dbsync_source
  )
  RETURNS INTEGER
Load the client source file with parameters.
FUNCTION enter_user_credentials(
      ttl STRING,
      uid STRING
  )
  RETURNS INTEGER, STRING, STRING
Input form to enter user ID and password.