SE_layer_truncate

Deletes all records from a layer

Usage syntax

LONG SE_layer_truncate (SE_CONNECTION connection, const CHAR *table, const CHAR *column);

Parameters
connection The connection handle
table The table name
column The spatial column name
Description

SE_layer_truncate deletes the shapes in the spatial column of a spatially-enabled table. It does not remove the layer definition. This function can be significantly faster than issuing a delete statement with SE_stream_prepare_sql.

Returns

SE_SUCCESS
SE_DB_IO_ERROR

SE_INVALID_PARAM_VALUE

SE_INVALID_POINTER

SE_LAYER_NOEXIST

SE_NET_FAILURE

SE_LOCK_CONFLICT

SE_NO_PERMISSIONS

SE_OUT_OF_LOCKS

SE_SDE_NOT_STARTED

SE_STREAM_IN_PROGRESS

SE_TRANS_IN_PROGRESS