mirror of
https://gitee.com/dotnetchina/SqlSugar.git
synced 2025-09-20 02:29:39 +08:00
Support DuckDB
This commit is contained in:
@@ -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");
|
||||||
}
|
}
|
||||||
|
@@ -38,6 +38,7 @@ namespace SqlSugar
|
|||||||
HANA,
|
HANA,
|
||||||
DB2,
|
DB2,
|
||||||
GaussDBNative,
|
GaussDBNative,
|
||||||
|
DuckDB,
|
||||||
Custom =900
|
Custom =900
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user