https://github.com/jhchabran/dbms-funcs-scraper
Quick and dirty script to build a JSON dump of all functions from Posgres, MySQL and SQLite.
https://github.com/jhchabran/dbms-funcs-scraper
databases documentation-tool scraping script
Last synced: about 2 months ago
JSON representation
Quick and dirty script to build a JSON dump of all functions from Posgres, MySQL and SQLite.
- Host: GitHub
- URL: https://github.com/jhchabran/dbms-funcs-scraper
- Owner: jhchabran
- Created: 2021-06-06T10:23:32.000Z (about 5 years ago)
- Default Branch: main
- Last Pushed: 2021-06-06T14:43:07.000Z (about 5 years ago)
- Last Synced: 2026-04-22T04:51:48.636Z (about 2 months ago)
- Topics: databases, documentation-tool, scraping, script
- Language: Go
- Homepage:
- Size: 9.77 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Scrape functions fom Database Docs
Quick and dirty script to build a JSON dump of all functions from Posgres, MySQL and SQLite.
## Usage
```
go run main.go > dump.json
# Get a csv with of all Postgres functions
cat dump.json | jq -r '.Postgres | (.[0] | keys_unsorted) as $keys | $keys, map([.[ $keys[] ]])[] | @csv'
```
## Example output
```json
{
"Postgres": [
{
"Name": "abs(x)",
"Description": "absolute value",
"Theme": "Mathematical Functions"
},
{
"Name": "cbrt(dp)",
"Description": "cube root",
"Theme": "Mathematical Functions"
},
{
"Name": "ceil(dp or numeric)",
"Description": "nearest integer greater than or equal to argument",
"Theme": "Mathematical Functions"
},
{
"Name": "ceiling(dp or numeric)",
"Description": "nearest integer greater than or equal to argument (same as ceil)",
"Theme": "Mathematical Functions"
},
```