Skip to content

Feature Request: Add the automatic type mapping for uint8/16/32/64 and int8/16/32 #122

@gsbingo17

Description

@gsbingo17

Developers make code changes to Spanner from MySQL using go-gorm-spanner; Because Spanner does not use unsigned integer type, it causes developers to introduce explicit conversions, creating overhead for application refactoring.

For example:

	testObject := &TestObject{
		Id:                  int64(in.Id),
		TestId:            int64(in.TestId),
		TestType: int64(in.TestType),
		...
	}

Could you please consider the support for automatic type mapping to INT64 from unit/unit8/16/32/64.

Metadata

Metadata

Assignees

No one assigned

    Labels

    priority: p3Desirable enhancement or fix. May not be included in next release.type: feature request‘Nice-to-have’ improvement, new feature or different behavior or design.

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions