Mercurial > hg > monetdb-java
comparison example/SQLImport.java @ 85:073ee535234b embedded
Ok. Now everything compiles back with Ant again. Moved the Embedded stuff to the temporary MonetDBJavaLite repository before moving into the suggested MonetDBLite repository. The soon generated Embedded Connection jar will have a dependency on the regular JDBC driver jar. The JDBC driver jar is independent, however if attempted to create an Embedded Connection with will try to load the respective class from the class loader, failing if the Embedded Connection jar is not present. If anyone in the group has expertise on Java Class dynamic loading, please contact me because there might be issues on this. Removed the pom.xml file because the regular maven compilation fails.
author | Pedro Ferreira <pedro.ferreira@monetdbsolutions.com> |
---|---|
date | Fri, 30 Dec 2016 18:55:13 +0000 (2016-12-30) |
parents | a5a898f6886c |
children | 6f74e01c57da |
comparison
equal
deleted
inserted
replaced
84:d82bf33bf8a6 | 85:073ee535234b |
---|---|
35 } | 35 } |
36 | 36 |
37 // open the file | 37 // open the file |
38 BufferedReader fr = new BufferedReader(new FileReader(args[0])); | 38 BufferedReader fr = new BufferedReader(new FileReader(args[0])); |
39 | 39 |
40 // make sure the driver is loaded | 40 // Class.forName("nl.cwi.monetdb.jdbc.MonetDriver"); |
41 Class.forName("nl.cwi.monetdb.jdbc.MonetDriver"); | |
42 // request a connection suitable for Monet from the driver manager | 41 // request a connection suitable for Monet from the driver manager |
43 // note that the database specifier is currently not implemented, for | 42 // note that the database specifier is currently not implemented, for |
44 // Monet itself can't access multiple databases. | 43 // Monet itself can't access multiple databases. |
45 // turn on debugging | 44 // turn on debugging |
46 Connection con = DriverManager.getConnection("jdbc:monetdb://localhost/database?debug=true", "monetdb", "monetdb"); | 45 Connection con = DriverManager.getConnection("jdbc:monetdb://localhost/database?debug=true", "monetdb", "monetdb"); |