Skip to content

Makes grate available as a tool in Cake.

License

Notifications You must be signed in to change notification settings

cake-contrib/Cake.grate

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

30 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Cake.grate

Build NuGet package

Makes grate available as a tool in Cake. grate is a re-write of RoundhousE for reasons detailed a RoundhousE issue.

From the grate documentation:

grate is a SQL scripts migration runner, using plain, old SQL for migrations. No meta-language, no code, no config, no EF migrations. It gives you full flexibility, and full control of your migrations, and lets you use all the fancy features of you particular database system. You are not constrained to any lowest common feature set of all supported databases.

Table of Contents

Install

#addin nuget:?package=Cake.grate

Usage

#tool "dotnet:?package=grate&version=1.7.4"
#addin nuget:?package=Cake.grate

Task("MyTask").Does(() => {
  Grate(new GrateSettings()
    {
        ConnectionString = "Server=(local);Database=mydatabase;Trusted_Connection=True;TrustServerCertificate=true;"
    });
});

Compatibility

The version number of Cake.grate keeps in step with the versions released by grate, e.g. x.x.x of Cake.grate has been tested against and contains the features of grate version x.x.x.

However, providing there are no breaking changes in a more recent grate version, it is likely Cake.grate will be compatible with it, just specify grate version in the tool referenc