'프로그램 사용 > postgreSQL' 카테고리의 다른 글
| postgres 문자열 타입 (0) | 2019.08.09 |
|---|---|
| postgresql - 테이블 형상 보기 (0) | 2019.08.08 |
| pgfutter (0) | 2019.08.06 |
| postgres \COPY (0) | 2019.08.06 |
| union sql (0) | 2019.06.28 |
| postgres 문자열 타입 (0) | 2019.08.09 |
|---|---|
| postgresql - 테이블 형상 보기 (0) | 2019.08.08 |
| pgfutter (0) | 2019.08.06 |
| postgres \COPY (0) | 2019.08.06 |
| union sql (0) | 2019.06.28 |
음.. 시도해보고 수정필요
해당 항목을 검색해서 그 결과를 붙여주는건 아니라 실망..
[링크 : https://stackoverflow.com/questions/21996965/concatenate-multiple-node-values-in-xpath]
[링크 : https://stackoverflow.com/questions/3398871/concatenate-multiple-attribute-values]
| xpath count() (0) | 2019.09.09 |
|---|---|
| xpath xsi (0) | 2019.08.12 |
| xpath syntax - attribute 검색 및 특정값 얻기 (0) | 2019.08.08 |
| xpath.. (0) | 2019.08.01 |
| xmllint string() (0) | 2019.07.25 |
이것저것 테스트 하다가 가장 무난한게 select1 인것 같고
검색이 되지 않으면 탭이나 콤마를
검색이 되었으나 값의 저장위치에 따라 value와 firstChild.data로 저장이 된다.
firstChild.data는 element 자체의 내용(content라고 해야하나 머라고 해야하나?)이 저장되는 장소이다.
var result_attr = xpath.select1(ele, doc);
// var result_ele = xpath.select(ele, doc);
if (result_attr != undefined) {
if (result_attr.value != undefined) {
// record += (result_attr.firstChild + delimiter)
record += ('"' + result_attr.value + '"' + delimiter)
// console.log(result_attr.value);
}
else {
record += ('"' + result_attr.firstChild.data + '"' + delimiter)
// console.log(result_attr.firstChild.data);
}
}
else {
record += delimiter;
}
| node.js csv2json (0) | 2019.08.21 |
|---|---|
| node.js regex (0) | 2019.08.12 |
| xpath text() (0) | 2019.08.07 |
| node.js readline과 r/w stream (0) | 2019.07.31 |
| node.js xpath select() select1() (0) | 2019.07.25 |
특정 위치중에 attribute가 DB이고 값이 Gene일 경우 해당 Xref element의 ID attribute의 값을 받는 예제
(말이 어렵다 -ㅁ-)
/ClinVarSet/ReferenceClinVarAssertion/MeasureSet/Measure/MeasureRelationship/XRef[@DB='Gene']/@ID
| xpath xsi (0) | 2019.08.12 |
|---|---|
| xpath concat (0) | 2019.08.08 |
| xpath.. (0) | 2019.08.01 |
| xmllint string() (0) | 2019.07.25 |
| libxml2 - xmlNodeDump() (0) | 2019.07.09 |
visual studio 하듯 하면 되네?
f9로 break point 설정하고
f5로 디버깅 모드 시작
launch.json 에서 아래와 같이 args를 추가하고 array 해주면 인자가 입력된다.
{
// Use IntelliSense to learn about possible attributes.
// Hover to view descriptions of existing attributes.
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
"version": "0.2.0",
"configurations": [
{
"type": "node",
"request": "launch",
"name": "Launch Program",
"program": "${workspaceFolder}\\test.js",
"args": ["input.txt","output.txt"]
}
]
}
[링크 : https://nodejs.org/ko/docs/guides/debugging-getting-started/]
[링크 : https://nerv2000.tistory.com/105]
[링크 : https://code.visualstudio.com/docs/nodejs/nodejs-debugging]
[링크 : https://stackoverflow.com/questions/29968919/how-to-start-nodejs-with-custom-params-from-vscode]
| vscode 복사시에 highlight 된 내용 복사하지 않기 (0) | 2019.12.02 |
|---|---|
| vscode에서 *로 검색하기 (대신 정규표현식) (0) | 2019.11.09 |
| ubuntu에 vscode 설치하기 (0) | 2019.05.04 |
| vscode live share? (0) | 2019.01.03 |
| vscode plugin - sshfs (0) | 2018.11.27 |
failed to find target with hash string 'android-27'
요런 에러가 발생하면 구버전 SDK를 쓰고 있는데 현재 시스템에 해당 버전의 SDK가 없어서 발생하는 에러라고 한다.
[링크 : https://elecs.tistory.com/157]
File-Settings - Appearance - System Setting - Android SDK 에서 에러에 맞는 SDK를 설치후 리빌드
[링크 : https://hunit.tistory.com/365]
error: resource android:attr/dialogCornerRadius not found.
[링크 : https://blog.soobinpark.com/149]
이건 도움을 별로 못 받았고
버전을 보니 0.7.6이 현재 깨져서 받지 못하게 된 상태라 0.7.5로 일단 변경해서 빌드는 완료
| 안드로이드 http / REST 요청 앱 만들기 준비 (0) | 2020.05.09 |
|---|---|
| SMS PDU 형식 (0) | 2020.01.08 |
| android / 구글 지도 API 발급 (0) | 2019.06.21 |
| android studio /dev/kvm permission denied (0) | 2019.06.11 |
| ubuntu android studio (0) | 2019.06.10 |
<element>text</element>
에서 text만 꺼내주는 함수(?)
| node.js regex (0) | 2019.08.12 |
|---|---|
| node.js xpath 모듈 (0) | 2019.08.08 |
| node.js readline과 r/w stream (0) | 2019.07.31 |
| node.js xpath select() select1() (0) | 2019.07.25 |
| node.js xpath apidoc (0) | 2019.07.25 |
맨날 json beautifier 찾아서 온라인으로 했는데
오프라인으로 바로 처리되니 편하네
[링크 : https://chrome.google.com/webstore/search/json%20view?hl=ko]
| webgl-util.js (0) | 2021.11.12 |
|---|---|
| markdown 문법 - 체크박스 (0) | 2020.10.15 |
| resizable table cell (0) | 2019.06.17 |
| web framework (0) | 2019.06.05 |
| ECDHE? (0) | 2019.04.26 |
import schema에 다가 csv 파일등을 넣어주는 녀석
go로 짰고 받아보니.. elf 실행파일인데...
테스트로 해보니까 걍 테이블을 text로 생성해 버린다.
그래도 최대 자릿수 찾을줄 알았는데 그게 아니라 아쉽네

[링크 : https://github.com/lukasmartinelli/pgfutter]
+
csv가 아닌 tsv의 경우 아래처럼 사용자 delimiter에 탭을 지정해주면 된다.
| pgfutter csv -d $'\t' traffic_violations.csv |
| postgresql - 테이블 형상 보기 (0) | 2019.08.08 |
|---|---|
| psql 테이블 목록보기 (0) | 2019.08.08 |
| postgres \COPY (0) | 2019.08.06 |
| union sql (0) | 2019.06.28 |
| postgresql csv update (0) | 2019.06.26 |
아..
예전에 된거 같아서 때려박아 보는데 relation이 없다고 나와서 급 멘붕..
| postgres=# \COPY PERSON FROM 'person.csv' DELIMITER E'\t' CSV HEADER QUOTE E'\b' ; 오류: "person" 이름의 릴레이션(relation)이 없습니다 |
원하던 글은 아니지만 다른글에서 원인 발견
copy는 생성된 테이블에 데이터를 넣어주는 매크로/함수인거지 테이블을 생성해주지 않음
[링크 : https://stackoverflow.com/questions/21018256/]
+
2019.09.02
\copy와 copy는 다른 명령이구나..
| 힌트: COPY FROM 명령은 PostgreSQL 서버 프로세스가 한 파일을 읽어 처리합니다. 클라이언트 쪽에 있는 파일을 읽어 처리 하려면, psql의 \copy 내장 명령어를 사용하세요. |
| psql 테이블 목록보기 (0) | 2019.08.08 |
|---|---|
| pgfutter (0) | 2019.08.06 |
| union sql (0) | 2019.06.28 |
| postgresql csv update (0) | 2019.06.26 |
| postgresql csv import (0) | 2019.06.25 |