MCPcopy Index your code
hub / github.com/MaterializeInc/demos / query

Method query

connection-examples/java/query.java:29–42  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

27 }
28
29 public void query() {
30
31 String SQL = "SELECT * FROM my_view";
32
33 try (Connection conn = connect();
34 Statement stmt = conn.createStatement();
35 ResultSet rs = stmt.executeQuery(SQL)) {
36 while (rs.next()) {
37 System.out.println(rs.getString("my_column"));
38 }
39 } catch (SQLException ex) {
40 System.out.println(ex.getMessage());
41 }
42 }
43
44 public static void main(String[] args) {
45 App app = new App();

Callers 15

mainMethod · 0.95
insert.phpFile · 0.45
query.phpFile · 0.45
source.phpFile · 0.45
views.phpFile · 0.45
mainFunction · 0.45
mainFunction · 0.45
mainFunction · 0.45
mainFunction · 0.45
mainFunction · 0.45
subscribeFunction · 0.45
run_queryFunction · 0.45

Calls 1

connectMethod · 0.95

Tested by

no test coverage detected