gatelogue_types.GD
- class gatelogue_types.GD(database: str | bytes | PathLike[str] | PathLike[bytes] = ':memory:')
Bases:
objectMain class that contains an
sqlite3.ConnectionMethods
__init__([database])create(sources[, database, has_sources])Internal Use
drop_sources([cur])Drop all
*Sourcetablesfrom_bytes(data)from_bytes_readonly(data)get(*[, sources, getter])get_async(*[, sources, getter])get_node(i[, ty])Get a single node
nodes([ty])Get all nodes, optionally of a specific type.
Attributes
Whether the database has sources
Time that the aggregation of the data was done
Version number of the database format
Connection to the underlying SQL database
- conn: Connection
Connection to the underlying SQL database
- classmethod create(sources: list[str], database=':memory:', *, has_sources: bool = True) Self
Internal Use
- async classmethod get_async(*, sources: bool = False, getter: Callable[[str], Awaitable[bytes]] | None = None)