https://github.com/pyramation/pgsql-parser-docker-test
https://github.com/pyramation/pgsql-parser-docker-test
Last synced: 5 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/pyramation/pgsql-parser-docker-test
- Owner: pyramation
- License: mit
- Created: 2022-04-14T21:24:09.000Z (about 4 years ago)
- Default Branch: master
- Last Pushed: 2022-04-14T21:24:38.000Z (about 4 years ago)
- Last Synced: 2025-04-07T15:18:53.603Z (about 1 year ago)
- Language: Dockerfile
- Size: 1000 Bytes
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# pgsql-parser docker test
docker test for [pgsql-parser](https://github.com/pyramation/pgsql-parser)
# 1 build the docker image
run `docker-compose build`
# 2 start the server
```sh
docker run -d \
-it \
--name build_pgsql_parser \
pyramation/pgsql_parser
```
# 3 jump inside
`ssh` into the box
```sh
docker exec -it build_pgsql_parser /bin/bash
```
# 4 create npm repo and add pgsql-parser
see, it works!
```
mkdir myproj
cd myproj/
npm init
yarn
yarn add pgsql-parser
node
> require('pgsql-parser')
{
Deparser: [Getter],
deparse: [Getter],
enums: [Getter],
parseFunction: [Getter],
parse: [Function: parse]
}
>
```