records.hrl 740 B

1234567891011121314151617181920
  1. %% --- Records ---
  2. %% Returned by parse_handshake/1.
  3. -record(handshake, {server_version :: binary(),
  4. connection_id :: integer(),
  5. capabilities :: integer(),
  6. character_set :: integer(),
  7. status :: integer(),
  8. auth_plugin_data :: binary(),
  9. auth_plugin_name :: binary()}).
  10. %% Records returned by parse_response/1.
  11. -record(ok_packet, {affected_rows :: integer(),
  12. insert_id :: integer(),
  13. status :: integer(),
  14. warning_count :: integer(),
  15. msg :: binary()}).
  16. -record(error_packet, {code, state, msg}).
  17. -record(eof_packet, {status, warning_count}).