Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support for SQLitePCLRaw 2.0 version #865

Open
letscodewithkalyan opened this issue Aug 23, 2019 · 12 comments
Open

Support for SQLitePCLRaw 2.0 version #865

letscodewithkalyan opened this issue Aug 23, 2019 · 12 comments

Comments

@letscodewithkalyan
Copy link

No description provided.

@rbev
Copy link

rbev commented Nov 8, 2019

This is critical as other projects have moved on to the 2.0 version and there are breaking changes, this means either migrating away from this product or remaining version locked on everything else

@ericsink
Copy link
Contributor

ericsink commented Nov 8, 2019 via email

@rbev
Copy link

rbev commented Nov 8, 2019

While that will probably get me by temporarily there is a perceived risk within my organisation when publishing "beta" software into production.

@bcaceiro
Copy link

Any news on this subject?

@JKennedy24
Copy link

Just want to clarify. Does V1.7-beta support Sqlite.Core 2.0.2?

Asking as AppCenter has been updated to use Sqlite.Core 2.0.2 so there is more pressure to upgrade
ref: microsoft/appcenter-sdk-dotnet#569 (comment)

@Brosten
Copy link

Brosten commented Apr 21, 2020

How stable could we consider the beta to be?

@nicolgit
Copy link

any news on support to 2.0.2?

@ericsink
Copy link
Contributor

Lots of people are using the 1.7 "beta" with no problems. I don't think of it as a beta. I think of it as a shipping release with an unfortunate label.

@xhashimks
Copy link

xhashimks commented Aug 12, 2020

@ericsink
I tried 1.7-beta and it worked. But i am facing issue while running this in iOS14 beta. Throwing below exception

{SQLite.SQLiteException: Row
at SQLite.SQLiteCommand.ExecuteNonQuery () [0x000ca] in :0
at SQLite.SQLiteConnection.Execute (System.String query, System.Object[] args) [0x00039] in :0
at SQLite.SQLiteConnection.SetKey (System.String key) [0x00026] in :0
at SQLite.SQLiteConnection..ctor (SQLite.SQLiteConnectionString connectionString) [0x0011a] in :0
at SQLite.SQLiteConnectionWithLock..ctor (SQLite.SQLiteConnectionString connectionString) [0x0000b] in :0
at SQLite.SQLiteConnectionPool+Entry.Connect () [0x0001c] in :0
at SQLite.SQLiteConnectionPool.GetConnection (SQLite.SQLiteConnectionString connectionString) [0x00048] in :0
at SQLite.SQLiteAsyncConnection.GetConnection () [0x00005] in :0
at SQLite.SQLiteAsyncConnection+<>c__DisplayClass32_01[T].<WriteAsync>b__0 () [0x00000] in <b2b209c20ae740d78774d0d2d1abab3c>:0 at System.Threading.Tasks.Task1[TResult].InnerInvoke () [0x0000f] in /Library/Frameworks/Xamarin.iOS.framework/Versions/Current/src/Xamarin.iOS/external/corert/src/System.Private.CoreLib/src/System/Threading/Tasks/Future.cs:534
at System.Threading.Tasks.Task.Execute () [0x00000] in /Library/Frameworks/Xamarin.iOS.framework/Versions/Current/src/Xamarin.iOS/external/corert/src/System.Private.CoreLib/src/System/Threading/Tasks/Task.cs:2319 }

var sqlConnectionOptions = new SQLiteConnectionString(dbPath, true, "TestKey");
database = new SQLiteAsyncConnection(sqlConnectionOptions);
database.CreateTableAsync<UserData>().Wait();  // Exception throwing in this line

public class UserData
    {
        [PrimaryKey]
        public string UserId { get; set; }
        public int RollNo { get; set; }
        public string Created { get; set; }
        public string Updated { get; set; }
        public bool IsActive { get; set; }
    }

@ericsink
Copy link
Contributor

1.7 is out of beta, so you can use the released version

@xhashimks
Copy link

@ericsink

I tried the released one. But I am getting file is not database error. Because, in my previous app I was using the encrypted DB created using sqlite-net-pcl. But after upgrade, for encryption i have to use sqlite-net-sqlcipher. So when I upgrade from app using sqlite-net-pcl to app using sqlite-net-pclcipher, i am getting file is not a database error. Please help me. I am stuck here

@ericsink
Copy link
Contributor

When you updated to SQLitePCLRaw 2.0, the version of sqlcipher was updated as well, from 3.x to 4.x. Version 4 does not work with 3.x databases by default. This may be the problem you are seeing.

I cannot provide much support for using SQLCipher. I usually recommend that people purchase SQLCipher builds/support from Zetetic.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

8 participants