zoukankan      html  css  js  c++  java
  • 使用SQLite作为Quartz.Net的Job Store

    打算使用最新版本SQLite作为Quartz.Net的Job Store。

    在Quartz.Impl.AdoJobStore.Common下的dbproviders.properties添加以下内容:

    # Sqlite 1.0.61.0 + ADO Net provider for sqlite
    # Driver can be found at : http://sqlite.phxsoftware.com
    quartz.dbprovider.SQLite-106.assemblyName=System.Data.SQLite, Version=1.0.61.0, Culture=neutral, PublicKeyToken=db937bc2d44ff139
    quartz.dbprovider.SQLite-106.connectionType=System.Data.SQLite.SQLiteConnection, System.Data.SQLite, Version=1.0.61.0, Culture=neutral, PublicKeyToken=db937bc2d44ff139
    quartz.dbprovider.SQLite-106.commandType=System.Data.SQLite.SQLiteCommand, System.Data.SQLite, Version=1.0.61.0, Culture=neutral, PublicKeyToken=db937bc2d44ff139
    quartz.dbprovider.SQLite-106.parameterType=System.Data.SQLite.SQLiteParameter, System.Data.SQLite, Version=1.0.61.0, Culture=neutral, PublicKeyToken=db937bc2d44ff139
    #quartz.dbprovider.SQLite-106.dataAdapterType=System.Data.SQLite.SQLiteDataAdapter , System.Data.SQLite, Version=1.0.61.0, Culture=neutral, PublicKeyToken=db937bc2d44ff139
    quartz.dbprovider.SQLite-106.commandBuilderType=System.Data.SQLite.SQLiteCommandBuilder, System.Data.SQLite, Version=1.0.61.0, Culture=neutral, PublicKeyToken=db937bc2d44ff139
    #quartz.dbprovider.SQLite-106.commandBuilderDeriveParametersMethod=DeriveParameters
    quartz.dbprovider.SQLite-106.parameterDbType=System.Data.SQLite.TypeAffinity, System.Data.SQLite, Version=1.0.61.0, Culture=neutral, PublicKeyToken=db937bc2d44ff139
    quartz.dbprovider.SQLite-106.parameterDbTypePropertyName=DbType
    #quartz.dbprovider.SQLite-106.parameterIsNullableProperty=IsNullable
    quartz.dbprovider.SQLite-106.parameterNamePrefix=@
    quartz.dbprovider.SQLite-106.exceptionType=System.Data.SQLite.SQLiteException, System.Data.SQLite, Version=1.0.61.0, Culture=neutral, PublicKeyToken=db937bc2d44ff139
    quartz.dbprovider.SQLite-106.useParameterNamePrefixInParameterCollection=true
    quartz.dbprovider.SQLite-106.bindByName=true

    在Quartz的配置文件中,添加以下内容:

       <add key="quartz.dataSource.default.connectionString" value="Data Source=d:\quartz.db3;Version=3;" />
       <add key="quartz.dataSource.default.provider" value="SQLite-106" />

  • 相关阅读:
    reids 数据库学习
    java 8 学习二(Lambda表达式)
    java 8 学习一(概述)
    update Select 从查询的结果中更新表
    从一段文字中提取出uri信息
    Hadoop3.0磁盘均衡器
    MapReduce 程序mysql JDBC驱动类找不到原因及学习hadoop写入数据到Mysql数据库的方法
    yarn计算一个节点容量及其配置项
    YARN的capacity调度器主要配置分析
    1084 Broken Keyboard (20 分)字符串
  • 原文地址:https://www.cnblogs.com/TerryLiang/p/1489178.html
Copyright © 2011-2022 走看看