Skip to content

Commit

Permalink
feat: convert support tuple length up to 22 (#391)
Browse files Browse the repository at this point in the history
* feat: convert support tuple length up to 22

* Update value.rs

---------

Co-authored-by: sundyli <[email protected]>
  • Loading branch information
caibirdme and sundy-li authored May 30, 2024
1 parent 2682e5f commit ce5df36
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions sql/src/value.rs
Original file line number Diff line number Diff line change
Expand Up @@ -672,6 +672,23 @@ impl_tuple_from_value!(T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13);
impl_tuple_from_value!(T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14);
impl_tuple_from_value!(T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15);
impl_tuple_from_value!(T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, T16);
impl_tuple_from_value!(T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, T16, T17);
impl_tuple_from_value!(
T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, T16, T17, T18
);
impl_tuple_from_value!(
T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, T16, T17, T18, T19
);
impl_tuple_from_value!(
T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, T16, T17, T18, T19, T20
);
impl_tuple_from_value!(
T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, T16, T17, T18, T19, T20, T21
);
impl_tuple_from_value!(
T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, T16, T17, T18, T19, T20, T21,
T22
);

// This macro implements TryFrom to Option for Nullable column
macro_rules! impl_try_from_to_option {
Expand Down

0 comments on commit ce5df36

Please sign in to comment.