├── .gitignore ├── .ocamlformat ├── CHANGES.md ├── CONTRIBUTING.md ├── LICENSE.md ├── Makefile ├── README.md ├── dune ├── dune-project ├── postgres_async.opam ├── protocol ├── backend.ml ├── backend.mli ├── column_metadata.ml ├── column_metadata.mli ├── column_metadata_intf.ml ├── dune ├── frontend.ml ├── frontend.mli ├── import.ml ├── postgres_async_protocol.ml ├── shared.ml ├── shared.mli ├── types.ml └── types.mli ├── src ├── command_complete.ml ├── command_complete.mli ├── command_complete_intf.ml ├── dune ├── message_reading_intf.ml ├── or_pgasync_error.ml ├── or_pgasync_error.mli ├── pgasync_error.ml ├── pgasync_error.mli ├── postgres_async.ml ├── postgres_async.mli ├── postgres_async_intf.ml ├── query_sequencer.ml ├── query_sequencer.mli ├── row_handle.ml ├── row_handle.mli ├── ssl_mode.ml ├── ssl_mode.mli ├── string_escaping.ml └── string_escaping.mli └── test ├── dune ├── harness.ml ├── harness.mli ├── postgres_async_tests.ml ├── server-leaf_certificate.crt ├── server-leaf_certificate.pem ├── server-leaf_key.key ├── test_cancellation.ml ├── test_cancellation.mli ├── test_connect.ml ├── test_connect.mli ├── test_copy_in.ml ├── test_copy_in.mli ├── test_copy_out.ml ├── test_copy_out.mli ├── test_error_code.ml ├── test_error_code.mli ├── test_notify.ml ├── test_notify.mli ├── test_protocol_round_trip.ml ├── test_protocol_round_trip.mli ├── test_query.ml ├── test_query.mli ├── test_runtime_parameters.ml ├── test_runtime_parameters.mli ├── test_server_failure.ml ├── test_server_failure.mli ├── test_simple_query.ml ├── test_simple_query.mli ├── test_smoke.ml ├── test_smoke.mli ├── test_ssl.ml ├── test_ssl.mli ├── utils.ml └── utils.mli /.gitignore: -------------------------------------------------------------------------------- 1 | _build 2 | *.install 3 | *.merlin 4 | _opam 5 | 6 | -------------------------------------------------------------------------------- /.ocamlformat: -------------------------------------------------------------------------------- 1 | profile=janestreet 2 | -------------------------------------------------------------------------------- /CHANGES.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/janestreet/postgres_async/HEAD/CHANGES.md -------------------------------------------------------------------------------- /CONTRIBUTING.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/janestreet/postgres_async/HEAD/CONTRIBUTING.md -------------------------------------------------------------------------------- /LICENSE.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/janestreet/postgres_async/HEAD/LICENSE.md -------------------------------------------------------------------------------- /Makefile: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/janestreet/postgres_async/HEAD/Makefile -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/janestreet/postgres_async/HEAD/README.md -------------------------------------------------------------------------------- /dune: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /dune-project: -------------------------------------------------------------------------------- 1 | (lang dune 3.17) 2 | -------------------------------------------------------------------------------- /postgres_async.opam: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/janestreet/postgres_async/HEAD/postgres_async.opam -------------------------------------------------------------------------------- /protocol/backend.ml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/janestreet/postgres_async/HEAD/protocol/backend.ml -------------------------------------------------------------------------------- /protocol/backend.mli: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/janestreet/postgres_async/HEAD/protocol/backend.mli -------------------------------------------------------------------------------- /protocol/column_metadata.ml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/janestreet/postgres_async/HEAD/protocol/column_metadata.ml -------------------------------------------------------------------------------- /protocol/column_metadata.mli: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/janestreet/postgres_async/HEAD/protocol/column_metadata.mli -------------------------------------------------------------------------------- /protocol/column_metadata_intf.ml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/janestreet/postgres_async/HEAD/protocol/column_metadata_intf.ml -------------------------------------------------------------------------------- /protocol/dune: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/janestreet/postgres_async/HEAD/protocol/dune -------------------------------------------------------------------------------- /protocol/frontend.ml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/janestreet/postgres_async/HEAD/protocol/frontend.ml -------------------------------------------------------------------------------- /protocol/frontend.mli: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/janestreet/postgres_async/HEAD/protocol/frontend.mli -------------------------------------------------------------------------------- /protocol/import.ml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/janestreet/postgres_async/HEAD/protocol/import.ml -------------------------------------------------------------------------------- /protocol/postgres_async_protocol.ml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/janestreet/postgres_async/HEAD/protocol/postgres_async_protocol.ml -------------------------------------------------------------------------------- /protocol/shared.ml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/janestreet/postgres_async/HEAD/protocol/shared.ml -------------------------------------------------------------------------------- /protocol/shared.mli: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/janestreet/postgres_async/HEAD/protocol/shared.mli -------------------------------------------------------------------------------- /protocol/types.ml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/janestreet/postgres_async/HEAD/protocol/types.ml -------------------------------------------------------------------------------- /protocol/types.mli: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/janestreet/postgres_async/HEAD/protocol/types.mli -------------------------------------------------------------------------------- /src/command_complete.ml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/janestreet/postgres_async/HEAD/src/command_complete.ml -------------------------------------------------------------------------------- /src/command_complete.mli: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/janestreet/postgres_async/HEAD/src/command_complete.mli -------------------------------------------------------------------------------- /src/command_complete_intf.ml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/janestreet/postgres_async/HEAD/src/command_complete_intf.ml -------------------------------------------------------------------------------- /src/dune: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/janestreet/postgres_async/HEAD/src/dune -------------------------------------------------------------------------------- /src/message_reading_intf.ml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/janestreet/postgres_async/HEAD/src/message_reading_intf.ml -------------------------------------------------------------------------------- /src/or_pgasync_error.ml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/janestreet/postgres_async/HEAD/src/or_pgasync_error.ml -------------------------------------------------------------------------------- /src/or_pgasync_error.mli: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/janestreet/postgres_async/HEAD/src/or_pgasync_error.mli -------------------------------------------------------------------------------- /src/pgasync_error.ml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/janestreet/postgres_async/HEAD/src/pgasync_error.ml -------------------------------------------------------------------------------- /src/pgasync_error.mli: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/janestreet/postgres_async/HEAD/src/pgasync_error.mli -------------------------------------------------------------------------------- /src/postgres_async.ml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/janestreet/postgres_async/HEAD/src/postgres_async.ml -------------------------------------------------------------------------------- /src/postgres_async.mli: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/janestreet/postgres_async/HEAD/src/postgres_async.mli -------------------------------------------------------------------------------- /src/postgres_async_intf.ml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/janestreet/postgres_async/HEAD/src/postgres_async_intf.ml -------------------------------------------------------------------------------- /src/query_sequencer.ml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/janestreet/postgres_async/HEAD/src/query_sequencer.ml -------------------------------------------------------------------------------- /src/query_sequencer.mli: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/janestreet/postgres_async/HEAD/src/query_sequencer.mli -------------------------------------------------------------------------------- /src/row_handle.ml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/janestreet/postgres_async/HEAD/src/row_handle.ml -------------------------------------------------------------------------------- /src/row_handle.mli: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/janestreet/postgres_async/HEAD/src/row_handle.mli -------------------------------------------------------------------------------- /src/ssl_mode.ml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/janestreet/postgres_async/HEAD/src/ssl_mode.ml -------------------------------------------------------------------------------- /src/ssl_mode.mli: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/janestreet/postgres_async/HEAD/src/ssl_mode.mli -------------------------------------------------------------------------------- /src/string_escaping.ml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/janestreet/postgres_async/HEAD/src/string_escaping.ml -------------------------------------------------------------------------------- /src/string_escaping.mli: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/janestreet/postgres_async/HEAD/src/string_escaping.mli -------------------------------------------------------------------------------- /test/dune: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/janestreet/postgres_async/HEAD/test/dune -------------------------------------------------------------------------------- /test/harness.ml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/janestreet/postgres_async/HEAD/test/harness.ml -------------------------------------------------------------------------------- /test/harness.mli: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/janestreet/postgres_async/HEAD/test/harness.mli -------------------------------------------------------------------------------- /test/postgres_async_tests.ml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/janestreet/postgres_async/HEAD/test/postgres_async_tests.ml -------------------------------------------------------------------------------- /test/server-leaf_certificate.crt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/janestreet/postgres_async/HEAD/test/server-leaf_certificate.crt -------------------------------------------------------------------------------- /test/server-leaf_certificate.pem: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/janestreet/postgres_async/HEAD/test/server-leaf_certificate.pem -------------------------------------------------------------------------------- /test/server-leaf_key.key: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/janestreet/postgres_async/HEAD/test/server-leaf_key.key -------------------------------------------------------------------------------- /test/test_cancellation.ml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/janestreet/postgres_async/HEAD/test/test_cancellation.ml -------------------------------------------------------------------------------- /test/test_cancellation.mli: -------------------------------------------------------------------------------- 1 | (*_ Intentionally empty. *) 2 | -------------------------------------------------------------------------------- /test/test_connect.ml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/janestreet/postgres_async/HEAD/test/test_connect.ml -------------------------------------------------------------------------------- /test/test_connect.mli: -------------------------------------------------------------------------------- 1 | (*_ Intentionally empty. *) 2 | -------------------------------------------------------------------------------- /test/test_copy_in.ml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/janestreet/postgres_async/HEAD/test/test_copy_in.ml -------------------------------------------------------------------------------- /test/test_copy_in.mli: -------------------------------------------------------------------------------- 1 | (*_ Intentionally empty. *) 2 | -------------------------------------------------------------------------------- /test/test_copy_out.ml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/janestreet/postgres_async/HEAD/test/test_copy_out.ml -------------------------------------------------------------------------------- /test/test_copy_out.mli: -------------------------------------------------------------------------------- 1 | (*_ This signature is deliberately empty. *) 2 | -------------------------------------------------------------------------------- /test/test_error_code.ml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/janestreet/postgres_async/HEAD/test/test_error_code.ml -------------------------------------------------------------------------------- /test/test_error_code.mli: -------------------------------------------------------------------------------- 1 | (*_ Intentionally empty. *) 2 | -------------------------------------------------------------------------------- /test/test_notify.ml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/janestreet/postgres_async/HEAD/test/test_notify.ml -------------------------------------------------------------------------------- /test/test_notify.mli: -------------------------------------------------------------------------------- 1 | (*_ Intentionally empty. *) 2 | -------------------------------------------------------------------------------- /test/test_protocol_round_trip.ml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/janestreet/postgres_async/HEAD/test/test_protocol_round_trip.ml -------------------------------------------------------------------------------- /test/test_protocol_round_trip.mli: -------------------------------------------------------------------------------- 1 | (*_ Intentionally empty. *) 2 | -------------------------------------------------------------------------------- /test/test_query.ml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/janestreet/postgres_async/HEAD/test/test_query.ml -------------------------------------------------------------------------------- /test/test_query.mli: -------------------------------------------------------------------------------- 1 | (*_ Intentionally empty. *) 2 | -------------------------------------------------------------------------------- /test/test_runtime_parameters.ml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/janestreet/postgres_async/HEAD/test/test_runtime_parameters.ml -------------------------------------------------------------------------------- /test/test_runtime_parameters.mli: -------------------------------------------------------------------------------- 1 | (*_ Intentionally empty. *) 2 | -------------------------------------------------------------------------------- /test/test_server_failure.ml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/janestreet/postgres_async/HEAD/test/test_server_failure.ml -------------------------------------------------------------------------------- /test/test_server_failure.mli: -------------------------------------------------------------------------------- 1 | (*_ Intentionally empty. *) 2 | -------------------------------------------------------------------------------- /test/test_simple_query.ml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/janestreet/postgres_async/HEAD/test/test_simple_query.ml -------------------------------------------------------------------------------- /test/test_simple_query.mli: -------------------------------------------------------------------------------- 1 | (*_ Intentionally empty. *) 2 | -------------------------------------------------------------------------------- /test/test_smoke.ml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/janestreet/postgres_async/HEAD/test/test_smoke.ml -------------------------------------------------------------------------------- /test/test_smoke.mli: -------------------------------------------------------------------------------- 1 | (*_ Intentionally empty. *) 2 | -------------------------------------------------------------------------------- /test/test_ssl.ml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/janestreet/postgres_async/HEAD/test/test_ssl.ml -------------------------------------------------------------------------------- /test/test_ssl.mli: -------------------------------------------------------------------------------- 1 | (*_ Intentionally empty. *) 2 | -------------------------------------------------------------------------------- /test/utils.ml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/janestreet/postgres_async/HEAD/test/utils.ml -------------------------------------------------------------------------------- /test/utils.mli: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/janestreet/postgres_async/HEAD/test/utils.mli --------------------------------------------------------------------------------