102817 {
102819 OrderType order_type;
102821 order_type = OrderType::ASCENDING;
102823 order_type = OrderType::DESCENDING;
102824 } else {
102825 throw BinderException("create_sort_key modifier must start with either ASC or DESC");
102826 }
102827 OrderByNullType null_type;
102829 null_type = OrderByNullType::NULLS_FIRST;
102831 null_type = OrderByNullType::NULLS_LAST;
102832 } else {
102833 throw BinderException("create_sort_key modifier must end with either NULLS FIRST or NULLS LAST");
102834 }
102835 return OrderModifiers(order_type, null_type);
102836 }
static DUCKDB_API string Lower(const string &str)
Convert a string to lowercase.
Definition duckdb.cpp:109630
static DUCKDB_API bool StartsWith(string str, string prefix)
Returns true if the target string starts with the given prefix.
Definition duckdb.cpp:109377
static DUCKDB_API bool EndsWith(const string &str, const string &suffix)
Returns true if the target string ends with the given suffix.
Definition duckdb.cpp:109384