Replies: 1 comment 5 replies
-
Hi. Did you try it? |
Beta Was this translation helpful? Give feedback.
5 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hey,
i am currently trying to figure out on how to use
where(...)
andstorage.update_all(...)
with anenum
containing a bunch of flags and wanted to ask if this is possible and if yes, how.The setup looks somewhat as follows (reduced the sample; Full sources available at https://github.com/SQFvm/language-server/tree/dap/implement/server/sqfvm_language_server/database)):
I have the structure
t_file
with an enum placed inside, calledfile_flags
and create a corresponding storage mapping
wanting to update all contents as follows
m_context->storage().update_all(set(c(&tables::t_file::flags) = bitwise_or(c(&tables::t_file::flags), tables::t_file::file_flags::deleted)));
now, as stated above, how can i archive this? Is this archivable at all?
thanks for your time.
Compiling a single file using the storage yields:
full:
Beta Was this translation helpful? Give feedback.
All reactions