Examples of tableNames()


Examples of adipe.translate.ra.Schema.tableNames()

            List<Term> inputTables        = Lists.newArrayList();
            final List<Result> results    = Lists.newArrayList();

            declareTablesThenTranslate(sqlSource, databaseSchema, queries, formulas, inputTables);

            Iterator<String> tableNamesIter = databaseSchema.tableNames().iterator();
            for (Term inputTable : inputTables) {
                // add input tables to {@link results} so that they get borders
                // also add labels with column names
                // TODO refactor this and move to QuietSpreadsheetLayout
                Result result = inputTable.execute();
View Full Code Here

Examples of adipe.translate.ra.Schema.tableNames()

    private static void givenDdlExpectTablesAndColumns(String ddlStatement, String tableName, NamedColumn... expectedColumns)
    {
        Schema s = Schemas.fromDDL(ddlStatement);

        assertThat(s.tableNames())
            .containsOnly(tableName);

        assertThat(s.schemaTable(tableName).namedColumns())
            .usingElementComparator(COMPARE_BY_NAME_AND_TYPE)
            .containsExactly(expectedColumns);
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.