-
-
Notifications
You must be signed in to change notification settings - Fork 163
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[doc] Tables for the "table-object-doc" design
Notation, Query, Creation, Schema, In-Memory Writing down these "maximalist" ideas from July and September I started thinking about this again because of the HTM8 lexer! (Up next: <script> and <style> quirks)
- Loading branch information
Andy C
committed
Jan 9, 2025
1 parent
09e8d9a
commit 986fbea
Showing
4 changed files
with
139 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -107,6 +107,8 @@ readonly MARKDOWN_DOCS=( | |
byo | ||
ysh-doc-processing | ||
|
||
table-object-doc | ||
|
||
lib-osh | ||
|
||
doc-toolchain | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -476,6 +476,7 @@ dplyr: | |
- summarise vs. summarize vs. summary | ||
|
||
|
||
## Related | ||
|
||
|
||
- [table-object-doc.html](table-object-doc.html) | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,131 @@ | ||
--- | ||
in_progress: yes | ||
default_highlighter: oils-sh | ||
body_css_class: width50 | ||
--- | ||
|
||
Tables, Object, and Documents - Notation, Query, Creation, Schema | ||
============================= | ||
|
||
<style> | ||
thead { | ||
background-color: #eee; | ||
font-weight: bold; | ||
text-align: left; | ||
} | ||
table { | ||
font-family: sans-serif; | ||
border-collapse: collapse; | ||
} | ||
|
||
tr { | ||
border-bottom: solid 1px; | ||
border-color: #ddd; | ||
} | ||
|
||
td { | ||
padding: 8px; /* override default of 5px */ | ||
} | ||
</style> | ||
|
||
This is part of **maximal** YSH! | ||
|
||
<div id="toc"> | ||
</div> | ||
|
||
## Tables | ||
|
||
|
||
<table> | ||
|
||
- thead | ||
- Data Type | ||
- Notation | ||
- Query | ||
- Creation | ||
- Schema | ||
- tr | ||
- Table | ||
- TSV, CSV | ||
- csvkit, xsv, awk-ish, etc. <br/> | ||
SQL, Data Frames | ||
- ? | ||
- ? | ||
- tr | ||
- Object | ||
- JSON | ||
- jq <br/> | ||
JSONPath: MySQL/Postgres/sqlite support it? | ||
- jq | ||
- JSON Schema | ||
- tr | ||
- Document | ||
- HTML5, XML | ||
- DOM API like getElementById() <br/> | ||
CSS selectors <br/> | ||
XPath? | ||
- JSX Templates | ||
- XML Schema? | ||
|
||
<!-- TODO: ul-table should allow caption at the top --> | ||
<caption>Existing</caption> | ||
|
||
</table> | ||
|
||
| ||
|
||
<table> | ||
|
||
- thead | ||
- Data Type | ||
- Notation | ||
- Query | ||
- Creation | ||
- Schema | ||
- In-Memory | ||
- tr | ||
- Table | ||
- TSV8 (is valid TSV) | ||
- dplyr-like Data Frames <br/> | ||
Maybe some SQL-pipe subset thing? | ||
- `table { }` | ||
- ? | ||
- By column: dict of "arrays" <br/> | ||
By row: list of dicts <br/> | ||
- tr | ||
- Object | ||
- JSON8 (superset) | ||
- JSONPath? <br/> | ||
jq as a reshaping language | ||
- Hay? `Package { }` | ||
- JSON Schema? | ||
- List and Dict | ||
- tr | ||
- Document | ||
- HTM8 (subset) | ||
- CSS selectors | ||
- Markaby Style `div { }` <br/> | ||
"sed" style | ||
- ? | ||
- DocFrag - a span within a doc<br/> | ||
DocTree - an Obj representation<br/> | ||
? | ||
|
||
<caption>Oils</caption> | ||
|
||
</table> | ||
|
||
## Note: SQL Databases Support all three models! | ||
|
||
- sqlite, MySQL, and PostGres obviously have tables | ||
- They all have JSON and JSONPath support! | ||
- JSONPath syntax might differ a bit? | ||
- XML support | ||
- Postgres: XML type, XPath, more | ||
- MySQL: XML extraction functions only | ||
- sqlite: none | ||
|
||
## Related | ||
|
||
- [stream-table-process.html](stream-table-process.html) | ||
- [ysh-doc-processing.html](ysh-doc-processing.html) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters