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

Pass Session to all Encoders/Decoders, implement static operator #18

Merged
merged 2 commits into from
Sep 2, 2021

Conversation

deusaquilus
Copy link
Contributor

@deusaquilus deusaquilus commented Sep 2, 2021

In zio/zio-quill#2219, Context.Session began to be passed into all encoders in order to be able to properly implement Cassandra UDTs into non-session-aware contexts (e.g. the ZIO-Cassandra ones) as well as open the door to other capabilities (e.g. CLOB encoders). This PR does the equivalent change in ProtoQuill. Since ProtoQuill does not yet have a Cassandra context, it does not actually have this capability but it will soon be built. Before that however, I would like to align the ProtoQuill API with the Quill API and this is a step in the process.

@deusaquilus deusaquilus merged commit 9a8d706 into master Sep 2, 2021
@deusaquilus deusaquilus changed the title Pass Session to all Encoders/Decoders allowing UDT Encoding without local session varaible in contexts e.g. ZIO and others Pass Session to all Encoders/Decoders, implement static operator Sep 2, 2021
deusaquilus added a commit that referenced this pull request Sep 23, 2021
…ocal session varaible in contexts e.g. ZIO and others (#18)

* Implement static operator for splicing constants e.g. static(Constants.Foo)

* Pass Session to all Encoders/Decoders allowing UDT Encoding without local session varaible in contexts e.g. ZIO and others
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant