コード例 #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)