Commit Graph

18 Commits

Author SHA1 Message Date
63c82019ab Check if client lib supports multi hosts
Since MariaDB Connector/C 3.3.0 host parameter may contain multiple hosts,
separated by a comma for simple failover. If MariaDB Connector/Python uses
a MariaDB Connector/C library < 3.3.0 an exception will be raised if host
parameter contains a comma.
2022-01-23 20:40:59 +01:00
811cc1c5f7 Check if object was closed:
When accessing methods or properties of connection and cursor objects
we now check if the object or parent object was closed and raise an
exception.
2022-01-16 20:59:58 +01:00
aaba6e2e11 Fix for CONPY-187:
For detecting server bulk capabilities extended server capabitilies
(instead of standard capabilities) have to be checked.

Kudos to Diego Dupin
2021-12-19 19:52:14 +01:00
263f428213 CONPY-184
Display status of connection, cursor and pool class in
string representation.

If an object (cursor, class, connection pool) was closed, the
string representation (tp_repr) now shows the status of the object.

Example:

>>> import mariadb
>>> connection=mariadb.connect()
>>> connection
<mariadb.connection connected to 'localhost' at 0x7f94d77c3b40>
>>> connection.close()
>>> connection
<mariadb.connection (closed) at 0x7f94d77c3b40>
2021-12-13 05:55:10 +01:00
aa6edc38cb Updated documentation 2021-08-21 18:09:48 +02:00
18b81fd282 Documentation fixes 2021-08-18 07:19:48 +02:00
6bbe0260a7 Moved MemberDef properties
Mostly all properties moved to Python code
2021-08-16 10:08:15 +02:00
9ac0551ed1 Default mode for cursor changed:
Due to several incompatibilites (but also MDEV-23768, where errors
can't be triggered in unbuffered) we decided to switch the default
mode for cursor class for buffered from False to True.
2021-08-05 08:32:20 +02:00
47ca11d921 Documentation update 2021-08-01 10:31:10 +02:00
ebb09cf56e Documentation 2021-07-28 06:55:10 +02:00
5a81686f4c Documentation work 2021-07-26 06:54:38 +02:00
6c6e1005eb remove commit/rollback from c code 2021-07-23 11:07:43 +02:00
ea97f66769 connection class:
moved kill method to python class
2021-07-22 16:06:27 +02:00
5870f5d4d7 cursor:
added keyword quote_sequences (default=true)

connection:

moved tpc functions to native python
moved autocommit to native python
2021-07-22 14:15:53 +02:00
2bd40ca1de Test fixes 2021-07-18 18:16:38 +02:00
84df56ce40 connection and cursor class are now written in
native python
2021-07-12 09:46:05 +02:00
27730cd018 Moved more methods and propertys from C to Python code 2021-03-21 22:44:42 +01:00
aa65cc853a Exchanged C written connection pool class by native python class. 2021-01-18 06:11:03 +01:00