use of com.github.mgramin.sqlboot.model.uri.wrappers.SqlPlaceholdersWrapper 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.uri.wrappers.SqlPlaceholdersWrapper 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.uri.wrappers.SqlPlaceholdersWrapper 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