DatabaseInfo class

Tracks and caches the type and name info of relations (tables, views, indexes...).

Currently it only collects and caches RelationMessage instances.

The instance may be shared between connection pool instances.

TODO: Implement active querying using pg_class like the below query: "SELECT relname FROM pg_class WHERE relkind='r' AND oid = ?", https://www.postgresql.org/docs/current/catalog-pg-class.html

Constructors

DatabaseInfo.new()

Properties

hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

getColumnTypeOidByRelationIdAndColumnIndex({required int relationId, required int columnIndex}) Future<int?>
Returns the type OID for relationId and columnIndex.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited