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

feature: Implement db:"field_name,noindex,omitmepty" tags #3

Open
trakhimenok opened this issue Jun 7, 2018 · 0 comments
Open

feature: Implement db:"field_name,noindex,omitmepty" tags #3

trakhimenok opened this issue Jun 7, 2018 · 0 comments

Comments

@trakhimenok
Copy link
Contributor

Currently to mark a field as non indexed or omitempty it's required to use platform specific tags like:

type SomeEntity struct {
  SomeField string `datastore:"some_field,noindex,omitempty"`
}

Ideally we should have strongo/db tags that would be translated to desired required by specific adapters (like gaedb).

type SomeEntity struct {
  SomeField string `db:"some_field,noindex,omitempty"`
}

Probably DB adapters should be required to implement some interface to make sure the expected behavior is not being ignored.

@trakhimenok trakhimenok changed the title Implement db:"field_name,noindex,omitmepty" tags feature: Implement db:"field_name,noindex,omitmepty" tags Jun 22, 2018
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

1 participant