---
source: tests/typing_surface/constraints.rs
description: "input=\"add column to Customers: note (text) check (note like 'A%')\" cursor=59"
expression: "& a"
---
Assessment {
    input: "add column to Customers: note (text) check (note like 'A%')",
    cursor: 59,
    state: Valid,
    hint: Some(
        Prose(
            "no such column `note` on table `Customers`",
        ),
    ),
    completion: Some(
        Completion {
            replaced_range: (
                59,
                59,
            ),
            partial_prefix: "",
            candidates: [
                Candidate {
                    text: "not",
                    kind: Keyword,
                    mode: Both,
                },
                Candidate {
                    text: "unique",
                    kind: Keyword,
                    mode: Both,
                },
                Candidate {
                    text: "default",
                    kind: Keyword,
                    mode: Both,
                },
                Candidate {
                    text: "check",
                    kind: Keyword,
                    mode: Both,
                },
            ],
        },
    ),
    parse_result: Ok(
        "AddColumn",
    ),
}
