shapito: update README.md

This commit is contained in:
Dmitry Simonenko 2017-06-08 16:17:16 +03:00
parent c26406d96d
commit 029545ba1f
1 changed files with 53 additions and 3 deletions

View File

@ -1,30 +1,53 @@
shapito
--------
**shapito*
PostgreSQL protocol-level client C library.
**API REFERENCE*
**API REFERENCE**
**PostgreSQL packet validators**
```C
/* Validate StartupMessage, CancelRequest or SSLRequest */
so_read_startup()
/* Validate any other PostgreSQL packet */
so_read()
```
**Frontend to Backend messages**
```C
/* StartupMessage */
so_fewrite_startup_message()
/* CancelRequest */
so_fewrite_cancel()
/* SSLRequest */
so_fewrite_ssl_request()
/* Terminate */
so_fewrite_terminate()
/* PasswordMessage */
so_fewrite_password()
/* Query */
so_fewrite_query()
/* Parse */
so_fewrite_parse()
/* Bind */
so_fewrite_bind()
/* Describe */
so_fewrite_describe();
/* Execute */
so_fewrite_execute();
/* Sync */
so_fewrite_sync();
```
@ -38,21 +61,48 @@ so_feread_parameter();
**Backend to Frontend messages**
```C
/* ErrorResponse */
so_bewrite_error()
so_bewrite_error_fatal()
so_bewrite_error_panic()
/* NoticeResponse */
so_bewrite_notice()
/* AuthenticationOk */
so_bewrite_authentication_ok()
/* AuthenticationCleartextPassword */
so_bewrite_authentication_clear_text()
/* AuthenticationMD5Password */
so_bewrite_authentication_md5()
/* BackendKeyData */
so_bewrite_backend_key_data()
/* ParameterStatus */
so_bewrite_parameter_status()
/* EmptyQueryResponse */
so_bewrite_empty_query()
/* CommandComplete */
so_bewrite_complete()
/* ReadyForQuery */
so_bewrite_ready()
/* ParseComplete */
so_bewrite_parse_complete()
/* BindComplete */
so_bewrite_bind_complete()
/* PortalSuspended */
so_bewrite_portal_suspended()
/* NoData */
so_bewrite_no_data()
```