Skip to content

Developer manual: allowlist user-supplied columns and sort orders in database.rst #15682

Description

@miaulalala

developer_manual/basics/storage/database.rst explains named parameters well, but not the case where they don't help: column names and sort directions can't be parameters.

  • Add a short note: if a column name or sort order comes from the user, check it against an allowlist before passing it to orderBy() / select().
  • Add a small example (e.g. a match on the allowed values).

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions