File: create_sequence.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 (154 lines) | stat: -rw-r--r-- 4,245 bytes parent folder | download | duplicates (2)
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
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
# 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: a85996eb46a2024fb4d0ea8adbb883763b1842165a6ccde742dd7eb24de494b3
file:
- statement:
    create_sequence_statement:
    - keyword: CREATE
    - keyword: SEQUENCE
    - sequence_reference:
        naked_identifier: foo
- statement_terminator: ;
- statement:
    create_sequence_statement:
    - keyword: CREATE
    - keyword: SEQUENCE
    - sequence_reference:
        naked_identifier: foo
    - create_sequence_options_segment:
        keyword: AS
        data_type:
          keyword: integer
- statement_terminator: ;
- statement:
    create_sequence_statement:
    - keyword: CREATE
    - keyword: SEQUENCE
    - sequence_reference:
        naked_identifier: foo
    - create_sequence_options_segment:
      - keyword: INCREMENT
      - keyword: BY
      - numeric_literal: '3'
- statement_terminator: ;
- statement:
    create_sequence_statement:
    - keyword: CREATE
    - keyword: SEQUENCE
    - sequence_reference:
        naked_identifier: foo
    - create_sequence_options_segment:
        keyword: MINVALUE
        numeric_literal: '5'
    - create_sequence_options_segment:
      - keyword: 'NO'
      - keyword: MAXVALUE
- statement_terminator: ;
- statement:
    create_sequence_statement:
    - keyword: CREATE
    - keyword: SEQUENCE
    - sequence_reference:
        naked_identifier: foo
    - create_sequence_options_segment:
      - keyword: 'NO'
      - keyword: MINVALUE
    - create_sequence_options_segment:
        keyword: MAXVALUE
        numeric_literal: '12'
- statement_terminator: ;
- statement:
    create_sequence_statement:
    - keyword: CREATE
    - keyword: SEQUENCE
    - sequence_reference:
        naked_identifier: foo
    - create_sequence_options_segment:
        keyword: INCREMENT
        numeric_literal: '5'
    - create_sequence_options_segment:
      - keyword: START
      - keyword: WITH
      - numeric_literal: '8'
    - create_sequence_options_segment:
        keyword: CACHE
        numeric_literal: '4'
- statement_terminator: ;
- statement:
    create_sequence_statement:
    - keyword: CREATE
    - keyword: SEQUENCE
    - sequence_reference:
        naked_identifier: foo
    - create_sequence_options_segment:
      - keyword: 'NO'
      - keyword: CYCLE
- statement_terminator: ;
- statement:
    create_sequence_statement:
    - keyword: CREATE
    - keyword: SEQUENCE
    - sequence_reference:
        naked_identifier: foo
    - create_sequence_options_segment:
      - keyword: OWNED
      - keyword: BY
      - keyword: NONE
- statement_terminator: ;
- statement:
    create_sequence_statement:
    - keyword: CREATE
    - keyword: SEQUENCE
    - sequence_reference:
        naked_identifier: foo
    - create_sequence_options_segment:
      - keyword: OWNED
      - keyword: BY
      - column_reference:
        - naked_identifier: my_table
        - dot: .
        - naked_identifier: my_column
- statement_terminator: ;
- statement:
    create_sequence_statement:
    - keyword: CREATE
    - keyword: TEMP
    - keyword: SEQUENCE
    - keyword: IF
    - keyword: NOT
    - keyword: EXISTS
    - sequence_reference:
        naked_identifier: foo
- statement_terminator: ;
- statement:
    create_sequence_statement:
    - keyword: CREATE
    - keyword: TEMPORARY
    - keyword: SEQUENCE
    - sequence_reference:
        naked_identifier: foo
- statement_terminator: ;
- statement:
    create_sequence_statement:
    - keyword: CREATE
    - keyword: SEQUENCE
    - sequence_reference:
        naked_identifier: derp
    - create_sequence_options_segment:
      - keyword: INCREMENT
      - keyword: BY
      - sign_indicator: '-'
      - numeric_literal: '5'
    - create_sequence_options_segment:
        keyword: MINVALUE
        sign_indicator: +
        numeric_literal: '50'
    - create_sequence_options_segment:
        keyword: MAXVALUE
        sign_indicator: '-'
        numeric_literal: '5'
- statement_terminator: ;
- statement_terminator: ;