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

Allowing get dialect in serialzier #6714

Open
iseki0 opened this issue Nov 29, 2023 · 1 comment
Open

Allowing get dialect in serialzier #6714

iseki0 opened this issue Nov 29, 2023 · 1 comment
Assignees

Comments

@iseki0
Copy link

iseki0 commented Nov 29, 2023

Describe the feature

Currently, the serializer interface is:

type SerializerInterface interface {
	Scan(ctx context.Context, field *Field, dst reflect.Value, dbValue interface{}) error
	SerializerValuerInterface
}

Add new interface/method with new argument of *gorm.DB.

Motivation

In PostgreSQL, the bytea type should be serialized as \x0123456789, but in other database it's 0x123456789.
Not only bytea, many other datatypes need be serialized in different format for different DB.

Related Issues

@github-actions github-actions bot added the type:feature_request feature request label Nov 29, 2023
Copy link

This issue has been automatically marked as stale because it has been open 360 days with no activity. Remove stale label or comment or this will be closed in 180 days

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants