Package org.gephi.io.database.drivers

Examples of org.gephi.io.database.drivers.SQLiteDriver


    public boolean execute() {
        Connection connection = null;
        try {
            if (path.getParentFile().exists()) {
                //Create connection
                SQLiteDriver sQLiteDriver = Lookup.getDefault().lookup(SQLiteDriver.class);
                String connectionUrl = SQLUtils.getUrl(sQLiteDriver, path.getAbsolutePath(), 0, "");
                connection = sQLiteDriver.getConnection(connectionUrl, "", "");

                //Create statement and create nodes and egdes table
                Statement statement = connection.createStatement();
                statement.setQueryTimeout(30)// set timeout to 30 sec.
View Full Code Here

TOP

Related Classes of org.gephi.io.database.drivers.SQLiteDriver

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.