Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore(deps) bump pgmoon from 1.14.0 to 1.15.0 #8908

Merged
merged 1 commit into from
Jun 8, 2022
Merged

Conversation

bungle
Copy link
Member

@bungle bungle commented Jun 6, 2022

Summary

Additions

Changes

  • The query method can now take additional arguments to cause the query to be sent using the extended query protocol with parameters from the arguments
  • Array deserialization is now aware of the NULL value and will return postgres.NULL instead of the string "NULL"
  • self.sock is no longer set to nil when calling disconnect or keepalive (you can reconnect again without allocating a new socket
  • Calling disconnect will now send a terminate message to the server before closing the socket, following the disconnection protocol previously, on some errors, the socket would be disconnected. This is no longer the case, if message processing fails then the function returns the error result but the socket is left as is so you can continue to attempt operations on it
  • escape_literal() can now take pgmoon.NULL as a value and will return NULL
  • convert_nulls is now a config option specified in the constructor
  • Minor performance optimizations to batch together network operations where possible

Misc

  • Substantial updates to documentation: detailing new features, usage tips and examples, and other organizational updates
  • Add test suite runner for openresty using resty command

@bungle bungle requested a review from a team as a code owner June 6, 2022 15:21
### Summary

#### Additions

- Add support for Postgres extended query protocol (using text transport)
  See https://github.com/leafo/pgmoon#extended-and-simple-query-protocols
- Add support for pgmoon_serialize metamethod on objects to allow objects
  to describe how they can be serialized
  See https://github.com/leafo/pgmoon#custom-type-serializer
- Implement pgmoon_serialize for the included PostgresArray type
- Add the set_type_deserializer method for easier configuration of
  deserialization (the undocumented set_type_oid method is deprecated
   See https://github.com/leafo/pgmoon#custom-type-deserializer

#### Changes

- The query method can now take additional arguments to cause the query
  to be sent using the extended query protocol with parameters from the
  arguments
- Array deserialization is now aware of the NULL value and will return
  postgres.NULL instead of the string "NULL"
- self.sock is no longer set to nil when calling disconnect or keepalive
  (you can reconnect again without allocating a new socket
- Calling disconnect will now send a terminate message to the server before
  closing the socket, following the disconnection protocol previously,
  on some errors, the socket would be disconnected. This is no longer the
  case, if message processing fails then the function returns the error
  result but the socket is left as is so you can continue to attempt
  operations on it
- escape_literal() can now take pgmoon.NULL as a value and will return NULL
- convert_nulls is now a config option specified in the constructor
- Minor performance optimizations to batch together network operations
  where possible

#### Misc

- Substantial updates to documentation: detailing new features, usage tips
  and examples, and other organizational updates
- Add test suite runner for openresty using resty command
@aboudreault
Copy link
Contributor

the enterprise pgmoon was just updated to 1.14 IIRC. another sync of our private fork will be required. //cc @gruceo

Copy link
Contributor

@mayocream mayocream left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

@bungle bungle merged commit 99b066f into master Jun 8, 2022
@bungle bungle deleted the chore/pgmoon-1.15.0 branch June 8, 2022 07:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants