Documentation
¶
Overview ¶
Package text is the one rule for the text a client sends: it holds no control character other than a tab or a line break. PostgreSQL stores no U+0000 in text or jsonb and refuses the whole statement, so a request that carried one would be a 500 raised at will, and the other control characters mean nothing in a name, a note or a value and only trouble the terminals and logs that print them.
Index ¶
Constants ¶
const Code = "invalid_character"
Code is the stable name of the rule, as the violation's code and as the error's.
const MaxViolations = 20
MaxViolations bounds the violations one request names, so the answer stays small however much text is refused.
Variables ¶
This section is empty.
Functions ¶
func Allowed ¶
Allowed reports whether s holds no control character other than a tab, a line feed or a carriage return.
func AllowedURL ¶
AllowedURL reports whether the path of u and every name and value of its query, decoded, hold no refused character.
Types ¶
This section is empty.