Important Notice: Our web hosting provider recently started charging us for additional visits, which was unexpected. In response, we're seeking donations. Depending on the situation, we may explore different monetization options for our Community and Expert Contributors. It's crucial to provide more returns for their expertise and offer more Expert Validated Answers or AI Validated Answers. Learn more about our hosting issue here.

How do I embed a stand-alone version of Mckoi SQL Database into my application?

0
Posted

How do I embed a stand-alone version of Mckoi SQL Database into my application?

0

You need to include the Mckoi SQL Database jar archive in your application classpath. For example; java -cp mckoidb.jar [Your application start class] NOTE: You do not need to include the JDBCTM Driver jar-ball (mkjdbc.jar) because the JDBCTM Driver is included in mckoidb.jar The local database is accessed through the JDBCTM Driver URL. The following code demonstrates how this works; java.sql.Connection connection; try { // Register the Mckoi JDBC Driver, Class.forName(“com.mckoi.JDBCDriver”).newInstance(); // The Database URL specifies that the database is to be // found in the local file system. String url = “:jdbc:mckoi:local://C:/mckoi/db.conf”; // Make a connection to a local database, connection = java.sql.DriverManager.getConnection( url, username, password); } catch (Exception e) { System.err.println(“JDBC Driver initialization failure.”); e.printStackTrace(System.err); return; } // … ‘connection’ is now used to talk with the Database Note that the example above assumes the d

Related Questions

What is your question?

*Sadly, we had to bring back ads too. Hopefully more targeted.

Experts123