epgsql_pool.hrl 605 B

12345678910111213141516171819
  1. -define(MAX_RECONNECT_TIMEOUT, 1000*30).
  2. -define(MIN_RECONNECT_TIMEOUT, 100).
  3. -record(epgsql_params, {
  4. host :: string(),
  5. port :: non_neg_integer(),
  6. username :: string(),
  7. password :: string(),
  8. database :: string()
  9. }).
  10. -record(epgsql_connection, {
  11. connection :: pid(),
  12. params :: #epgsql_params{},
  13. connection_timeout :: non_neg_integer(),
  14. query_timeout :: non_neg_integer(),
  15. reconnect_attempt = 0 :: non_neg_integer(),
  16. reconnect_timeout = 0 :: non_neg_integer()
  17. }).