rust types to surrealdb type string #3389
Unanswered
singersbalm
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
is it possible to convert the rust type to the surrealdb type as a string.
the Thing struct should be "record"
a Option or Option<&str> should be "optional"
basically converting rust types to the query input when setting the type like this:
DEFINE FIELD myfield ON TABLE mytable TYPE mytype;
. https://docs.surrealdb.com/docs/nightly/surrealql/datamodel/overviewBeta Was this translation helpful? Give feedback.
All reactions