(module protocol-structures mzscheme
(provide (struct msg ())
(struct MessageResponse (type message))
(struct AsciiRow (fields))
(struct Authentication (method))
(struct AuthenticationEncryptedPassword (salt))
(struct AuthenticationMD5Password (salt))
(struct AuthenticationSCM (data))
(struct BackendKeyData (process-id secret-key))
(struct BinaryRow (fields))
(struct CancelRequest (process-id secret-key))
(struct CompletedResponse (command))
(struct CopyDataRows (rows))
(struct CopyInResponse ())
(struct CopyOutResponse (rows))
(struct CursorResponse (name))
(struct EmptyQueryResponse (unused))
(struct ErrorResponse ())
(struct FatalErrorResponse (level))
(struct FunctionCall (oid arglist))
(struct FunctionResultResponse (result))
(struct FunctionVoidResponse ())
(struct NoticeResponse ())
(struct NotificationResponse (process-id condition))
(struct Query (sql))
(struct PasswordPacket (password))
(struct ReadyForQuery ())
(struct RowDescription (fields))
(struct FieldInfo (name oid tsize tmod))
(struct StartupPacket (ver db user cmdline unused tty))
(struct Terminate ())
)
(define inspector (make-inspector))
(define-struct msg () inspector)
(define-struct (MessageResponse msg) (type message) inspector)
(define-struct (AsciiRow msg) (fields) inspector)
(define-struct (Authentication msg) (method) inspector)
(define-struct (AuthenticationEncryptedPassword Authentication)
(salt) inspector)
(define-struct (AuthenticationMD5Password Authentication) (salt) inspector)
(define-struct (AuthenticationSCM Authentication) (data) inspector)
(define-struct (BackendKeyData msg) (process-id secret-key) inspector)
(define-struct (BinaryRow msg) (fields) inspector)
(define-struct (CancelRequest msg) (process-id secret-key) inspector)
(define-struct (CompletedResponse msg) (command) inspector)
(define-struct (CopyDataRows msg) (rows) inspector)
(define-struct (CopyInResponse msg) () inspector)
(define-struct (CopyOutResponse msg) (rows) inspector)
(define-struct (CursorResponse msg) (name) inspector)
(define-struct (EmptyQueryResponse msg) (unused) inspector)
(define-struct (ErrorResponse MessageResponse) () inspector)
(define-struct (FatalErrorResponse ErrorResponse) (level) inspector)
(define-struct (FunctionCall msg) (oid arglist) inspector)
(define-struct (FunctionResultResponse msg) (result) inspector)
(define-struct (FunctionVoidResponse msg) () inspector)
(define-struct (NoticeResponse MessageResponse) () inspector)
(define-struct (NotificationResponse msg) (process-id condition) inspector)
(define-struct (PasswordPacket msg) (password) inspector)
(define-struct (Query msg) (sql) inspector)
(define-struct (ReadyForQuery msg) () inspector)
(define-struct (RowDescription msg) (fields) inspector)
(define-struct FieldInfo (name oid tsize tmod) inspector)
(define-struct (StartupPacket msg) (ver db user cmdline unused tty) inspector)
(define-struct (Terminate msg) () inspector)
)