Skip to content

Commit b402c58

Browse files
committed
Make semver_ord() SQL fn usable in diesel queries
1 parent e53ce7d commit b402c58

File tree

1 file changed

+1
-0
lines changed
  • crates/crates_io_diesel_helpers/src

1 file changed

+1
-0
lines changed

crates/crates_io_diesel_helpers/src/fns.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,3 +14,4 @@ define_sql_function!(fn floor(x: Double) -> Integer);
1414
define_sql_function!(fn greatest<T: SingleValue>(x: T, y: T) -> T);
1515
define_sql_function!(fn least<T: SingleValue>(x: T, y: T) -> T);
1616
define_sql_function!(fn split_part(string: Text, delimiter: Text, n: Integer) -> Text);
17+
define_sql_function!(fn semver_ord(num: Text) -> Nullable<Jsonb>);

0 commit comments

Comments
 (0)