예제 #1
0
파일: sql.py 프로젝트: viswajithiii/ringo
def select(table, condition=[], attributes=[], newnames=None):
    if len(attributes):
        attrIdx = table.getIndex(attributes)
        t = table.project(attrIdx)
    t = table.select(condition)
    if not newnames is None:
        t.setNames(newnames)
    return t
예제 #2
0
파일: sql.py 프로젝트: Peratham/ringo
def select(table, condition=[], attributes=[], newnames=None):
	if len(attributes):
		attrIdx = table.getIndex(attributes)
		t = table.project(attrIdx)
	t = table.select(condition)
	if not newnames is None:
		t.setNames(newnames)
	return t
예제 #3
0
파일: sql.py 프로젝트: viswajithiii/ringo
def project(table, attributes):
    attrIdx = table.getIndex(attributes)
    return table.project(attrIdx)
예제 #4
0
파일: sql.py 프로젝트: Peratham/ringo
def project(table, attributes):
	attrIdx = table.getIndex(attributes)
	return table.project(attrIdx)