Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
58 commits
Select commit Hold shift + click to select a range
3fc1302
style: remove unused using
Grey-Wind Dec 21, 2024
e405fca
docs: change some comments
Grey-Wind Dec 21, 2024
f0f43e8
docs: add "How To Use" file
Grey-Wind Dec 22, 2024
9a0aa6c
写三个新方法用于读取不同大小的文件文件
Grey-Wind Dec 23, 2024
21800da
统一传参
Grey-Wind Dec 23, 2024
5cb8fe1
扩大缓存
Grey-Wind Dec 23, 2024
fa35dad
加入自动readfile判断
Grey-Wind Dec 23, 2024
9750411
删除无用代码
Grey-Wind Dec 24, 2024
ecc0291
移除对旧版本的支持
Grey-Wind Dec 24, 2024
c8e9a4d
优化读取代码
Grey-Wind Dec 24, 2024
692f409
优化测试代码
Grey-Wind Dec 24, 2024
41b856e
删除无法使用的测试代码
Grey-Wind Dec 24, 2024
097b1ef
优化读取代码
Grey-Wind Dec 24, 2024
364a659
优化测试代码
Grey-Wind Dec 24, 2024
d815c53
重命名文件
Grey-Wind Dec 24, 2024
a66e61e
快速缓存支持
Grey-Wind Dec 27, 2024
80eeca3
更新readme
Grey-Wind Dec 27, 2024
4920f4e
更新版本号
Grey-Wind Dec 27, 2024
9c48a8b
feat: 使用接口
Grey-Wind Dec 27, 2024
a218cc1
refactor: 代码略微优化
Grey-Wind Dec 27, 2024
870ca7f
docs: 更新版本号
Grey-Wind Dec 27, 2024
3449d16
docs: 调整打包设置
Grey-Wind Dec 27, 2024
54268c9
feat: 尝试使用更快的并发词典
Grey-Wind Dec 27, 2024
dd32742
Merge branch 'main' into v1.0.0
Grey-Wind Dec 27, 2024
510cbf4
refactor: 使用抽象类来过渡接口与实现
Grey-Wind Dec 28, 2024
d12e130
docs: 添加更新日志
Grey-Wind Dec 28, 2024
9b48b27
Merge branch 'v1.0.0' of https://github.com/Grey-Wind/TYLDDB-CSharp i…
Grey-Wind Dec 28, 2024
88c56c4
Merge branch 'main' into v1.0.0
Grey-Wind Dec 28, 2024
8a1047d
docs: 修改版权声明
Grey-Wind Dec 28, 2024
be42d7a
docs: 修正版权许可名称
Grey-Wind Dec 28, 2024
42cf92d
docs: 删除旧的发行日志
Grey-Wind Dec 28, 2024
91a965f
docs: 优化注释
Grey-Wind Dec 28, 2024
70213e7
docs: 更新版本号
Grey-Wind Dec 28, 2024
4cdb916
test: 设置单独的类来进行时间测试,而不是很多一样的代码
Grey-Wind Dec 28, 2024
ddbb9ba
feat: 添加写入文件的代码
Grey-Wind Dec 28, 2024
0a42304
test: 写入文件的测试代码
Grey-Wind Dec 28, 2024
c91cbf4
refactor: 简化using
Grey-Wind Dec 29, 2024
c04c3aa
feat: parser
Grey-Wind Dec 29, 2024
9f2c010
feat: rewrite parser
Grey-Wind Dec 29, 2024
47ab038
docs: update release notes
Grey-Wind Dec 29, 2024
104d9de
Merge branch 'main' into v1.0.0
Grey-Wind Dec 29, 2024
be97a20
feat: 优化文件路径输入验证
Grey-Wind Dec 30, 2024
c11689f
chore: 删除不需要的触发器
Grey-Wind Dec 30, 2024
4779471
style: 修改类名
Grey-Wind Dec 30, 2024
1cf749d
feat: 字符串缓存测试
Grey-Wind Dec 30, 2024
23167eb
delete test proj
Grey-Wind Dec 30, 2024
e66327d
refactor: 重构缓存代码结构
Grey-Wind Dec 30, 2024
e3147fd
refactor: 删除接口
Grey-Wind Dec 30, 2024
81ae0b6
feat: 添加int类型缓存
Grey-Wind Dec 30, 2024
c539e61
feat: 添加long类型缓存
Grey-Wind Dec 30, 2024
4b15912
feat: 信号线程锁缓存全部完成
Grey-Wind Dec 30, 2024
541b5be
feat: 并发词典缓存全部完成
Grey-Wind Dec 30, 2024
201e2c6
Merge https://github.com/TYLDDB/TYLDDB-CSharp into v1.0.0
Grey-Wind Dec 30, 2024
8bb6f5c
Merge https://github.com/TYLDDB/TYLDDB-CSharp into v1.0.0
Grey-Wind Jan 6, 2025
0dda952
bugs: fix proj file
Grey-Wind Jan 6, 2025
2969027
style: 添加换行
Grey-Wind Jan 6, 2025
b43787d
refactor: 优化实例化
Grey-Wind Jan 6, 2025
0cedb69
Update TYLDDB.csproj
Grey-Wind Jan 6, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions TYLDDB/Basic/Exception.cs
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ public class TylddbException : Exception
/// </summary>
public TylddbException(string message) : base(message) { }
}

/// <summary>
/// File opening failure<br/>
/// 文件打开失败
Expand All @@ -26,6 +27,7 @@ public class FileOpenFailException : TylddbException
/// </summary>
public FileOpenFailException(string message) : base(message) { }
}

