Menu

Tree [r5] /
 History

HTTPS access


File Date Author Commit
 backup 2014-10-18 nomorelogic [r2] Initial commit
 branches 2014-10-18 nomorelogic [r1] Add initial directories
 dbuProjects 2014-10-18 nomorelogic [r2] Initial commit
 lib 2014-10-18 nomorelogic [r2] Initial commit
 tags 2014-10-18 nomorelogic [r1] Add initial directories
 trunk 2014-10-18 nomorelogic [r1] Add initial directories
 dbconfig_dbu.pas 2014-10-18 nomorelogic [r2] Initial commit
 dbcreate_dbu.pas 2014-10-18 nomorelogic [r2] Initial commit
 dbupdater.ico 2014-10-18 nomorelogic [r2] Initial commit
 dbupdater.lpi 2014-10-18 nomorelogic [r4] implemented ProjectsRoot and ProjectName
 dbupdater.lpr 2014-10-18 nomorelogic [r2] Initial commit
 dbupdater.lps 2014-10-18 nomorelogic [r4] implemented ProjectsRoot and ProjectName
 dbupdater.res 2014-10-18 nomorelogic [r2] Initial commit
 dbupdater_define.inc 2014-10-18 nomorelogic [r2] Initial commit
 readme.txt 2014-10-18 nomorelogic [r5] modified readme.txt
 umain.lfm 2014-10-18 nomorelogic [r4] implemented ProjectsRoot and ProjectName
 umain.pas 2014-10-18 nomorelogic [r4] implemented ProjectsRoot and ProjectName
 usimpledbconnectiondialog.lfm 2014-10-18 nomorelogic [r2] Initial commit
 usimpledbconnectiondialog.lrt 2014-10-18 nomorelogic [r2] Initial commit
 usimpledbconnectiondialog.pas 2014-10-18 nomorelogic [r2] Initial commit
 usqlfolderscriptexecuter.pas 2014-10-18 nomorelogic [r2] Initial commit

Read Me

dbupdater
===============

This directory contains the database tool dbupdater.
This is a small tool useful to update a database using a folder with sql script inside.

To keep track of updates, a system table named XSB_UPDATES will be created. 
This table will be updated automatically after the execution of each script sql.
The only restriction is that each script must begin with a series of 6 numerical digits followed by an optional description, for example: 
000001_CREATE_TABLE.SQL

Developer with lazarus on linux x64 but it should run on any platform.

Current supported databases:
- Firebird
- Sqlite 3
- MsSql server

To use:
1) build and run dbupdaterxs
2) select a projects root folder
3) select a project name
4) configure a database connection
5) click update

Your database will be populated by "employee" database (see script in subfolder "employee").


Credits:
http://wiki.lazarus.freepascal.org/SQLdb_Tutorial0
http://wiki.lazarus.freepascal.org/SQLdb_Tutorial1
http://wiki.lazarus.freepascal.org/SQLdb_Tutorial2
http://wiki.lazarus.freepascal.org/SQLdb_Tutorial3
lazarus/examples/database/tsqlscript/

Please see that article for instructions and requirements.
(You'll need database clients and a sample database; see the article) 
Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.