You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
CREATETABLEmytable (
id uuid NOT NULL,
dates time [] NOT NULLPRIMARY KEY (id)
);
where the dates array itself is not null, but the single elements of the array can.
Is this supported by sqlx? If so, how? Because when i try to query the field dates as &[Option<NaiveTime>] it doesn't compile, saying it expects a &[NaiveTime].
Removing the NOT NULL doesn't seem to solve the problem, because the array itself should never be null, and always contain a fixed number of elements (7).
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Hello everyone, I have a table such as this:
where the dates array itself is not null, but the single elements of the array can.
Is this supported by sqlx? If so, how? Because when i try to query the field dates as
&[Option<NaiveTime>]
it doesn't compile, saying it expects a&[NaiveTime]
.Removing the
NOT NULL
doesn't seem to solve the problem, because the array itself should never be null, and always contain a fixed number of elements (7).Thanks in advance.
Beta Was this translation helpful? Give feedback.
All reactions