MCPcopy Create free account
hub / github.com/cmu-db/benchbase / selectColValues

Method selectColValues

src/main/java/com/oltpbenchmark/util/SQLUtil.java:538–542  ·  view source on GitHub ↗
(DatabaseType databaseType, Table catalog_tbl, String col)

Source from the content-addressed store, hash-verified

536 }
537
538 public static String selectColValues(DatabaseType databaseType, Table catalog_tbl, String col) {
539 String tableName =
540 (databaseType.shouldEscapeNames() ? catalog_tbl.getEscapedName() : catalog_tbl.getName());
541 return String.format("SELECT %s FROM %s", col, tableName);
542 }
543
544 /** Extract the catalog from the database. */
545 public static AbstractCatalog getCatalog(

Callers 1

makeWorkersImplMethod · 0.95

Calls 4

shouldEscapeNamesMethod · 0.80
getEscapedNameMethod · 0.80
formatMethod · 0.80
getNameMethod · 0.65

Tested by

no test coverage detected