[][src]Crate pgtest

pgtest is a Postgres wire protocol tester using datadriven test files. It can be used to send specific messages to any Postgres-compatible server and record received messages.

The following datadriven directives are supported:

Supported send types:

Supported until arguments:

For example, to execute a simple prepared statement:

send
Parse {"query": "SELECT $1::text, 1 + $2::int4"}
Bind {"values": ["blah", "4"]}
Execute
Sync
----

until
ReadyForQuery
----
ParseComplete
BindComplete
DataRow {"fields":["blah","5"]}
CommandComplete {"tag":"SELECT 1"}
ReadyForQuery {"status":"I"}

Structs

Bind
CommandComplete
DataRow
ErrorField
ErrorResponse
Execute
Field
Parse
PgTest
Query
ReadyForQuery
RowDescription

Functions

run_test
walk