Esempio n. 1
0
    def visitColumnDefinition(self, ctx: evaql_parser.ColumnDefinitionContext):

        data_type, dimensions = self.visit(ctx.dataType())

        constraint_count = len(ctx.columnConstraint())

        column_constraint_information = ColConstraintInfo()

        for i in range(constraint_count):
            return_type = self.visit(ctx.columnConstraint(i))
            if return_type == ColumnConstraintEnum.UNIQUE:

                column_constraint_information.unique = True

        return data_type, dimensions, column_constraint_information
Esempio n. 2
0
    def visitColumnDefinition(self, ctx: evaql_parser.ColumnDefinitionContext):

        data_type, dimensions = self.visit(ctx.dataType())
        return data_type, dimensions