morph 0.1.0
Asynchronous bridge between GUI thread and business models
Loading...
Searching...
No Matches
morph::table::QueryLimits Struct Reference

The bounds a server applies to every TableQuery, an untrusted body. More...

#include <query.hpp>

Public Attributes

std::int64_t maxLimit = 1000
 page.limit above this is clamped to it.
std::int64_t maxOffset = 10'000'000
 page.offset above this is refused.
std::size_t maxSortKeys = 8
 Sort keys.
std::size_t maxFilterColumns = 32
 Filtered columns.
std::size_t maxEntries = 32
 include plus exclude entries of one column or group.
std::size_t maxGroups = 8
 Groups.
std::size_t maxGroupColumns = 16
 Columns of one group.
std::size_t maxTextLength = 256
 Bytes of one filter value.
std::int64_t totalCap = 100'000
 A total above this is not reported.

Detailed Description

The bounds a server applies to every TableQuery, an untrusted body.

Definition at line 94 of file query.hpp.

Member Data Documentation

◆ maxLimit

std::int64_t morph::table::QueryLimits::maxLimit = 1000

page.limit above this is clamped to it.

Definition at line 96 of file query.hpp.

◆ maxOffset

std::int64_t morph::table::QueryLimits::maxOffset = 10'000'000

page.offset above this is refused.

Definition at line 98 of file query.hpp.

◆ maxSortKeys

std::size_t morph::table::QueryLimits::maxSortKeys = 8

Sort keys.

Definition at line 100 of file query.hpp.

◆ maxFilterColumns

std::size_t morph::table::QueryLimits::maxFilterColumns = 32

Filtered columns.

Definition at line 102 of file query.hpp.

◆ maxEntries

std::size_t morph::table::QueryLimits::maxEntries = 32

include plus exclude entries of one column or group.

Definition at line 104 of file query.hpp.

◆ maxGroups

std::size_t morph::table::QueryLimits::maxGroups = 8

Groups.

Definition at line 106 of file query.hpp.

◆ maxGroupColumns

std::size_t morph::table::QueryLimits::maxGroupColumns = 16

Columns of one group.

Definition at line 108 of file query.hpp.

◆ maxTextLength

std::size_t morph::table::QueryLimits::maxTextLength = 256

Bytes of one filter value.

Definition at line 110 of file query.hpp.

◆ totalCap

std::int64_t morph::table::QueryLimits::totalCap = 100'000

A total above this is not reported.

Definition at line 112 of file query.hpp.


The documentation for this struct was generated from the following file: