Skip to content

docs: thoroughly document DataTypes - #11

Merged
ephys merged 16 commits into
mainfrom
ephys/new-datatypes-docs
Mar 19, 2022
Merged

ephys merged 16 commits into
mainfrom
ephys/new-datatypes-docs

Conversation

@ephys

@ephys ephys commented Mar 17, 2022 •

Copy link
Copy Markdown
Member

This PR rewrites the other-data-types page to thoroughly document every built-in DataType, and their corresponding SQL type (per dialect).

I based it on the DataTypes unit tests, as well as the documentation of the different dialects.
I'm unsure which documentation should be used for db2 & ibmi so there are likely errors in what I wrote for these 2 dialects. @markdirish if you have a minute to review this part, and/or point me to the right resources.

I've also documented common pain points, such as DataTypes.UUIDV4 being a JS function instead of a SQL one.

I've also moved the part about querying JSON to the page about Querying (with a link leading there), as that seems to be the place where people look for it.

I wrote a react component that filters out the columns of a table based on the user's preferred dialect :)

image

image

@ephys
ephys requested a review from a team March 17, 2022 15:42
@ephys ephys self-assigned this Mar 17, 2022
@ephys

ephys commented Mar 17, 2022

Copy link
Copy Markdown
Member Author

I'll fix the lint issue but feel free to review the contents :)

@sdepold sdepold left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What are the React files for?

Comment thread docs/core-concepts/model-basics.md Resolved
@sdepold

sdepold commented Mar 17, 2022

Copy link
Copy Markdown
Member

What are the React files for?

Ah nevermind. Cool stuff

sdepold
sdepold previously approved these changes Mar 17, 2022
@ephys

ephys commented Mar 17, 2022 •

Copy link
Copy Markdown
Member Author

What are the React files for?

They're two new components that can be used in mdx files:

  • Deprecated adds a 'Trash' icon next to a piece of text, & hovering the text display "this feature is deprecated"
    image
  • DialectTableFilter is used to make the support tables more readable by filtering out the dialects that don't concern you

Edit: ah, I'm too late :)

@ephys

ephys commented Mar 17, 2022

Copy link
Copy Markdown
Member Author

Before merging I've noticed the two first datatype sections don't have links to the dialect documentations like the other ones. I should fix that.

@ephys

ephys commented Mar 18, 2022 •

Copy link
Copy Markdown
Member Author

Links to the different dbms documentations have been added

IMO we can merge without @markdirish's review for db2/ibmi. We'll open a follow-up PR if necessary

@sdepold

sdepold commented Mar 19, 2022

Copy link
Copy Markdown
Member

lgtm

@ephys

ephys commented Mar 19, 2022

Copy link
Copy Markdown
Member Author

conflict fixed

@sdepold
sdepold self-requested a review March 19, 2022 16:44
@ephys ephys changed the title Thoroughly document DataTypes docs: thoroughly document DataTypes Mar 19, 2022
@ephys
ephys merged commit 5c3d637 into main Mar 19, 2022
@ephys
ephys deleted the ephys/new-datatypes-docs branch March 19, 2022 16:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants