closed

Overview

In 1.1:

Indicates if the cursor is closed and can't be reused

In 1.0:

Indicates if the cursor is closed and can't be reused. (read only)

See also: MariaDB Connector/Python 1.1 and in 1.0

EXAMPLES

import mariadb

conn = mariadb.connect(
    host = 'localhost',
    user = 'root',
    password = 'secret',
    )

cursor = conn.cursor()

print(cursor.closed) # Prints: False

CHANGE HISTORY

Release Series

History

1.1

  • Present starting in MariaDB Connector/Python 1.1.2.

1.0

  • Present starting in MariaDB Connector/Python 1.0.0.