mirror of
https://github.com/mariadb-corporation/mariadb-connector-python.git
synced 2025-08-02 13:56:54 +00:00

Fixed various coding style stuff detected by flake8. Added .pre-commit-config.yaml: With command pre_commit install a hook for flake8 will be installed.
20 lines
354 B
Python
20 lines
354 B
Python
'''
|
|
MariaDB indicator variables
|
|
|
|
Indicator values are used in executemany() method of cursor class to
|
|
indicate special values.
|
|
'''
|
|
|
|
|
|
class MrdbIndicator():
|
|
indicator = 0
|
|
|
|
def __init__(self, indicator):
|
|
self.indicator = indicator
|
|
|
|
|
|
NULL = MrdbIndicator(1)
|
|
DEFAULT = MrdbIndicator(2)
|
|
IGNORE = MrdbIndicator(3)
|
|
IGNORE_ROW = MrdbIndicator(4)
|