Getting trouble when using SQLiteOpenFlags.ProtectionComplete

Open
#710 0 comments 3 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
4/5
Estimated time
3-5 days
Newbie friendliness
20/100
Issue type
Bug
Clarity
Needs clarification
Activity status
Stale
Tech stack
csharp, ios, sqlite
Domain
database, mobile

Research direction

The issue names no repository file, test, or entry point; start by reproducing the SQLiteConnection(path, SQLiteOpenFlags.ProtectionComplete) call in Xamarin.iOS with the shown path. Done is not defined by the report, so clarify the expected behavior and capture a minimal reproducible case before proposing a fix.

Written by the indexing model from the issue text.

Description

Heelo, Im new to Xamarin.iOS and I just tried to create Database Connection with

SQLiteConnection (path,SQLiteOpenFlags.ProtectionComplete)

it return me this error

SQLite.SQLiteException: Could not open database file: /var/mobile/Containers/Data/Application/9D533769-1204-4591-9214-147CDCF37A2B/Documents/../Library/StockDB.db3 (Misuse).

I find everywhere but can not have an answers for this, can you guys help me? thanks!

Dominant language
C#
Stars
4.5k
Forks
1.4k
PR merge metrics
No merged PRs in 30d

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from praeclarum/sqlite-net

All issues in praeclarum/sqlite-net

Similar issues

More C# issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.