IronQuery
A SQL-first query builder for C++
Loading...
Searching...
No Matches
collation.hpp
1#pragma once
2
3#include <string>
4
5namespace iron_query {
6
10class [[nodiscard]] Collation final {
11public:
16 static Collation FromRaw(std::string name);
17
21 static Collation C();
23 static Collation Posix();
24
26 std::string ToString() const;
27
28private:
29 Collation(std::string name);
30
31 std::string name_;
32};
33
34} // namespace iron_query
A collation name for use with Expr::Collate.
Definition collation.hpp:10
static Collation Default()
The database's default collation.
std::string ToString() const
Renders the collation name as SQL text.
static Collation FromRaw(std::string name)
Wraps a trusted, developer-written collation name verbatim. Never pass untrusted/dynamic data here.
static Collation Posix()
The POSIX collation, identical to C on PostgreSQL.
static Collation C()
The C collation: byte-order comparison.