Coder Social home page Coder Social logo

koljenovic / dbf-jdbc-driver Goto Github PK

View Code? Open in Web Editor NEW

This project forked from wise-coders/dbf-jdbc-driver

0.0 0.0 0.0 4.25 MB

DBF & FoxPro JDBC Driver | DbSchema DBF Designer

Home Page: https://dbschema.com/database-designer/FoxPro.html

License: Other

Java 100.00%

dbf-jdbc-driver's Introduction

DBF-xBase-FoxPro JDBC Driver

The DBF-xBase-FoxPro JDBC driver is provided by DbSchema DBF Designer

Features

  • Connect to DBF files
  • Execute SELECT with JOINS, WHERE, GROUP BY, ORDER BY queries
  • INSERT, UPDATE, DELETE data
  • Create new tables, add or remove columns, etc.

License

GPL-3 dual license. The driver is free to use by everyone. Code modifications allowed only to the current repository as pull requests under https://github.com/wise-coders/dbf-jdbc-driver

JDBC URL

jdbc:dbschema:dbf:?[charset=ISO_8859_1]

Connection con = DriverManager.getConnection( "jdbc:dbschema:dbf:/sample_dbf_folder" );
Statement st = con.createStatement();
ResultSet rs = st.executeQuery("select * from cars")
while( rs.next() ){
    ....
}

Download the JDBC Driver

The driver can be downloaded from the DbSchema website.

How the Driver Works

The driver loads all DBF data into an H2 cache database stored in <user.home>/.DbSchema/dbf-jdbc-driver/ The data can be modified, any kind of queries can be executed. To save back data to dbf files use:

Statement st = connection.createStatement();
st.execute("save dbf to <folder_path>");

We save data to a different path, just to avoid any storage issues and don't loose any information.

To clear the caches and reload a file next time you connect, do

Statement st = connection.createStatement();
st.execute("reload <file_path>");

We appreciate any contributions to this repository.

How to Test the JDBC Driver

The driver can be tested by downloading and installing DbSchema DBF and FoxPro Designer. DbSchema can be evaluated 15 for free.

There is no need to register or download the driver - DbSchema will do everything for you.

DBF xBase Connection Dialog

After connecting DbSchema will reverse engineer the database structure and show it as diagrams.

DBF Database Diagrams using DbSchema

Use the Query Editor to execute queries with JOINS, GROUP BY and ORDER BY.

xBase DBF Query Editor

Use the Relational Data Browse to explore data from multiple tables simultaneously. DbSchema can create virtual foreign keys which will be used in the Data Browse.

xBase DBF Query Editor

dbf-jdbc-driver's People

Contributors

matteobaccan avatar wise-coders avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.