Giter Club home page Giter Club logo

accessconverter's Introduction

AccessConverter

A Microsoft Access database conversion tool to convert old and new Access database formats to some other popular SQL based databases and formats. It is built with Jackess, a Java library for reading and writing MS Access databases. It supports Access 97 and all versions 2000-2013.

Online Application

An online application that uses AccessConverter to convert databases can be found here https://lytrax.io/blog/tools/access-converter.

Dependencies

Usage

It is a command line tool and it accepts arguments. The output result on the screen can be either JSON, JSON prettified or normal (human readable) output. It creates a log file for each conversion that contains the conversion result along with all input parameters and conversion errors.

Parameter Accepts Description
--output-result json
json-pretty
normal
The console output format.
Can be JSON, JSON prettified or normal (human readable) output
--access-file "<path>" The input access database file (mdb, accdb)
--log-file "<path>" The output log file
--zip-file "<path>" The output zip archive file that contains the converted file
--output-file "<path>" The output file with the converted data (.json, .sql, .sqlite3, etc.)
--task convert-json
convert-mysql-dump
convert-sqlite
The task to perform.
Convert to JSON or MySQL dump or SQLite
--json-data assoc
array
Either to use associative arrays or simple indexed tables for tha JSON data
-json-columns Add extended columns information for each table
-mysql-drop-tables Add DROP TABLE IF EXISTS for each table
-compress Compress the output file to a zip archive file
-no-log Does not generate a log file
-show-progress Displays progress status (Current table name, records inserted and total progress percentage)

Examples

Convert a .accdb file to JSON

Output file will have the same filename as the access file and it will be saved at the same location

java -jar AccessConverter.jar --access-file "/home/test/somedb.accdb" --task convert-json --json-data assoc -json-columns

Convert a .accdb file to MySQL dump file

Use different files and location for both output and log files. Console output JSON pretty-print result

java -jar AccessConverter.jar --access-file "/home/test/somedb.accdb" --task convert-mysql-dump --output-file "/home/sql/somedb_dump.sql" --log-file "/home/logs/somedb.log" -mysql-drop-tables --output-result json-pretty

Update 24/5/2018 (v1.1)

  • Added SQL code logging on errors
  • Replaces org.apache.commons.lang3.StrBuilder with org.apache.commons.text.TextStringBuilder due to deprecation of the first

Update 29/5/2018 (v1.1.1)

  • Fixed SQLite names conversion by enclosing all names (tables/fields) using the grave accent character "`"
  • Fixed when an INSERT error would break the entire transaction. Now each row is inserted individually
  • Added progress status when using the flag parameter "-show-progress"

accessconverter's People

Contributors

clytras avatar mcondarelli avatar

Watchers

James Cloos avatar  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.