|
|
using | RETURN_TYPE = AccessMode |
|
|
static constexpr const char * | Name = "access_mode" |
|
static constexpr const char * | Description = "Access mode of the database (AUTOMATIC, READ_ONLY or READ_WRITE)" |
|
static constexpr const char * | InputType = "VARCHAR" |
◆ SetGlobal()
301154 {
301155 if (!OnGlobalSet(db, config, input)) {
301156 return;
301157 }
301160}
static DUCKDB_API string Upper(const string &str)
Convert a string to UPPERCASE.
Definition duckdb.cpp:109624
AccessMode access_mode
Access mode of the database (AUTOMATIC, READ_ONLY or READ_WRITE).
Definition duckdb.hpp:39992
DBConfigOptions options
Database configuration options.
Definition duckdb.hpp:40090
◆ ResetGlobal()
◆ OnGlobalSet()
301385 {
301386 if (db) {
301387 throw InvalidInputException("Cannot change access_mode setting while database is running - it must be set when "
301388 "opening or attaching the database");
301389 }
301390 return true;
301391}
◆ GetSetting()
301166 {
301167 auto &config = DBConfig::GetConfig(context);
301168 return Value(
StringUtil::Lower(EnumUtil::ToString(config.options.access_mode)));
301169}
static DUCKDB_API string Lower(const string &str)
Convert a string to lowercase.
Definition duckdb.cpp:109630
The documentation for this struct was generated from the following file: