Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to create EER model from a sqlite db

i'm using sqlitejdbc libraries to create a db using java. Now i need to generate eer model from existing sqlite db stored in a file. In past i used MySqlWorkbench to generate eer from a mysql db, but i don't know how to do that on sqlite db.. can someone help me? thanks!!

like image 515
Jayyrus Avatar asked Jun 10 '12 22:06

Jayyrus


People also ask

Can we generate ER diagram from database?

Lucidchart makes it easy to visualize your database structure and build ER diagrams online quickly and efficiently to save you time. Our ER diagram creator automatically generates your models and connections using our data import feature to structure your database tables and schemas directly onto the canvas.


1 Answers

  1. Open SQLite file using SQLite Database Browser
  2. Export to SQL
  3. Import (using plugin) into Workbench

Details:

If you have the sqlite file available, open it using the free SQLite Database Browser. This gives you a few ways in which to inspect the database:

  • view table structure
  • view table content
  • issue queries against content
  • and more...

Beyond this, you can opt for the SQL file export. Go to "File > Export > Database to SQL file" option inside the SQLite Database Browser.

Once you create the SQL output file, use the SQLite export plugin for MySQL Workbench - especially if you're already familiar with MySQL's Workbench tool.

like image 128
MiStr Avatar answered Sep 21 '22 02:09

MiStr