File tree 1 file changed +14
-4
lines changed
1 file changed +14
-4
lines changed Original file line number Diff line number Diff line change @@ -447,6 +447,17 @@ Module constants
447
447
This flag may be combined with :const: `PARSE_COLNAMES ` using the ``| ``
448
448
(bitwise or) operator.
449
449
450
+ .. data :: SQLITE_OK
451
+ SQLITE_DENY
452
+ SQLITE_IGNORE
453
+
454
+ Flags that should be returned by the *authorizer_callback * callable
455
+ passed to :meth: `Connection.set_authorizer `, to indicate whether:
456
+
457
+ * Access is allowed (:const: `!SQLITE_OK `),
458
+ * The SQL statement should be aborted with an error (:const: `!SQLITE_DENY `)
459
+ * The column should be treated as a ``NULL `` value (:const: `!SQLITE_IGNORE `)
460
+
450
461
.. data :: apilevel
451
462
452
463
String constant stating the supported DB-API level. Required by the DB-API.
@@ -822,10 +833,9 @@ Connection objects
822
833
823
834
Register callable *authorizer_callback * to be invoked for each attempt to
824
835
access a column of a table in the database. The callback should return
825
- :const: `SQLITE_OK ` if access is allowed, :const: `SQLITE_DENY ` if the entire SQL
826
- statement should be aborted with an error and :const: `SQLITE_IGNORE ` if the
827
- column should be treated as a NULL value. These constants are available in the
828
- :mod: `!sqlite3 ` module.
836
+ one of :const: `SQLITE_OK `, :const: `SQLITE_DENY `, or :const: `SQLITE_IGNORE `
837
+ to signal how access to the column should be handled
838
+ by the underlying SQLite library.
829
839
830
840
The first argument to the callback signifies what kind of operation is to be
831
841
authorized. The second and third argument will be arguments or ``None ``
You can’t perform that action at this time.
0 commit comments