DBSD_Init
Initializes the database security detection module and registers the callback function. The initialization is performed only once.
DBSD_RET_CODE DBSD_Init(const DBSD_Callbacks *cb, const char *logPath, const char *dataPath);
Parameters
Parameter |
Description |
Value Range |
Input/Output |
|---|---|---|---|
cb |
Callback function |
Non-empty |
Input |
logPath |
Log root directory. Run logs and detection results can be written to this directory. |
Non-empty |
Input |
dataPath |
Data directory, which is the root directory of the configuration file. |
Non-empty |
Input |
Return Values
- Success: DBSD_RET_OK(0)
- Failure: Error code
Parent topic: Reference for SQL Anomaly Detection