/// <summary>
/// File read failure<br/>
/// 文件读取失败
Expand All @@ -38,6 +40,7 @@ public class FileReadingFailException : TylddbException
/// </summary>
public FileReadingFailException(string message) : base(message) { }
}

/// <summary>
/// File not found<br/>
/// 文件未找到
Expand All @@ -50,6 +53,7 @@ public class FileNotFoundException : TylddbException
/// </summary>
public FileNotFoundException(string message) : base(message) { }
}

/// <summary>
/// The file path is null or space<br/>
/// 文件路径为null或空白
Expand All @@ -62,6 +66,7 @@ public class FilePathIsNullOrWhiteSpace : TylddbException
/// </summary>
public FilePathIsNullOrWhiteSpace(string message) : base(message) { }
}

/// <summary>
/// Incorrect or invalid data<br/>
/// 错误或无效的数据
Expand All @@ -74,6 +79,7 @@ public class InvalidDataException : TylddbException
/// </summary>
public InvalidDataException(string message) : base(message) { }
}

/// <summary>
/// Database not found<br/>
/// 未找到数据库
Expand All @@ -86,6 +92,7 @@ public class DatabaseNotFoundException : TylddbException
/// </summary>
public DatabaseNotFoundException(string message) : base(message) { }
}

/// <summary>
/// Description Failed to obtain the database content<br/>
/// 数据库内容获取失败
Expand Down
46 changes: 42 additions & 4 deletions TYLDDB/TYLDDB.cs
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,29 @@ public class LDDB
/// </summary>
public LDDB()
{
// NOTHING HERE!
database = new Database(); // 实例化数据库操作类

// 实例化并发词典
cdStringDictionary = new CdStringDictionary();
cdShortDictionary = new CdShortDictionary();
cdLongDictionary = new CdLongDictionary();
cdIntegerDictionary = new CdIntegerDictionary();
cdFloatDictionary = new CdFloatDictionary();
cdDoubleDictionary = new CdDoubleDictionary();
cdDecimalDictionary = new CdDecimalDictionary();
cdCharDictionary = new CdCharDictionary();
cdBooleanDictionary = new CdBooleanDictionary();

// 实例化信号词典
stlStringDictionary = new StlStringDictionary();
stlShortDictionary = new StlShortDictionary();
stlLongDictionary = new StlLongDictionary();
stlIntegerDictionary = new StlIntegerDictionary();
stlFloatDictionary = new StlFloatDictionary();
stlDoubleDictionary = new StlDoubleDictionary();
stlDecimalDictionary = new StlDecimalDictionary();
stlCharDictionary = new StlCharDictionary();
stlBooleanDictionary = new StlBooleanDictionary();
}

///////////////////////////////////////////////////// 私有字段
Expand All @@ -29,9 +51,25 @@ public LDDB()
private string _database; // 存储正在访问的数据库
private string _databaseContent; // 存储数据库内容
private bool _isRead = false; // 是否已调用读取文件
private Database database = new Database();
private CdStringDictionary cdStringDictionary = new CdStringDictionary();
private StlStringDictionary StlStringDictionary = new StlStringDictionary();
private Database database;
private CdStringDictionary cdStringDictionary;
private CdShortDictionary cdShortDictionary;
private CdLongDictionary cdLongDictionary;
private CdIntegerDictionary cdIntegerDictionary;
private CdFloatDictionary cdFloatDictionary;
private CdDoubleDictionary cdDoubleDictionary;
private CdDecimalDictionary cdDecimalDictionary;
private CdCharDictionary cdCharDictionary;
private CdBooleanDictionary cdBooleanDictionary;
private StlStringDictionary stlStringDictionary;
private StlShortDictionary stlShortDictionary;
private StlLongDictionary stlLongDictionary;
private StlIntegerDictionary stlIntegerDictionary;
private StlFloatDictionary stlFloatDictionary;
private StlDoubleDictionary stlDoubleDictionary;
private StlDecimalDictionary stlDecimalDictionary;
private StlCharDictionary stlCharDictionary;
private StlBooleanDictionary stlBooleanDictionary;

///////////////////////////////////////////////////// 公开字段
/// <summary>
Expand Down
2 changes: 1 addition & 1 deletion TYLDDB/TYLDDB.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<TargetFrameworks>netstandard2.1;net6.0;net8.0;net9.0</TargetFrameworks>
<GeneratePackageOnBuild>True</GeneratePackageOnBuild>
<Title>TYLDDB.NET</Title>
<Version>1.0.0-alpha.4</Version>
<Version>1.0.0-alpha.3p</Version>
<Authors>TYLDDB-Project</Authors>
<PackageLicenseFile>LICENSE</PackageLicenseFile>
<PackageRequireLicenseAcceptance>True</PackageRequireLicenseAcceptance>
Expand Down
10 changes: 1 addition & 9 deletions TimeRecord/TimeRecord.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -5,13 +5,5 @@
<ImplicitUsings>enable</ImplicitUsings>
<Nullable>enable</Nullable>
</PropertyGroup>

<<<<<<<< HEAD:TimeRecord/TimeRecord.csproj
========
<ItemGroup>
<ProjectReference Include="..\TimeRecord\TimeRecord.csproj" />
<ProjectReference Include="..\TYLDDB\TYLDDB.csproj" />
</ItemGroup>

>>>>>>>> cdf9c1039cfeae32fce9aac87ceb4ce2409ec22d:TYLDDB.Utils.FastCache.Test/TYLDDB.Utils.FastCache.Test.csproj

</Project>
Loading