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
- postgres
- redis
- docker telegraf 설치
- 노드레드
- javascript formdata
- 리눅스
- node-red 기초
- 도커 telegraf 설치
- nodejs 안정화버전
- node red http
- jsreport
- Redis 설치
- node red
- 우분투
- javascript파일깨짐
- InFluX
- jsreport 기초
- telegraf 설치
- 파일타입
- node red 기초
- nodered
- 리눅스 node-red설치
- pubsub
- nodejs upgrade
- nodejs 버전 업그레이드
- nodejs update
- 파일속성
- Node-RED
- node.js
- nodejs version
Archives
- Today
- Total
♥일홍이 개발♥
[node-red] node red DB 연결 (Postgresql) 본문
반응형
💜node red DB 연결 (Postgresql) 💜
1. postgreSQL 연동 노드 2가지 소개
1)node-red-contrib-re-postgres
cmd 또는 팔렛트에서 설치 (cmd 에서 설치 시 재시작 해주기)설치 방법
2) postgrestor
cmd 또는 팔렛트에서 설치 (cmd 에서 설치 시 재시작 해주기)설치 방법
2. 두가지의 차이점
1) node-red-contrib-re-postgres
=> template 노드를 사용하여 쿼리를 설정하고 msg.queryParameters를 쿼리의 매개 변수로 사용한다.
2) postgrestor
=> msg.payload 쿼리의 결과 개체가 포함
속성 정리
▶ command : 실행 된 SQL 명령 (ex: "SELECT", "UPDATE"등)
▶ rowCount : SQL 문의 영향을 받는 행 수
▶ oid : 반환 된 OID
▶ rows : 행 배열
=> postgres는 매개 변수화 된 쿼리를 허용함
ex)
3. DB 노드 호스트 설정
1) postgres
2) postgrestor
4. 노드 흐름
.... 나중에
참고 영상 - youtu.be/dPFkkQTNPso
++추가
이렇게 했는데 안되서 다른 방법으로 함 2번글로 go
반응형
'Javascript > node-red' 카테고리의 다른 글
[node red] DB 연동2 (Postgresql) (0) | 2021.04.28 |
---|---|
[node red] new 프로젝트 생성 (0) | 2021.04.23 |
[node-red] Node red 기초 (http 통신3) (0) | 2021.04.23 |
[node-red] Node red 기초 (http 통신2) (0) | 2021.04.22 |
[node-red] Node red 기초(http 통신 1) (0) | 2021.04.22 |
Comments