MCPcopy Create free account
hub / github.com/MaterializeInc/demos / source

Method source

connection-examples/java/source.java:30–43  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

28 }
29
30 public void source() {
31
32 String SQL = "CREATE SOURCE counter FROM "
33 + "LOAD GENERATOR COUNTER";
34
35 try (Connection conn = connect()) {
36 Statement st = conn.createStatement();
37 st.execute(SQL);
38 System.out.println("Source created.");
39 st.close();
40 } catch (SQLException ex) {
41 System.out.println(ex.getMessage());
42 }
43 }
44
45 public static void main(String[] args) {
46 App app = new App();

Callers 1

mainMethod · 0.95

Calls 1

connectMethod · 0.95

Tested by

no test coverage detected