Exposing Data Views

See Using and Configuring the DataView Reader.

ostc_ServerSession::exposeAllDataViews()

void exposeAllDataViews(oscs_ConstString dbname);

Windows only

Exposes all the data views in the database named dbname.

You can call this function several times specifying different databases. Each data view is mapped to a Server operation whose name is the same as the data view's name.

You can expose only one database with a given name at a time. If you have exposed a data view from one database, and then attempt to expose a data view with the same name from another database, the attempt is silently ignored. Only the first data view will be accessible.

ostc_ServerSession::exposeDataView()

void exposeDataView(
      oscs_ConstString dbname, 
      oscs_ConstString viewname,
      oscs_ConstString operation_name = 0
);

Windows only

Exposes the data view named viewname in the database named dbname.

operation_name, if nonzero, specifies the name of the Server operation to which the data view is mapped. If operation_name is 0, data_view_name is used as the operation name.

viewname can also contain an SQL statement that customizes the data view defined in database_name. The SQL statement must follow SQL syntax rules. See Filtering and Ordering: SQL Support in DataView Reader.

You can expose only one database with a given name at a time. If you have exposed a data view from one database, and then attempt to expose a data view with the same name from another database, the attempt is silently ignored. Only the first data view will be accessible.



[previous] [next]