Skip to content

Commit

Permalink
- Documentation fixes
Browse files Browse the repository at this point in the history
- removed COMMAND constants
  • Loading branch information
9EOR9 committed Apr 3, 2022
1 parent 55ce15a commit 9ae99cd
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 44 deletions.
5 changes: 4 additions & 1 deletion mariadb/constants/CLIENT.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,10 @@
''' MariaDB client flags
'''
MariaDB client flags (internal use only).
These flags are used when establishing a connection to a MariaDB
database server or to check the capabilities of a MariaDB server.
Client flags are defined in module *mariadb.constants.CLIENT_FLAG*
'''

MYSQL = 1 # MariaDB
Expand Down
36 changes: 0 additions & 36 deletions mariadb/constants/COMMAND.py

This file was deleted.

7 changes: 5 additions & 2 deletions mariadb/constants/FIELD_FLAG.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,10 @@
"""MariaDB FIELD_FLAG Constants
These constants represent the various field flags that are
supported by MariaDB.
These constants represent the various field flags. As an addition
to the DBAPI 2.0 standard (PEP-249) these flags are returned as
eigth element of the cursor description attribute.
Field flags are defined in module *mariadb.constants.FIELD_FLAG*
"""

# Source: mariadb_com.h (MariaDB Connector(C)
Expand Down
11 changes: 6 additions & 5 deletions mariadb/constants/FIELD_TYPE.py
Original file line number Diff line number Diff line change
@@ -1,10 +1,11 @@
"""MariaDB FIELD_TYPE Constants
These constants represent the various field types that are
supported by MariaDB.
"""
MariaDB FIELD_TYPE Constants
These constants represent the field types supported by MariaDB.
The field type is returned as second element of cursor description attribute.
# Source: mariadb_com.h (MariaDB Connector(C)
Field types are defined in module *mariadb.constants.FIELD_TYPE*
"""

DECIMAL = 0
TINY = 1
Expand Down

0 comments on commit 9ae99cd

Please sign in to comment.