Beispiel #1
0
        /// <summary>
        /// 从默认路径读取数据库
        /// </summary>
        /// <param name="dbName">数据库名</param>
        /// <returns></returns>
        public static SqliteHelperQueue DbInDefaultPath(string dbName)
        {
            string path = SqliteHelper.DefaultPathForDb(dbName);

            return(new SqliteHelperQueue(path));
        }
Beispiel #2
0
 /// <summary>
 ///
 /// </summary>
 /// <param name="dbPath">数据库路径</param>
 public SqliteHelperQueue(string dbPath)
 {
     _queue        = TaskQueue.CreateGlobalSerialQueue(dbPath);
     _sqliteHelper = new SqliteHelper(dbPath);
 }