SE_stream_query_logfile

Initiates a query on a log file

Usage syntax

LONG SE_stream_query_logfile
(SE_STREAM stream,
const CHAR *logfile,
SHORT num_columns,
const CHAR **columns,
const SE_SQL_CONSTRUCT *construct);

Parameters
stream The stream handle
logfile The log file name
num_columns The number of table columns in the array
columns An array of column names
construct The SQL constructor
Description

SE_stream_query_logfile initiates a log file query using a selected set of columns and an SE_SQL_CONSTRUCT structure for the WHERE clause. The log file identifies which features the selection will process. The SE_SQL_CONSTRUCT structure is:

typedef struct {

    LONG    num_tables;        /* Number of tables in join */

    CHAR  **tables;            /* Table names */

    CHAR   *where;             /* Where clause */

} SE_SQL_CONSTRUCT;

The WHERE clause cannot contain any ORDER BY or GROUP BY clauses.

Returns

SE_SUCCESS
SE_ATTR_CONV_ERROR

SE_ATTR_NOEXIST

SE_CONNECTION_IN_USE

SE_CONNECTION_LOCKED

SE_INVALID_PARAM_VALUE

SE_DB_IO_ERROR

SE_INVALID_POINTER

SE_INVALID_ROW_ID_LAYER

SE_LOAD_ONLY_LAYER

SE_INVALID_SQL

SE_LAYER_MISMATCH

SE_LAYER_NOEXIST

SE_LOG_IO_ERROR

SE_LOG_NOACCESS

SE_LOG_NOEXIST

SE_MULTIPLE_SPATIAL_COLS

SE_NET_FAILURE

SE_NO_PERMISSIONS

SE_OUT_OF_CLMEM

SE_OUT_OF_SVMEM

SE_SDE_NOT_STARTED

SE_STREAM_IN_PROGRESS

SE_TABLE_NOEXIST

Notes

∙  This function is similar to SE_stream_query except that the data source is a log file.