1#testscripts_WithNoReg.py
  2 #!/usr/bin/env python
  3 import re
  4 import sys
  5 import fileinput
  6
  7 def parse (filename):
  8#    print "1"
  9     for line in fileinput.input(filename, inplace=True):
 10         if "def test" in line:
 11             print '    @classification('+'"'+'no_regression'+'"'+')'
 12         print line,
 13
 14
 15 if __name__ == "__main__":
 16     if len(sys.argv) <= 1:
 17         print "python testcsripts_WithNoReg.py [filename]"
 18     sys.exit(parse(sys.argv[1]))

여기서 핵심 2가지.

  • fileinput.input(filename, inplace=True): 변경된 파일을 따로 output으로 내보내지 않고 inplace 로 변경한다.
  • print line, : ,를 써서 line사이의 공백을 없앤다 -> 맞나? 확인필요.
Posted by 썽민
,

LOB? BLob?

Computer/Database 2014. 2. 7. 10:57

LOB란,

Large Object type이다. (Type for store larger data, has provided since Oracle v8)

옛날에는 대용랑 데이터 처리할 때, long타입으로 처리를 할 수 밖에 없었다. 이 때 column은 한 테이블에 하나만 사용할 수 있으며, 최대 크기는 2GB였다.

이런 문제를 보완하기 위해 나온 것이 바로 Lob타입이다!

Lob타입은, 테이블에 여러 개의 column을 생성할 수 있으며, 최대 크기가 4GB!

  • Blob : (Binary Large Object), 이진 바이너리 데이터의 저장시 사용
  • Clob : (Character Large Object), 문서 데이터의 저장시 사용
  • BFILE : 외부 파일에 저장된 이진 데이터가 있는 경로의 저장시 사용

 

Posted by 썽민
,

default 가 less여서,, 그렇다고 한다.

 

git config --global core.pager more

 

이걸 추가하면 완료!

Posted by 썽민
,