Skip to content
This repository has been archived by the owner on Aug 18, 2020. It is now read-only.

Bitwise updater apis

Latest
Compare
Choose a tag to compare
@dadleyy dadleyy released this 17 Mar 04:48
· 17 commits to master since this release
3e00ca0

Introduced in #82 - the updater generators can now generate AddRecordFieldMask and DropRecordFieldMask methods to the record stores for fields with the bitmask directive set:

package models

type User struct {
  // ...
  SettingsMask uint8  `marlow:"column=settings&bitmask"`
}
type UserStore interface {
  // ...
  DropUserSettingsMask(uint8, *UserBlueprint) (int64, error)
  AddUserSettingsMask(uint8, *UserBlueprint) (int64, error)
  // ...
}