firebird.lib.gstat¶
Enums¶
- class firebird.lib.gstat.DbAttribute(value, names=None, *, module=None, qualname=None, type=None, start=1, boundary=None)[source]¶
Bases:
Enum
Database attributes stored in header page clumplets.
- ACTIVE_SHADOW = 'active shadow'¶
- BACKUP_LOCK = 'backup lock'¶
- BACKUP_MERGE = 'backup merge'¶
- BACKUP_WRONG = 'wrong backup state'¶
- NO_RESERVE = 'no reserve'¶
- NO_SHARED_CACHE = 'shared cache disabled'¶
- READ_ONLY = 'read only'¶
- SHUTDOWN_FULL = 'full shutdown'¶
- SHUTDOWN_MULTI = 'multi-user maintenance'¶
- SHUTDOWN_SINGLE = 'single-user maintenance'¶
- WRITE = 'force write'¶
Dataclasses¶
Classes¶
- class firebird.lib.gstat.StatDatabase[source]¶
Bases:
object
Firebird database statistics (produced by gstat).
- has_encryption_stats() bool [source]¶
Returns True if instance contains information about database encryption.
- Return type:
- has_index_stats() bool [source]¶
Returns True if instance contains information about indices.
- Return type:
- has_row_stats() bool [source]¶
Returns True if instance contains information about table rows.
- Return type:
- has_system() bool [source]¶
Returns True if instance contains information about system tables.
- Return type:
- has_table_stats() bool [source]¶
Returns True if instance contains information about tables.
Important
This is not the same as check for empty
tables
list. When gstat is run with-i
without-d
option,tables
list contains instances that does not have any other information about table but table name and its indices.- Return type:
- attributes: List[DbAttribute]¶
Database attributes
- class firebird.lib.gstat.StatTable[source]¶
Bases:
object
Statisctics for single database table.
- distribution: FillDistribution¶
Data page fill distribution statistics
- class firebird.lib.gstat.StatIndex(table)[source]¶
Bases:
object
Statisctics for single database index.
- distribution: FillDistribution¶
Index page fill distribution statistics