|
iceberg-cpp
|
#include <cstdint>#include <optional>#include <string>#include <string_view>#include "iceberg/result.h"Go to the source code of this file.
Classes | |
| struct | iceberg::sql::ConnectionUri |
Functions | |
| Result< ConnectionUri > | iceberg::sql::ParseConnectionUri (std::string_view uri) |
Parse a scheme://[user[:password]@]host[:port][/database] URI. | |
Minimal parser for scheme://[user[:password]@]host[:port][/database] connection URIs, shared by the PostgreSQL and MySQL built-in stores.
| Result< ConnectionUri > iceberg::sql::ParseConnectionUri | ( | std::string_view | uri | ) |
Parse a scheme://[user[:password]@]host[:port][/database] URI.
All components are optional; missing pieces are returned empty/unset. A leading scheme:// is stripped when present. Malformed syntax that cannot be passed unambiguously to a SQL driver is returned as InvalidArgument.