company logo

DBObjectHandle :: Open - Open database object handle

The function opens a database object handle. When an access block is opened for the object handle it will be closed before.

Return value:  Success ( logical  )

Implementation details

logical DBObjectHandle  :: Open ( ODABAClient &odaba_client, NString &data_source_name, PIACC access_mode=PI_Read, ::ResourceTypes local_ressources=RES_automatic )

This function opens a database object handle according to the specification in a data source. The passed access mode allows overwriting the access mode defined in the data source. The data source must be described either as section in the ini-file or as option in the configuration file passed to the application, or in the data catalog defined in the ini/configuration file.

  • odaba_client - ODABA Client Handle
  • data_source_name - Data source name

    The data source name is passed as 0-terminated string with a maximum length of 40 characters.

  • access_mode - Access mode Default: PI_Read
  • local_ressources - Resource type

    Depending on the resource type the database or dictionary is opened on the client or server side.

    Default: RES_automatic