File: create_virtual_table_check.yml

package info (click to toggle)
sqlfluff 3.5.0-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 34,000 kB
  • sloc: python: 106,131; sql: 34,188; makefile: 52; sh: 8
file content (119 lines) | stat: -rw-r--r-- 3,190 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
# YML test files are auto-generated from SQL files and should not be edited by
# hand. To help enforce this, the "hash" field in the file must match a hash
# computed by SQLFluff when running the tests. Please run
# `python test/generate_parse_fixture_yml.py`  to generate them after adding or
# altering SQL files.
_hash: a5d5c7202136c306e6a940f7bc582106d93cd8b02bac94fcb888c5efbcbf7d32
file:
- statement:
    create_virtual_table_statement:
    - keyword: CREATE
    - keyword: VIRTUAL
    - keyword: TABLE
    - table_reference:
        naked_identifier: email
    - keyword: USING
    - naked_identifier: fts5
- statement_terminator: ;
- statement:
    create_virtual_table_statement:
    - keyword: CREATE
    - keyword: VIRTUAL
    - keyword: TABLE
    - table_reference:
        naked_identifier: email
    - keyword: USING
    - naked_identifier: fts5
    - bracketed:
      - start_bracket: (
      - naked_identifier: sender
      - comma: ','
      - naked_identifier: title
      - comma: ','
      - naked_identifier: body
      - end_bracket: )
- statement_terminator: ;
- statement:
    create_virtual_table_statement:
    - keyword: CREATE
    - keyword: VIRTUAL
    - keyword: TABLE
    - keyword: IF
    - keyword: NOT
    - keyword: EXISTS
    - table_reference:
        naked_identifier: email
    - keyword: USING
    - naked_identifier: fts5
    - bracketed:
      - start_bracket: (
      - naked_identifier: name
      - comma: ','
      - naked_identifier: phone
      - comma: ','
      - naked_identifier: email
      - end_bracket: )
- statement_terminator: ;
- statement:
    create_virtual_table_statement:
    - keyword: CREATE
    - keyword: VIRTUAL
    - keyword: TABLE
    - table_reference:
      - naked_identifier: sample_schema
      - dot: .
      - naked_identifier: email
    - keyword: USING
    - naked_identifier: fts3
    - bracketed:
      - start_bracket: (
      - naked_identifier: content
      - comma: ','
      - naked_identifier: date
      - end_bracket: )
- statement_terminator: ;
- statement:
    create_virtual_table_statement:
    - keyword: CREATE
    - keyword: VIRTUAL
    - keyword: TABLE
    - table_reference:
        naked_identifier: email
    - keyword: USING
    - naked_identifier: fts5
    - bracketed:
      - start_bracket: (
      - quoted_literal: "'email text'"
      - comma: ','
      - naked_identifier: user_id
      - comma: ','
      - numeric_literal: '100'
      - comma: ','
      - quoted_identifier: '"complex-field@!#"'
      - end_bracket: )
- statement_terminator: ;
- statement:
    create_virtual_table_statement:
    - keyword: CREATE
    - keyword: VIRTUAL
    - keyword: TABLE
    - keyword: IF
    - keyword: NOT
    - keyword: EXISTS
    - table_reference:
      - naked_identifier: sample_schema
      - dot: .
      - naked_identifier: email
    - keyword: USING
    - naked_identifier: fts5
    - bracketed:
      - start_bracket: (
      - quoted_literal: "'email text'"
      - comma: ','
      - naked_identifier: user_id
      - comma: ','
      - numeric_literal: '0'
      - comma: ','
      - quoted_identifier: '"complex-field@!#"'
      - end_bracket: )
- statement_terminator: ;