File: create_database.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 (123 lines) | stat: -rw-r--r-- 3,615 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
120
121
122
123
# 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: 0df327a33f3826f3a0681833b5fe2f4cd1742d5776662034b789f7a129f47025
file:
- statement:
    create_database_statement:
    - keyword: CREATE
    - keyword: DATABASE
    - keyword: IF
    - keyword: NOT
    - keyword: EXISTS
    - database_reference:
        naked_identifier: database_name
    - keyword: COMMENT
    - quoted_literal: '"database_comment"'
    - keyword: LOCATION
    - quoted_literal: '"root/database_directory"'
    - keyword: WITH
    - keyword: DBPROPERTIES
    - bracketed:
        start_bracket: (
        property_name_identifier:
          quoted_identifier: '"property_name"'
        comparison_operator:
          raw_comparison_operator: '='
        quoted_literal: '"property_value"'
        end_bracket: )
- statement_terminator: ;
- statement:
    create_database_statement:
    - keyword: CREATE
    - keyword: SCHEMA
    - keyword: IF
    - keyword: NOT
    - keyword: EXISTS
    - database_reference:
        naked_identifier: database_name
    - keyword: COMMENT
    - quoted_literal: '"database_comment"'
    - keyword: LOCATION
    - quoted_literal: '"root/database_directory"'
    - keyword: WITH
    - keyword: DBPROPERTIES
    - bracketed:
        start_bracket: (
        property_name_identifier:
          quoted_identifier: '"property_name"'
        comparison_operator:
          raw_comparison_operator: '='
        quoted_literal: '"property_value"'
        end_bracket: )
- statement_terminator: ;
- statement:
    create_database_statement:
    - keyword: CREATE
    - keyword: DATABASE
    - database_reference:
        naked_identifier: customer_db
- statement_terminator: ;
- statement:
    create_database_statement:
    - keyword: CREATE
    - keyword: DATABASE
    - keyword: IF
    - keyword: NOT
    - keyword: EXISTS
    - database_reference:
        naked_identifier: customer_db
- statement_terminator: ;
- statement:
    create_database_statement:
    - keyword: CREATE
    - keyword: DATABASE
    - keyword: IF
    - keyword: NOT
    - keyword: EXISTS
    - database_reference:
        naked_identifier: customer_db
    - keyword: COMMENT
    - quoted_literal: "'This is customer database'"
    - keyword: LOCATION
    - quoted_literal: "'/user'"
    - keyword: WITH
    - keyword: DBPROPERTIES
    - bracketed:
      - start_bracket: (
      - property_name_identifier:
          quoted_identifier: '"ID"'
      - comparison_operator:
          raw_comparison_operator: '='
      - quoted_literal: '"001"'
      - comma: ','
      - property_name_identifier:
          quoted_identifier: '"Name"'
      - comparison_operator:
          raw_comparison_operator: '='
      - quoted_literal: "'John'"
      - end_bracket: )
- statement_terminator: ;
- statement:
    create_database_statement:
    - keyword: CREATE
    - keyword: DATABASE
    - database_reference:
        naked_identifier: inventory_db
    - keyword: COMMENT
    - quoted_literal: "'This database is used to maintain Inventory'"
- statement_terminator: ;
- statement:
    create_database_statement:
    - keyword: CREATE
    - keyword: SCHEMA
    - keyword: IF
    - keyword: NOT
    - keyword: EXISTS
    - database_reference:
        naked_identifier: database_name
    - keyword: MANAGED
    - keyword: LOCATION
    - quoted_literal: '"s3://root_database_bucket/"'