zut.db.Cursor
- class zut.db.Cursor(*args, **kwargs)
Bases:
Protocol
- __init__(*args, **kwargs)
Methods
__init__
(*args, **kwargs)close
()execute
(sql[, params])Attributes
The metadata for the columns returned in the last SQL SELECT statement, in the form of a list of tuples.
The rowid of the last inserted row.
The number of rows modified by the last SQL statement.
- property description: tuple[tuple[str, type | int | str | None, int | None, int | None, int | None, int | None, bool | int | None]]
The metadata for the columns returned in the last SQL SELECT statement, in the form of a list of tuples. Each tuple contains seven fields:
name of the column (or column alias)
type information (pyodbc: type code, the Python-equivalent class of the column, e.g. str for VARCHAR)
display size (pyodbc: does not set this value)
internal size (in bytes)
precision
scale
nullable (True/False)
- property lastrowid: int | None
The rowid of the last inserted row. None if no inserted rowid.
- property rowcount: int | None
The number of rows modified by the last SQL statement. Has the value of -1 or None if the number of rows is unknown or unavailable.