'2019/08'에 해당되는 글 66건

  1. 2019.08.13 postgres sequence - auto increment
  2. 2019.08.12 node.js regex
  3. 2019.08.12 xpath xsi
  4. 2019.08.12 postgresql 변수 타입
  5. 2019.08.12 awk NR, NF
  6. 2019.08.11 수영장 딸린 펜션 4
  7. 2019.08.10 펜션 놀러옴
  8. 2019.08.09 postgres 문자열 타입
  9. 2019.08.08 postgresql - 테이블 형상 보기
  10. 2019.08.08 psql 테이블 목록보기

자.. 어떻게 설계할까...

[링크 : https://akaisun.tistory.com/52]

 

+

2019.08.15

당연하지만(?) schema 식별자가 public이 아니면 넣어주어야 한다.

[링크 : https://www.postgresdba.com/bbs/board.php?bo_table=B10&wr_id=28]

Posted by 구차니
Programming/node.js2019. 8. 12. 16:57

별다른 모듈 끌어오지 않아도 기본으로

new RegExp()를 통해 생성이 가능하다.

 

아래는 파일명에서 YYYY-MM 으로 된 녀석을 검색하는 예제

음.. 근데 딱 그 부분만 빼내는 법은 없나?

> var regex =  new RegExp('[0-9]{4}-[0-9]{2}')
undefined
> regex
/[0-9]{4}-[0-9]{2}/
> var fn = "ClinVarFullRelease_2019-07.xml"
undefined
fn.match(regex);
[ '2019-07', index: 19, input: 'ClinVarFullRelease_2019-07.xml' ]

[링크 : https://stackoverflow.com/questions/5675315/node-js-regular-expression-to-get-from-and-to]

 

+

regex.exec(fn)

[링크 : https://opentutorials.org/course/50/43]

 

+

()로 묶으면 완전히 매칭되는 부분만 결과를 돌려준다.

> var regex =  new RegExp('([0-9]{4}-[0-9]{2})')
undefined
fn.match(regex);
[ '2019-07',
  '2019-07',
  index: 19,
  input: 'ClinVarFullRelease_2019-07.xml' ]

[링크 : https://bradbury.tistory.com/47]

'Programming > node.js' 카테고리의 다른 글

node.js xpath 지원함수 목록  (0) 2019.09.10
node.js csv2json  (0) 2019.08.21
node.js xpath 모듈  (0) 2019.08.08
xpath text()  (0) 2019.08.07
node.js readline과 r/w stream  (0) 2019.07.31
Posted by 구차니
Programming/xml2019. 8. 12. 15:42

xml namespace나 schema 관련된 녀석을 조회하려는데

어떻게 해야 할지 감이 안와서(evaluation fail막 뜨고..) 찾다가 발견

name이 아니라 name()이 포인트

//*[name()='xsi:noNamespaceSchemaLocation']

 

[링크 : https://stackoverflow.com/questions/4817112/xpath-query-for-xml-node-with-colon-in-node-name]

 

xsi는 Xml Schema Instance의 약자인 것으로 보인다.

인스턴스 문서가 참조할 때는 두 가지 특별한 애트리뷰트를 사용하는데, xsi:schemaLocation xsi:noNamespaceSchemaLocation이 그것이다. 관습적으로 "xsi"는 "http://www.w3.org/2001/XMLSchema-instance"를 가리키는 접두어로 쓰인다.)

[링크 : https://ko.wikipedia.org/wiki/XML_스키마_(W3C)]

'Programming > xml' 카테고리의 다른 글

xsd minOccurs, maxOccurs  (0) 2019.09.11
xpath count()  (0) 2019.09.09
xpath concat  (0) 2019.08.08
xpath syntax - attribute 검색 및 특정값 얻기  (0) 2019.08.08
xpath..  (0) 2019.08.01
Posted by 구차니

bigint(int8) 64bit

interger(int, int4) 32bit

double precision(float8 = 64bit)

real(float4 = 32bit)

 

[링크 : https://www.postgresql.org/docs/9.2/datatype.html]

 

JSON 변수 타입 접근 연산자

-> (JSON object or array)

->> (stringigy?)

tablename->'json_key'->'json_key'

[링크 : https://blog.outsider.ne.kr/1061]

Posted by 구차니
Linux2019. 8. 12. 13:14

NR(number of Record?)

NF(number of Field?)

[링크 : https://ko.wikibooks.org/wiki/예제로_배우는_AWK/필드와_레코드]

 

The variable NF is set to the total number of fields in the input record.

[링크 : https://linux.die.net/man/1/awk]

'Linux' 카테고리의 다른 글

linux 수동 trim  (0) 2019.08.16
jq - json in linux command line  (0) 2019.08.16
smart trip temperature?  (0) 2019.08.05
uniq  (0) 2019.07.30
musl / uclibc  (0) 2019.07.15
Posted by 구차니

당일 치기로 오려다가

피곤하기도 하고 아내가 집에 들어가기 싫다고 해서

자고 새벽에 일찍 들어왔는데 나쁘지 않네

 

내가 피곤한것만 빼면?

'개소리 왈왈 > 육아관련 주저리' 카테고리의 다른 글

오늘도 키즈카페  (2) 2019.08.18
키즈카페  (0) 2019.08.17
펜션 놀러옴  (0) 2019.08.10
세탁망 구매  (4) 2019.08.06
삐딱구리 딸래미들  (2) 2019.08.04
Posted by 구차니

자연촌, 여주참숯마을 왔음

 

수영장도 꽤나 여려개 다양하게 있고

실내 1개

실외 5개?

일단은 실외는 전부 간이형 수영장이지만 나름 괜찮은 듯

 

[링크 : http://www.yjcharmsoot.co.kr/]

'개소리 왈왈 > 육아관련 주저리' 카테고리의 다른 글

키즈카페  (0) 2019.08.17
수영장 딸린 펜션  (4) 2019.08.11
세탁망 구매  (4) 2019.08.06
삐딱구리 딸래미들  (2) 2019.08.04
요즘 시국에 롯데마트를 가는것도 웃기긴 한데  (2) 2019.08.03
Posted by 구차니

유틸리티 쓰니 text로 생성하고

기존에 다른 사람이 생성한걸 보니 character varying으로 많이 해놔서 타입을 보니.

 

text = varchar (무제한)

char = char (고정 길이)

varchar = character varying (길이 제한)

 

타입자체가 성능에 영향을 미치지는 않는다는데.. 어느게 나으려나 고민할 필요도 없는건가..

Different from other database systems, in PostgreSQL, there is no performance difference among three character types. In most situation, you should use text or varchar, and varchar(n) if you want PostgreSQL to check for the length limit.

[링크 : http://www.postgresqltutorial.com/postgresql-char-varchar-text/]

[링크 : https://codeday.me/ko/qa/20190305/2011.html]

 

 

'프로그램 사용 > postgreSQL' 카테고리의 다른 글

postgres sequence - auto increment  (0) 2019.08.13
postgresql 변수 타입  (0) 2019.08.12
postgresql - 테이블 형상 보기  (0) 2019.08.08
psql 테이블 목록보기  (0) 2019.08.08
pgfutter  (0) 2019.08.06
Posted by 구차니

mysql에서는 desc tablename으로 봤는데

postgresql에서는 아래처럼 보면 된다.

\d+ tablename

[링크 : https://stackoverflow.com/questions/109325/postgresql-describe-table]

 

+

위 링크에서 보면 oracle은

describe tablename;

인듯

'프로그램 사용 > postgreSQL' 카테고리의 다른 글

postgresql 변수 타입  (0) 2019.08.12
postgres 문자열 타입  (0) 2019.08.09
psql 테이블 목록보기  (0) 2019.08.08
pgfutter  (0) 2019.08.06
postgres \COPY  (0) 2019.08.06
Posted by 구차니

워.. \dt나 \d보다 확실하게 나오네

 

select * from pg_tables;

[링크 : https://enjoyprogramming.tistory.com/7]

'프로그램 사용 > 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
Posted by 구차니