pb_server library

Support for doing something awesome.

More dartdocs go here.

Classes

Bounds
Describes the bounds of PostgreSQL range types.
Box
Describes PostgreSQL's geometric type: box.
Channels
Circle
Codec
Encoder and decoder for a value stored in Postgresql.
CodecContext
Provides access to connection and database information, and also to additional codecs.
Connection
ConnectionInfo
Provides runtime information about the current connection.
ConnectionSettings
ContinuousRange<T>
Describes PostgreSQL's continuous builtin range types:
DatabaseInfo
Tracks and caches the type and name info of relations (tables, views, indexes...).
DateRange
Describes PostgreSQL's builtin daterange
DateTimeRange
DiscreteRange<T>
EncodedValue
Represents the bytes of a received (field) or sent (parameter) value.
Endpoint
EndpointSelection
EndpointSelectorContext<L>
Interval
In Postgresql interval values are stored as months, days, and microseconds. This is done because the number of days in a month varies, and a day can have 23 or 25 hours if a daylight savings time adjustment is involved.
IntRange
Describes PostgreSQL's builtin int4range and int8range
Line
Describes PostgreSQL's geometric type: line.
LineSegment
Describes PostgreSQL's geometric type: lseg.
LSN
LSN is a PostgreSQL Log Sequence Number.
Notification
Represents a notification from the Postgresql server.
Path
Describes PostgreSQL's geometric type: path.
Point
Describes PostgreSQL's geometric type: point.
Polygon
Describes PostgreSQL's geometric type: polygon.
Pool<L>
A connection pool that may select endpoints based on the requested locality L of the data.
PoolSettings
Range<T>
Result
ResultRow
ResultSchema
ResultSchemaColumn
ResultStream
ResultStreamSubscription
Retry<R>
The settings that control the retry of SessionExecutor.run and SessionExecutor.runTx methods.
ServerArgs
Session
SessionExecutor
SessionSettings
Sql
A description of a SQL query as interpreted by this package.
Statement
Time
Describes PostgreSQL's time without time zone type.
TransactionSettings
The characteristics of the current transaction.
TsQuery
The tsquery type represents a search query for text search.
TsVector
The tsvector data type stores a list of TsWords, lexemes with optional integer positions and weights.
TsWord
A normalized word (lexeme), alongside with the positional information.
TsWordPos
A position normally indicates the source word's location in the document. Positional information can be used for proximity ranking. Position values can range from 1 to 16383; larger numbers are silently set to 16383. Duplicate positions for the same lexeme are discarded.
TxSession
A Session with transaction-related helper method(s).
Type<T extends Object>
Supported data types.
TypedValue<T extends Object>
TypeRegistry
Contains the static registry of type mapping from substitution names to type OIDs, their codec and the generic type encoders (for un-typed values).
UndecodedBytes
Describes a generic bytes string value..

Enums

AccessMode
The transaction access mode determines whether the transaction is read/write or read-only.
Bound
Describes PostgreSQL range bound state
DeferrableMode
The deferrable mode of the transaction.
EncodingFormat
Describes whether the bytes are formatted as text (e.g. 12) or binary (e.g. 0x0c)
IsolationLevel
The isolation level of a transaction determines what data the transaction can see when other transactions are running concurrently.
QueryMode
Options for the Query Execution Mode
ReplicationMode
Streaming Replication Protocol Options
Severity
The severity level of a PgException.
SslMode
TsWeight
The weight of the TsWord.

Constants

appException → const String
appSchemaName → const String
dbContainerName → const String
dbPort → const int
maxServiceSets → const int
milliSecondsPerDay → const int
pb → const String
pbYaml → const String
postgres → const String

Properties

log → Logger
final

Functions

addVerboseFlag(ArgParser parser) → dynamic
childLogger({required String name}) → Logger
initLogging(String name, bool verbose) → dynamic
run(ServerArgs serverArgs, List<Service> services) → dynamic

Typedefs

Day = int
EncoderFn = FutureOr<EncodedValue?> Function(TypedValue<Object> input, CodecContext context)
Encodes the input value and returns an EncodedValue object.
EndpointSelector<L> = FutureOr<EndpointSelection> Function(EndpointSelectorContext<L> context)
MicroSecond = int
MilliSecond = int

Exceptions / Errors

BadCertificateException
Exception thrown when server certificate validate failed.
ForeignKeyViolationException
PgException
Exception thrown by the package (client or server side).
ServerException
Exception thrown by the server.
UniqueViolationException