LiteMigrator is a tiny cross-platform SQLite migration framework for Xamarin (.NET Standard) inspired by Fluent Migrator. This framework was built for use with Xamarin 🐒 projects, so it needs to be quick, simple and reliable when managing databases
Sponsored by Xeno Innovations, this project was made with nerd-love.
This project is currently in beta
Check out the sample project's source code LiteMigrator.Sample
Platform | Status |
---|---|
Android | Yes |
UWP | In-progress |
iOS | Needs Verified |
Contribute today and get your platform supported 👍
Get LiteMigrator on NuGet today!
Currently, we recommend you add this to your project using Git's submodule so you always get the latest.
Detailed instructions can be found on the Using LiteMigrator wiki page.
- Add LiteMigrator project to your solution
- Create a folder in your solution to hold the scripts
- Add SQL files as Embedded Resources
- You must use the naming convention, "YYYYMMDDhhmm-FileName.sql"
- Wire-up the controller
public async Task InstallMigrationsAsync()
{
// Your EXE/DLL with the scripts
var resourceAssm = Assembly.GetExecutingAssembly();
var dbPath = @"C:\TEMP\MyDatabase.db3";
var migsNamespace = "MyProjNamespace.Scripts";
var liteMig = new LiteMigration(dbPath, resourceAssm, migsNamespace);
bool = success = await liteMig.MigrateUpAsync();
}
Give it a test drive and support making LiteMigrator better :)
- Fork on GitHub
- Create a branch
- Code (_and add tests)
- Create a Pull Request (PR) on GitHub
- Target the
develop
branch and we'll get it merged up tomaster
- Target the
master
branch for hotfixes
- Target the
- Get the PR merged
- Welcome to our contributors' list!
This project could use your assistance to crush limitation Please visit the Known Limitations wiki page