Notice
Recent Posts
Recent Comments
Link
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | 2 | 3 | 4 | 5 | ||
6 | 7 | 8 | 9 | 10 | 11 | 12 |
13 | 14 | 15 | 16 | 17 | 18 | 19 |
20 | 21 | 22 | 23 | 24 | 25 | 26 |
27 | 28 | 29 | 30 |
Tags
- PayPay
- local
- CSV
- 프라하
- 방콕
- react.js
- pyenv
- typescript
- 아타미
- 메르페이
- 熱海
- node.js
- javascript
- terraform
- 뮌헨
- Python
- codebuild
- vba
- PostgreSQL
- 페이페이
- Selenium
- 체코
- 태국
- documentdb
- 카마츠루
- 미츠이 스미토모
- 釜つる
- JenkinsFile
- 三井住友カード
- duckdb
Archives
- Today
- Total
목록DB접속 (1)
도쿄사는 외노자
RDS PostgreSQL 접속하기
뭐 일단 간단하게 자바스크립트로 적어보면 아래와 같은 느낌. import pg from 'pg'; async function SearchData() { const client = new pg.Client({ user: 'postgres', // 유저명 password: 'postgres', // PW host: 'aaaabbbbcccc123123.ap-northeast-1.rds.amazonaws.com', // RDS 엔드포인트 port: 5432, database: 'postgres' }); await client.connect(); const result = await client.query('select * from dbname.tablename'); console.log(result.rows);..
Tech/JavaScript
2021. 6. 25. 17:44