boat
C++23 geospatial library
Loading...
Searching...
No Matches
url.hpp
Go to the documentation of this file.
1// Andrew Naplavkov
2
3#ifndef BOAT_SQL_URL_HPP
4#define BOAT_SQL_URL_HPP
5
6#include <boat/detail/string.hpp>
7
8namespace boat::sql {
9
11inline bool supported_url(std::string_view url)
12{
13 return any(
14 {"mysql://", "odbc://", "postgres://", "sqlite://"}, prefix(url));
15}
16
17} // namespace boat::sql
18
19#endif // BOAT_SQL_URL_HPP
Definition catalog.hpp:9
bool supported_url(std::string_view url)
Recognizes SQL URL schemes even without the corresponding client library.
Definition url.hpp:11