create-materialized-view.svg 4.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103
  1. <svg xmlns="http://www.w3.org/2000/svg" width="589" height="359">
  2. <polygon points="9 17 1 13 1 21"/>
  3. <polygon points="17 17 9 13 9 21"/>
  4. <rect x="31" y="3" width="76" height="32" rx="10"/>
  5. <rect x="29"
  6. y="1"
  7. width="76"
  8. height="32"
  9. class="terminal"
  10. rx="10"/>
  11. <text class="terminal" x="39" y="21">CREATE</text>
  12. <rect x="147" y="35" width="108" height="32" rx="10"/>
  13. <rect x="145"
  14. y="33"
  15. width="108"
  16. height="32"
  17. class="terminal"
  18. rx="10"/>
  19. <text class="terminal" x="155" y="53">OR REPLACE</text>
  20. <rect x="295" y="3" width="166" height="32" rx="10"/>
  21. <rect x="293"
  22. y="1"
  23. width="166"
  24. height="32"
  25. class="terminal"
  26. rx="10"/>
  27. <text class="terminal" x="303" y="21">MATERIALIZED VIEW</text>
  28. <rect x="45" y="177" width="120" height="32" rx="10"/>
  29. <rect x="43"
  30. y="175"
  31. width="120"
  32. height="32"
  33. class="terminal"
  34. rx="10"/>
  35. <text class="terminal" x="53" y="195">IF NOT EXISTS</text>
  36. <rect x="205" y="145" width="92" height="32"/>
  37. <rect x="203" y="143" width="92" height="32" class="nonterminal"/>
  38. <text class="nonterminal" x="213" y="163">view_name</text>
  39. <rect x="337" y="145" width="26" height="32" rx="10"/>
  40. <rect x="335"
  41. y="143"
  42. width="26"
  43. height="32"
  44. class="terminal"
  45. rx="10"/>
  46. <text class="terminal" x="345" y="163">(</text>
  47. <rect x="403" y="145" width="78" height="32"/>
  48. <rect x="401" y="143" width="78" height="32" class="nonterminal"/>
  49. <text class="nonterminal" x="411" y="163">col_ident</text>
  50. <rect x="403" y="101" width="24" height="32" rx="10"/>
  51. <rect x="401"
  52. y="99"
  53. width="24"
  54. height="32"
  55. class="terminal"
  56. rx="10"/>
  57. <text class="terminal" x="411" y="119">,</text>
  58. <rect x="521" y="145" width="26" height="32" rx="10"/>
  59. <rect x="519"
  60. y="143"
  61. width="26"
  62. height="32"
  63. class="terminal"
  64. rx="10"/>
  65. <text class="terminal" x="529" y="163">)</text>
  66. <rect x="60" y="259" width="104" height="32" rx="10"/>
  67. <rect x="58"
  68. y="257"
  69. width="104"
  70. height="32"
  71. class="terminal"
  72. rx="10"/>
  73. <text class="terminal" x="68" y="277">IN CLUSTER</text>
  74. <rect x="184" y="259" width="108" height="32"/>
  75. <rect x="182" y="257" width="108" height="32" class="nonterminal"/>
  76. <text class="nonterminal" x="192" y="277">cluster_name</text>
  77. <rect x="352" y="259" width="58" height="32" rx="10"/>
  78. <rect x="350"
  79. y="257"
  80. width="58"
  81. height="32"
  82. class="terminal"
  83. rx="10"/>
  84. <text class="terminal" x="360" y="277">WITH</text>
  85. <rect x="430" y="259" width="102" height="32"/>
  86. <rect x="428" y="257" width="102" height="32" class="nonterminal"/>
  87. <text class="nonterminal" x="438" y="277">with_options</text>
  88. <rect x="405" y="325" width="40" height="32" rx="10"/>
  89. <rect x="403"
  90. y="323"
  91. width="40"
  92. height="32"
  93. class="terminal"
  94. rx="10"/>
  95. <text class="terminal" x="413" y="343">AS</text>
  96. <rect x="465" y="325" width="96" height="32"/>
  97. <rect x="463" y="323" width="96" height="32" class="nonterminal"/>
  98. <text class="nonterminal" x="473" y="343">select_stmt</text>
  99. <path class="line"
  100. d="m17 17 h2 m0 0 h10 m76 0 h10 m20 0 h10 m0 0 h118 m-148 0 h20 m128 0 h20 m-168 0 q10 0 10 10 m148 0 q0 -10 10 -10 m-158 10 v12 m148 0 v-12 m-148 12 q0 10 10 10 m128 0 q10 0 10 -10 m-138 10 h10 m108 0 h10 m20 -32 h10 m166 0 h10 m2 0 l2 0 m2 0 l2 0 m2 0 l2 0 m-480 142 l2 0 m2 0 l2 0 m2 0 l2 0 m22 0 h10 m0 0 h130 m-160 0 h20 m140 0 h20 m-180 0 q10 0 10 10 m160 0 q0 -10 10 -10 m-170 10 v12 m160 0 v-12 m-160 12 q0 10 10 10 m140 0 q10 0 10 -10 m-150 10 h10 m120 0 h10 m20 -32 h10 m92 0 h10 m20 0 h10 m26 0 h10 m20 0 h10 m78 0 h10 m-118 0 l20 0 m-1 0 q-9 0 -9 -10 l0 -24 q0 -10 10 -10 m98 44 l20 0 m-20 0 q10 0 10 -10 l0 -24 q0 -10 -10 -10 m-98 0 h10 m24 0 h10 m0 0 h54 m20 44 h10 m26 0 h10 m-250 0 h20 m230 0 h20 m-270 0 q10 0 10 10 m250 0 q0 -10 10 -10 m-260 10 v14 m250 0 v-14 m-250 14 q0 10 10 10 m230 0 q10 0 10 -10 m-240 10 h10 m0 0 h220 m22 -34 l2 0 m2 0 l2 0 m2 0 l2 0 m-571 82 l2 0 m2 0 l2 0 m2 0 l2 0 m22 0 h10 m0 0 h242 m-272 0 h20 m252 0 h20 m-292 0 q10 0 10 10 m272 0 q0 -10 10 -10 m-282 10 v12 m272 0 v-12 m-272 12 q0 10 10 10 m252 0 q10 0 10 -10 m-262 10 h10 m104 0 h10 m0 0 h10 m108 0 h10 m40 -32 h10 m0 0 h190 m-220 0 h20 m200 0 h20 m-240 0 q10 0 10 10 m220 0 q0 -10 10 -10 m-230 10 v12 m220 0 v-12 m-220 12 q0 10 10 10 m200 0 q10 0 10 -10 m-210 10 h10 m58 0 h10 m0 0 h10 m102 0 h10 m22 -32 l2 0 m2 0 l2 0 m2 0 l2 0 m-191 98 l2 0 m2 0 l2 0 m2 0 l2 0 m2 0 h10 m40 0 h10 m0 0 h10 m96 0 h10 m3 0 h-3"/>
  101. <polygon points="579 339 587 335 587 343"/>
  102. <polygon points="579 339 571 335 571 343"/>
  103. </svg>