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

feat: add support for clickhouse as the engine #255

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

alipourhabibi
Copy link

Add support for clickhouse as the engine for arrays and custom types specified in proto/types/types.proto file

Add support for clickhouse as the engine for for arrays and custom types
specified in proto/types/types.proto file
@alipourhabibi alipourhabibi marked this pull request as draft December 11, 2023 09:18
@alipourhabibi alipourhabibi marked this pull request as ready for review December 11, 2023 09:19
@@ -151,6 +152,8 @@ func New(opts protogen.Options, request *pluginpb.CodeGeneratorRequest) (*ORMBui

if strings.EqualFold(params["engine"], "postgres") {
builder.dbEngine = ENGINE_POSTGRES
} else if strings.EqualFold(params["engine"], "clickhouse") {
Copy link
Contributor

Choose a reason for hiding this comment

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

Since now we're introducing a new engine, its high time we modularize it by refactoring it. May be we can define an interface & include the methods which are different for different engines.

Copy link
Author

Choose a reason for hiding this comment

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

@chinmayb Should i start working on this new refactoring you talked about?

Copy link
Contributor

Choose a reason for hiding this comment

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

yes please

Copy link
Author

Choose a reason for hiding this comment

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

sure, i will open a new PR when i'm done with that

@chinmayb chinmayb requested a review from Calebjh December 15, 2023 08:50
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.

2 participants