3#ifndef BOAT_COMMANDS_HPP
4#define BOAT_COMMANDS_HPP
7#if __has_include(<gdal.h>)
15inline std::unique_ptr<db::command>
make_command(std::string_view address)
19#if __has_include(<gdal.h>)
20 auto ret = std::make_unique<gdal::command>();
21 ret->dataset =
gdal::open(std::string{address}.data());
24 throw std::runtime_error(
"compiled without gdal");
dataset_ptr open(char const *file, bool update=false)
Definition dataset.hpp:11
std::unique_ptr< db::command > make_command(std::string_view url)
Throws if the URL scheme is unknown or its client library is unavailable.
Definition commands.hpp:32
bool supported_url(std::string_view url)
Recognizes SQL URL schemes even without the corresponding client library.
Definition url.hpp:11
std::unique_ptr< db::command > make_command(std::string_view address)
Definition commands.hpp:15