301613 {
301614 const auto input_string = input.ToString();
301616 if (!input_string.empty() && input_string.back() == '%') {
301617 double percentage;
301618 if (!TryDoubleCast(input_string.c_str(), input_string.size() - 1, percentage, false) || percentage < 0 ||
301619 percentage > 100) {
301620 throw InvalidInputException("Unable to parse valid percentage (input: %s)", input_string);
301621 }
301623 } else {
301624 size = DBConfig::ParseMemoryLimit(input_string);
301625 }
301626 if (db) {
301627 BlockAllocator::Get(*db).Resize(size);
301628 }
301630}
GOpaque< Size > size(const GMat &src)
uint64_t idx_t
a saner size_t for loop indices etc
Definition duckdb.hpp:237
idx_t maximum_memory
The maximum memory used by the database system (in bytes). Default: 80% of System available memory.
Definition duckdb.hpp:40000
idx_t block_allocator_size
Physical memory that the block allocator is allowed to use (this memory is never freed and cannot be ...
Definition duckdb.hpp:40062
DBConfigOptions options
Database configuration options.
Definition duckdb.hpp:40090