Skip to content

LazyTarget/jobbr-storage-mssql

 
 

Repository files navigation

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

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

About

Storage adapter for MS SQL Servers

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • C# 100.0%