Skip to content

datastore: Add option to disable only saving of a struct field #38

@bashtian

Description

@bashtian

Right now a struct field needs to have the tag datastore:"-" to disable saving in the datastore. The problem is that it also disables loading of the field, which makes migrations hard because now I always get the error "no such struct field".

A better way would be to only disable saving of field, e.g. with datastore:",nosave" or datastore:",deprecated". This would make migrations a lot easier because I don't have to check for the error everywhere I load the struct.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions