Exemple #1
0
def p_CREATEINDEX2(t):
    '''CREATEINDEX      : create index id on id  para id ORDEN parc '''
    listaBNF.append("CREATEINDEX ::= create index " + str(t[3]) + " on " +
                    str(t[5]) + " para " + str(t[7]) + " ORDEN parc")
    i = Index(str(t[3]), str(t[5]), [Terminal("identificador", str(t[7]))])
    i.orden = t[8]
    t[0] = i
Exemple #2
0
def p_CREATEINDEX3(t):
    '''CREATEINDEX      : create unique index id on id para LEXP parc '''
    listaBNF.append("CREATEINDEX ::= create unique index " + str(t[4]) +
                    " on " + str(t[6]) + " para LEXP parc")
    i = Index(str(t[4]), str(t[6]), t[8])
    i.unique = True
    t[0] = i
Exemple #3
0
def p_CREATEINDEX1(t):
    '''CREATEINDEX      : create index id on id using hash para LEXP parc '''
    listaBNF.append("CREATEINDEX ::= create index " + str(t[3]) + " on " +
                    str(t[5]) + " using hash para LEXP parc")
    i = Index(str(t[3]), str(t[5]), t[9])
    i.hash = True
    t[0] = i
Exemple #4
0
def p_CREATEINDEX(t):
    '''CREATEINDEX      : create index id on id para LEXP parc '''
    listaBNF.append("CREATEINDEX ::= create index " + str(t[3]) + " on " +
                    str(t[5]) + " para LEXP parc")
    t[0] = Index(str(t[3]), str(t[5]), t[7])