This is a storage adapter implementation for the Jobbr .NET JobServer to store job related information on MS SQL Servers. The Jobbr main repository can be found on JobbrIO/jobbr-server.
First of all you'll need a working jobserver by using the usual builder as shown in the demos (jobbrIO/demo). In addition to that you'll need to install the NuGet Package for this extension.
Install-Package Jobbr.Storage.MsSql
Since you already have a configured server, the registration of the MsSQL Storage Provider is quite easy. Actually you only need a working Database-Connection (A list of typical ConnectionStrings can be found on https://www.connectionstrings.com/sql-server/
using Jobbr.Storage.MsSql;
/* ... */
var builder = new JobbrBuilder();
builder.AddMsSqlStorage(config =>
{
// Your connection string
config.ConnectionString = @"Server=.\SQLEXPRESS;Integrated Security=true;InitialCatalog=JobbrDemoTest;";
// Configure your SqlDialect (2017 is set by default)
configuration.DialectProvider = new SqlServer2017OrmLiteDialectProvider();
// Create tables (is set by default to true)
configuration.CreateTablesIfNotExists = true;
// Define how long jobs, triggers & runs should be kept in the database (optional)
configuration.Retention = TimeSpan.FromDays(365);
});
server.Start();
By default, the extension tries to create the tables if they are not present. You can disable this behaviour (see example above) and create the tables manually using the script located on source/Jobbr.Storage.MsSql/CreateTables.sql.
This software is licenced under GPLv3. See LICENSE, and the related licences of 3rd party libraries below.
This extension is built using the following great open source projects
This application was built by the following awesome developers: