---
source: crates/squawk_parser/tests/tests.rs
input_file: crates/squawk_parser/tests/data/ok/create_foreign_data_wrapper.sql
---
SOURCE_FILE
  COMMENT "-- simple"
  WHITESPACE "\n"
  CREATE_FOREIGN_DATA_WRAPPER
    CREATE_KW "create"
    WHITESPACE " "
    FOREIGN_KW "foreign"
    WHITESPACE " "
    DATA_KW "data"
    WHITESPACE " "
    WRAPPER_KW "wrapper"
    WHITESPACE " "
    NAME
      IDENT "w"
  SEMICOLON ";"
  WHITESPACE "\n\n"
  COMMENT "-- full"
  WHITESPACE "\n"
  CREATE_FOREIGN_DATA_WRAPPER
    CREATE_KW "create"
    WHITESPACE " "
    FOREIGN_KW "foreign"
    WHITESPACE " "
    DATA_KW "data"
    WHITESPACE " "
    WRAPPER_KW "wrapper"
    WHITESPACE " "
    NAME
      IDENT "w"
    WHITESPACE "\n  "
    FDW_OPTION_LIST
      FDW_OPTION
        HANDLER_KW "handler"
        WHITESPACE " "
        PATH
          PATH
            PATH_SEGMENT
              NAME_REF
                IDENT "foo"
          DOT "."
          PATH_SEGMENT
            NAME_REF
              IDENT "bar"
      WHITESPACE "\n  "
      FDW_OPTION
        NO_KW "no"
        WHITESPACE " "
        HANDLER_KW "handler"
      WHITESPACE "\n  "
      FDW_OPTION
        VALIDATOR_KW "validator"
        WHITESPACE " "
        PATH
          PATH
            PATH_SEGMENT
              NAME_REF
                IDENT "f"
          DOT "."
          PATH_SEGMENT
            NAME_REF
              IDENT "bar"
      WHITESPACE "\n  "
      FDW_OPTION
        NO_KW "no"
        WHITESPACE " "
        VALIDATOR_KW "validator"
      WHITESPACE "\n  "
      FDW_OPTION
        ALTER_OPTION_LIST
          OPTIONS_KW "options"
          WHITESPACE " "
          L_PAREN "("
          ALTER_OPTION
            NAME
              IDENT "a"
            WHITESPACE " "
            LITERAL
              STRING "'foo'"
          COMMA ","
          WHITESPACE " "
          ALTER_OPTION
            NAME
              IDENT "b"
            WHITESPACE " "
            LITERAL
              STRING "'bar'"
          R_PAREN ")"
  SEMICOLON ";"
  WHITESPACE "\n\n"
