Merging .db files

Got a LiveCode personal license? Are you a beginner, hobbyist or educator that's new to LiveCode? This forum is the place to go for help getting started. Welcome!

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller

Post Reply
Babyprincess
Posts: 17
Joined: Sat Aug 10, 2013 3:23 pm

Merging .db files

Post by Babyprincess » Sun Aug 18, 2013 4:28 pm

Hello everyone,


Does anyone know how i can merge a few .db files into one ?

Mark
Livecode Opensource Backer
Livecode Opensource Backer
Posts: 5150
Joined: Thu Feb 23, 2006 9:24 pm
Contact:

Re: Merging .db files

Post by Mark » Wed Aug 21, 2013 10:52 am

Hi,

Do you mean SQLite files? Probably, you need to write a script that reads all data from the two (or more) databases and stores it in one new database. After this, you need to rewrite all scripts that used the two separate files and make those scripts compatible with the new database.

You might do this from the sqlite3 command line:

Code: Select all

.mode insert 
.out file.sql 
SELECT * FROM table_name
Kind regards,

Mark
The biggest LiveCode group on Facebook: https://www.facebook.com/groups/livecode.developers
The book "Programming LiveCode for the Real Beginner"! Get it here! http://tinyurl.com/book-livecode

Post Reply