Support DuckDB

This commit is contained in:
sunkaixuan
2025-04-20 12:40:08 +08:00
parent 621413ac6d
commit 8e7353e88a
2 changed files with 4 additions and 0 deletions

View File

@@ -557,6 +557,9 @@ namespace SqlSugar
Check.Exception(SugarCompatible.IsFramework, "GaussDBNative only support .net core"); Check.Exception(SugarCompatible.IsFramework, "GaussDBNative only support .net core");
InstanceFactory.CustomDllName = "SqlSugar.GaussDBCore"; InstanceFactory.CustomDllName = "SqlSugar.GaussDBCore";
break; break;
case DbType.DuckDB:
InstanceFactory.CustomDllName = SugarCompatible.IsFramework ? throw new Exception("Only.NET CORE is supported") : "SqlSugar.DuckDBCore";
break;
default: default:
throw new Exception("ConnectionConfig.DbType is null"); throw new Exception("ConnectionConfig.DbType is null");
} }

View File

@@ -38,6 +38,7 @@ namespace SqlSugar
HANA, HANA,
DB2, DB2,
GaussDBNative, GaussDBNative,
DuckDB,
Custom =900 Custom =900
} }
} }