Skip to content
Storage adapter for MS SQL Servers
C# TSQL
Branch: develop
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
docs
source
.gitignore
.gitmodules
GitVersion.yml
LICENSE
README.md
appveyor.yml
internalize_exclude.txt

README.md

Jobbr MSSql Storage Provider Develop build status

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.

Master build status NuGet-Stable Develop build status NuGet Pre-Release

Installation

First of all you'll need a working jobserver by using the usual builder as shown in the demos (jobbrIO/jobbr-demo). In addition to that you'll need to install the NuGet Package for this extension.

NuGet

Install-Package Jobbr.Storage.MsSql

Configuration

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();

Database-Schema

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.

Diagram

License

This software is licenced under GPLv3. See LICENSE, and the related licences of 3rd party libraries below.

Acknowledgements

This extension is built using the following great open source projects

Credits

This application was built by the following awesome developers:

  • Michael Schnyder
  • Oliver Zürcher
You can’t perform that action at this time.