mirror of
				https://github.com/nsnail/FreeSql.git
				synced 2025-11-04 17:20:49 +08:00 
			
		
		
		
	- 增加 QuestDB 时序数据库支持;(感谢 Daily 贡献)#1429
This commit is contained in:
		@@ -2,7 +2,6 @@
 | 
			
		||||
using FreeSql.Internal;
 | 
			
		||||
using FreeSql.Internal.Model;
 | 
			
		||||
using Newtonsoft.Json.Linq;
 | 
			
		||||
using Npgsql.LegacyPostgis;
 | 
			
		||||
using NpgsqlTypes;
 | 
			
		||||
using System;
 | 
			
		||||
using System.Collections;
 | 
			
		||||
@@ -412,12 +411,6 @@ namespace FreeSql.QuestDb
 | 
			
		||||
                            "JsonConvert.SerializeObject({0})", "Dictionary<string, string>",
 | 
			
		||||
                            typeof(Dictionary<string, string>), typeof(Dictionary<string, string>), "{0}", "GetValue")
 | 
			
		||||
                    },
 | 
			
		||||
                    {
 | 
			
		||||
                        (int)NpgsqlDbType.Geometry,
 | 
			
		||||
                        ("(PostgisGeometry)", "JsonConvert.DeserializeObject<PostgisGeometry>({0})",
 | 
			
		||||
                            "JsonConvert.SerializeObject({0})", "PostgisGeometry", typeof(PostgisGeometry),
 | 
			
		||||
                            typeof(PostgisGeometry), "{0}", "GetValue")
 | 
			
		||||
                    },
 | 
			
		||||
 | 
			
		||||
                    /*** array ***/
 | 
			
		||||
 | 
			
		||||
@@ -665,12 +658,6 @@ namespace FreeSql.QuestDb
 | 
			
		||||
                            typeof(Dictionary<string, string>[]), typeof(Dictionary<string, string>[]), "{0}",
 | 
			
		||||
                            "GetValue")
 | 
			
		||||
                    },
 | 
			
		||||
                    {
 | 
			
		||||
                        (int)(NpgsqlDbType.Geometry | NpgsqlDbType.Array),
 | 
			
		||||
                        ("(PostgisGeometry[])", "JsonConvert.DeserializeObject<PostgisGeometry[]>({0})",
 | 
			
		||||
                            "JsonConvert.SerializeObject({0})", "PostgisGeometry[]", typeof(PostgisGeometry[]),
 | 
			
		||||
                            typeof(PostgisGeometry[]), "{0}", "GetValue")
 | 
			
		||||
                    },
 | 
			
		||||
                };
 | 
			
		||||
 | 
			
		||||
        public string GetCsConvert(DbColumnInfo column) => _dicDbToCs.TryGetValue(column.DbType, out var trydc)
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user