From 85b7d14621b33b085b21120a5b85c485c97d487d Mon Sep 17 00:00:00 2001 From: Smit Patel Date: Fri, 8 Sep 2017 10:29:53 -0700 Subject: [PATCH] Update API Check baseline to 2.0 version --- .../baseline.netcore.json | 115 ++++++++++++++---- .../breakingchanges.netcore.json | 12 -- 2 files changed, 91 insertions(+), 36 deletions(-) delete mode 100644 src/Microsoft.Data.Sqlite.Core/breakingchanges.netcore.json diff --git a/src/Microsoft.Data.Sqlite.Core/baseline.netcore.json b/src/Microsoft.Data.Sqlite.Core/baseline.netcore.json index 2740c3f5..37385ed9 100644 --- a/src/Microsoft.Data.Sqlite.Core/baseline.netcore.json +++ b/src/Microsoft.Data.Sqlite.Core/baseline.netcore.json @@ -1,5 +1,5 @@ { - "AssemblyIdentity": "Microsoft.Data.Sqlite, Version=1.0.0.0, Culture=neutral, PublicKeyToken=adb9793829ddae60", + "AssemblyIdentity": "Microsoft.Data.Sqlite, Version=2.0.0.0, Culture=neutral, PublicKeyToken=adb9793829ddae60", "Types": [ { "Name": "Microsoft.Data.Sqlite.SqliteCacheMode", @@ -531,7 +531,7 @@ "Kind": "Method", "Name": "get_Handle", "Parameters": [], - "ReturnType": "System.IntPtr", + "ReturnType": "SQLitePCL.sqlite3", "Virtual": true, "Visibility": "Public", "GenericParameter": [] @@ -684,6 +684,52 @@ "Visibility": "Protected", "GenericParameter": [] }, + { + "Kind": "Method", + "Name": "CreateCollation", + "Parameters": [ + { + "Name": "name", + "Type": "System.String" + }, + { + "Name": "comparison", + "Type": "System.Comparison" + } + ], + "ReturnType": "System.Void", + "Virtual": true, + "Visibility": "Public", + "GenericParameter": [] + }, + { + "Kind": "Method", + "Name": "CreateCollation", + "Parameters": [ + { + "Name": "name", + "Type": "System.String" + }, + { + "Name": "state", + "Type": "T0" + }, + { + "Name": "comparison", + "Type": "System.Func" + } + ], + "ReturnType": "System.Void", + "Virtual": true, + "Visibility": "Public", + "GenericParameter": [ + { + "ParameterName": "T", + "ParameterPosition": 0, + "BaseTypeOrInterfaces": [] + } + ] + }, { "Kind": "Method", "Name": "BeginTransaction", @@ -1038,7 +1084,7 @@ "Kind": "Method", "Name": "get_Handle", "Parameters": [], - "ReturnType": "System.IntPtr", + "ReturnType": "SQLitePCL.sqlite3_stmt", "Virtual": true, "Visibility": "Public", "GenericParameter": [] @@ -1140,6 +1186,17 @@ "Visibility": "Public", "GenericParameter": [] }, + { + "Kind": "Method", + "Name": "Close", + "Parameters": [], + "ReturnType": "System.Void", + "Virtual": true, + "Override": true, + "ImplementedInterface": "System.Data.IDataReader", + "Visibility": "Public", + "GenericParameter": [] + }, { "Kind": "Method", "Name": "Dispose", @@ -1299,6 +1356,19 @@ "Visibility": "Public", "GenericParameter": [] }, + { + "Kind": "Method", + "Name": "GetDateTimeOffset", + "Parameters": [ + { + "Name": "ordinal", + "Type": "System.Int32" + } + ], + "ReturnType": "System.DateTimeOffset", + "Visibility": "Public", + "GenericParameter": [] + }, { "Kind": "Method", "Name": "GetDecimal", @@ -1563,6 +1633,24 @@ "Visibility": "Public", "GenericParameter": [] }, + { + "Kind": "Method", + "Name": "ThrowExceptionForRC", + "Parameters": [ + { + "Name": "rc", + "Type": "System.Int32" + }, + { + "Name": "db", + "Type": "SQLitePCL.sqlite3" + } + ], + "ReturnType": "System.Void", + "Static": true, + "Visibility": "Public", + "GenericParameter": [] + }, { "Kind": "Constructor", "Name": ".ctor", @@ -2708,27 +2796,6 @@ } ], "GenericParameters": [] - }, - { - "Name": "Microsoft.Data.Sqlite.Internal.SqliteEngine", - "Visibility": "Public", - "Kind": "Class", - "Abstract": true, - "Static": true, - "Sealed": true, - "ImplementedInterfaces": [], - "Members": [ - { - "Kind": "Method", - "Name": "UseWinSqlite3", - "Parameters": [], - "ReturnType": "System.Void", - "Static": true, - "Visibility": "Public", - "GenericParameter": [] - } - ], - "GenericParameters": [] } ] } \ No newline at end of file diff --git a/src/Microsoft.Data.Sqlite.Core/breakingchanges.netcore.json b/src/Microsoft.Data.Sqlite.Core/breakingchanges.netcore.json deleted file mode 100644 index dd959ceb..00000000 --- a/src/Microsoft.Data.Sqlite.Core/breakingchanges.netcore.json +++ /dev/null @@ -1,12 +0,0 @@ -[ - { - "TypeId": "public class Microsoft.Data.Sqlite.SqliteConnection : System.Data.Common.DbConnection", - "MemberId": "public virtual System.IntPtr get_Handle()", - "Kind": "Removal" - }, - { - "TypeId": "public class Microsoft.Data.Sqlite.SqliteDataReader : System.Data.Common.DbDataReader", - "MemberId": "public virtual System.IntPtr get_Handle()", - "Kind": "Removal" - } -] \ No newline at end of file