Skip to content
This repository was archived by the owner on Jan 19, 2025. It is now read-only.
/ dvs Public archive

Biblioteca para garantir que seu programa java rode com a versão mais atualizada do banco de dados

License

Notifications You must be signed in to change notification settings

rafacasa/dvs

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

database-version-control

DVS is a java library to manage the version of the database's schema of your software.
All you need to do is have a folder to put the files. In this folder put a file named database.info with a single integer number which means the lastest database schema version. Then, in the same folder, put the sql files from each schema's versions(1.sql, 2.sql, ...). In your code you have to make a implementation of DAO to the SGDB you are using(MySql included in the library). Then you need to have a instance of your DAO and create a instance of Dvs with the Path to the folder you are using and the instance of your DAO. Then you just havo to execute the only public method of Dvs: verifyVersion()

About

Biblioteca para garantir que seu programa java rode com a versão mais atualizada do banco de dados

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages