csv-format-spec.svg 4.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110
  1. <svg xmlns="http://www.w3.org/2000/svg" width="903" height="147">
  2. <defs>
  3. <style type="text/css">
  4. @namespace "http://www.w3.org/2000/svg";
  5. .line {fill: none; stroke: #332900; stroke-width: 1;}
  6. .bold-line {stroke: #141000; shape-rendering: crispEdges; stroke-width: 2;}
  7. .thin-line {stroke: #1F1800; shape-rendering: crispEdges}
  8. .filled {fill: #332900; stroke: none;}
  9. text.terminal {font-family: Verdana, Sans-serif;
  10. font-size: 12px;
  11. fill: #141000;
  12. font-weight: bold;
  13. }
  14. text.nonterminal {font-family: Verdana, Sans-serif;
  15. font-size: 12px;
  16. fill: #1A1400;
  17. font-weight: normal;
  18. }
  19. text.regexp {font-family: Verdana, Sans-serif;
  20. font-size: 12px;
  21. fill: #1F1800;
  22. font-weight: normal;
  23. }
  24. rect, circle, polygon {fill: #332900; stroke: #332900;}
  25. rect.terminal {fill: #FFDB4D; stroke: #332900; stroke-width: 1;}
  26. rect.nonterminal {fill: #FFEC9E; stroke: #332900; stroke-width: 1;}
  27. rect.text {fill: none; stroke: none;}
  28. polygon.regexp {fill: #FFF4C7; stroke: #332900; stroke-width: 1;}
  29. </style>
  30. </defs>
  31. <polygon points="9 61 1 57 1 65"/>
  32. <polygon points="17 61 9 57 9 65"/>
  33. <rect x="31" y="47" width="88" height="32" rx="10"/>
  34. <rect x="29"
  35. y="45"
  36. width="88"
  37. height="32"
  38. class="terminal"
  39. rx="10"/>
  40. <text class="terminal" x="39" y="65">CSV WITH</text>
  41. <rect x="159" y="47" width="76" height="32" rx="10"/>
  42. <rect x="157"
  43. y="45"
  44. width="76"
  45. height="32"
  46. class="terminal"
  47. rx="10"/>
  48. <text class="terminal" x="167" y="65">HEADER</text>
  49. <rect x="275" y="47" width="90" height="32" rx="10"/>
  50. <rect x="273"
  51. y="45"
  52. width="90"
  53. height="32"
  54. class="terminal"
  55. rx="10"/>
  56. <text class="terminal" x="283" y="65">COLUMNS</text>
  57. <rect x="385" y="47" width="24" height="32" rx="10"/>
  58. <rect x="383"
  59. y="45"
  60. width="24"
  61. height="32"
  62. class="terminal"
  63. rx="10"/>
  64. <text class="terminal" x="393" y="65">(</text>
  65. <rect x="449" y="47" width="80" height="32"/>
  66. <rect x="447" y="45" width="80" height="32" class="nonterminal"/>
  67. <text class="nonterminal" x="457" y="65">col_name</text>
  68. <rect x="449" y="3" width="24" height="32" rx="10"/>
  69. <rect x="447"
  70. y="1"
  71. width="24"
  72. height="32"
  73. class="terminal"
  74. rx="10"/>
  75. <text class="terminal" x="457" y="21">,</text>
  76. <rect x="569" y="47" width="24" height="32" rx="10"/>
  77. <rect x="567"
  78. y="45"
  79. width="24"
  80. height="32"
  81. class="terminal"
  82. rx="10"/>
  83. <text class="terminal" x="577" y="65">)</text>
  84. <rect x="159" y="113" width="28" height="32"/>
  85. <rect x="157" y="111" width="28" height="32" class="nonterminal"/>
  86. <text class="nonterminal" x="167" y="131">n</text>
  87. <rect x="207" y="113" width="90" height="32" rx="10"/>
  88. <rect x="205"
  89. y="111"
  90. width="90"
  91. height="32"
  92. class="terminal"
  93. rx="10"/>
  94. <text class="terminal" x="215" y="131">COLUMNS</text>
  95. <rect x="673" y="79" width="116" height="32" rx="10"/>
  96. <rect x="671"
  97. y="77"
  98. width="116"
  99. height="32"
  100. class="terminal"
  101. rx="10"/>
  102. <text class="terminal" x="681" y="97">DELIMITED BY</text>
  103. <rect x="809" y="79" width="46" height="32"/>
  104. <rect x="807" y="77" width="46" height="32" class="nonterminal"/>
  105. <text class="nonterminal" x="817" y="97">char</text>
  106. <path class="line"
  107. d="m17 61 h2 m0 0 h10 m88 0 h10 m20 0 h10 m76 0 h10 m20 0 h10 m90 0 h10 m0 0 h10 m24 0 h10 m20 0 h10 m80 0 h10 m-120 0 l20 0 m-1 0 q-9 0 -9 -10 l0 -24 q0 -10 10 -10 m100 44 l20 0 m-20 0 q10 0 10 -10 l0 -24 q0 -10 -10 -10 m-100 0 h10 m24 0 h10 m0 0 h56 m20 44 h10 m24 0 h10 m-358 0 h20 m338 0 h20 m-378 0 q10 0 10 10 m358 0 q0 -10 10 -10 m-368 10 v14 m358 0 v-14 m-358 14 q0 10 10 10 m338 0 q10 0 10 -10 m-348 10 h10 m0 0 h328 m-474 -34 h20 m474 0 h20 m-514 0 q10 0 10 10 m494 0 q0 -10 10 -10 m-504 10 v46 m494 0 v-46 m-494 46 q0 10 10 10 m474 0 q10 0 10 -10 m-484 10 h10 m28 0 h10 m0 0 h10 m90 0 h10 m0 0 h316 m40 -66 h10 m0 0 h192 m-222 0 h20 m202 0 h20 m-242 0 q10 0 10 10 m222 0 q0 -10 10 -10 m-232 10 v12 m222 0 v-12 m-222 12 q0 10 10 10 m202 0 q10 0 10 -10 m-212 10 h10 m116 0 h10 m0 0 h10 m46 0 h10 m23 -32 h-3"/>
  108. <polygon points="893 61 901 57 901 65"/>
  109. <polygon points="893 61 885 57 885 65"/>
  110. </svg>