Request Details

Would be cool if we would get official bitfield support as a data type.
its kind of annoying atm since i have to use a u8 and mirror the variants or bit names manually to the sdks.
It will get a bit better with view args i think because then i can just use a query builder view and have multiple bool arguments which then get translated to the correct bits server side and queried with .eq()

But would be even cool if we could have a bitfield type that can wrap all unsigned integers and the codegen already embeds the names and exposes accessors on the underlying int for the respective names :>

For sitations where you have a couple of flags this would be quite a bit more efficient i believe

Ideally it would be somewhat generic like : Bitflags where you can use all unsigned integer types

  1. website-features added the feature-request label Oct 2, 2026

Reopen this request?

The request will return to its prior live status.

Mark as Duplicate

Pick the request that Bitflags as official type is a duplicate of. Energy rolls up into that request and GitHub closes the linked issue as a duplicate with a timeline reference to the canonical.

Unmark Duplicate

Restore as an independent request. The linked GitHub issue will be reopened and its duplicate-of relationship cleared. The original timeline entries stay as history; the note below is posted as a follow-up comment.