use of com.github.mgramin.sqlboot.model.resource.DbResource in project sql-boot by sql-boot.
the class FunctionJdbcResourceTypeTest method read.
@Test
@Ignore
public void read() {
final ResourceType function = new FunctionJdbcResourceType(dataSource);
final Stream<DbResource> functions = function.read(new SqlPlaceholdersWrapper(new DbUri("function", asList("*"))));
assertEquals(1, functions.count());
}
use of com.github.mgramin.sqlboot.model.resource.DbResource in project sql-boot by sql-boot.
the class ProcedureJdbcResourceTypeTest method read.
@Test
public void read() {
final ResourceType procedure = new ProcedureJdbcResourceType(dataSource);
final Stream<DbResource> procedures = procedure.read(new SqlPlaceholdersWrapper(new DbUri("procedure", asList("*"))));
assertEquals(1, procedures.count());
}
use of com.github.mgramin.sqlboot.model.resource.DbResource in project sql-boot by sql-boot.
the class TableJdbcResourceTypeTest method read.
@Test
public void read() {
final ResourceType table = new TableJdbcResourceType(dataSource);
final Stream<DbResource> tables = table.read(new SqlPlaceholdersWrapper(new DbUri("table", asList("*"))));
assertEquals(2, tables.count());
}
use of com.github.mgramin.sqlboot.model.resource.DbResource in project sql-boot by sql-boot.
the class FkJdbcResourceTypeTest method read.
@Test
public void read() {
final ResourceType fk = new FkJdbcResourceType(dataSource);
final Stream<DbResource> foreignKeys = fk.read(new SqlPlaceholdersWrapper(new DbUri("fk", asList("*"))));
assertEquals(1, foreignKeys.count());
}
use of com.github.mgramin.sqlboot.model.resource.DbResource in project sql-boot by sql-boot.
the class ChildTableJdbcResourceTypeTest method read.
@Test
public void read() {
final ResourceType pk = new ChildTableJdbcResourceType(dataSource);
final Stream<DbResource> primaryKeys = pk.read(new SqlPlaceholdersWrapper(new DbUri("child_table", asList("*"))));
assertEquals(1, primaryKeys.count());
}
Aggregations