pub unsafe extern "C" fn GDALDatasetSetQueryLoggerFunc(
    hDS: GDALDatasetH,
    pfnQueryLoggerFunc: GDALQueryLoggerFunc,
    poQueryLoggerArg: *mut c_void
) -> bool
Expand description

Sets the SQL query logger callback.

When supported by the driver, the callback will be called with the executed SQL text, the error message, the execution time in milliseconds, the number of records fetched/affected and the client status data.

A value of -1 in the execution time or in the number of records indicates that the values are unknown.

@param hDS Dataset handle. @param pfnQueryLoggerFunc Callback function @param poQueryLoggerArg Opaque client status data @return true in case of success. @since GDAL 3.7