In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-04-05 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Database >
Share
Shulou(Shulou.com)06/01 Report--
Original: https://www.sqlite.org/c3ref/set_authorizer.html
Int sqlite3_set_authorizer (
Sqlite3*
Int (* xAuth) (void*,int,const char*,const char*,const char*,const char*)
Void * pUserData
);
This function registers an authorized callback function to a specified database handle, and the first parameter specifies the database handle. This callback function is called when the SQL statement is compiled by functions such as sqlite3_prepare or her variant sqlite3_prepare_v2,sqlite3_prepare16,sqlite3_prepare166_v2. If different operations are performed at different compilation points, the authorized callback function will be executed and returns whether the current operation is legal (At various points during the compilation process,as logic is beingcreated to perform various actions, the authorizer callback is invoked to seeif those actions are allowed). If the callback function returns SQLITE_OK, which means that the operation is allowed, SQLITE_IGNORE means that the specified operation is not allowed, but if compilation is allowed, SQLITE_DENY will return an error and reject the execution of the operation. If the callback function returns a value other than one of the above three types, the sqlite3_prepare_v2 function will trigger an error message (then the sqlite3_prepare_v2 () or equivalent call that triggered theauthorizer will fail with an error message.)
SQLITE_OK allows SQL to execute
SQLITE_DENY refuses SQL execution
SQLITE_IGNORE allows SQL execution, but an attempt to read a recordset returns NULL, and an attempt to write to a recordset is ignored
The first parameter of the authorized callback function will be set by the third function of sqlite3_set_authorizer. The second function is an integer opcode that specifies which operations are allowed. The third to sixth parameters are a string with a zero Terminator, and these three parameters contain what additional operational details are allowed by authorization.
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.