Comments (11)
Provided that you have compiled SQLCipher with support for loadable extensions, you can use either of the methods described here:
https://www.sqlite.org/lang_corefunc.html#load_extension
from sqlcipher.
Firstly, thank you for your reply
Secondly, sqlite does have a load_ Extension method.
And I'm using C # references https://github.com/praeclarum/sqlite-net When there is no load_ Extension method. I don't know what to do about it
from sqlcipher.
Hi @dudylan
In sqlite-net
, first you should call EnableLoadExtension
, then you can use Execute
to call the SELECT load_extension(...)
that @sjlombardo linked to.
from sqlcipher.
Hi @developernotes
As shown in the figure, Received the following error
“SQLiteException: not an error“
from sqlcipher.
Similarly, I have also tried this one
from sqlcipher.
Hi @dudylan,
Sorry, can you try calling ExecuteScalar
instead?
from sqlcipher.
@developernotes Unable to install
I submitted an example
Please take a look
from sqlcipher.
https://github.com/dudylan/SqliteCheck
from sqlcipher.
Hi @dudylan,
If you modify your project to include the simple.dll
and set 'Copy to output directory' as 'Copy always' for the file, the following modification to your demo will work properly:
var key = "aaa";
var options = new SQLiteConnectionString("xuanyou.db", true, key: key);
var _db = new SQLiteConnection(options);
_db.EnableLoadExtension(true);
var extensionPath = Path.Combine(AppDomain.CurrentDomain.BaseDirectory, "simple.dll");
_db.ExecuteScalar<int>($"SELECT load_extension('{extensionPath}');");
var value = _db.ExecuteScalar<string>("select simple_query('pinyin')");
from sqlcipher.
Thank you for your answer. I have solved a big problem
from sqlcipher.
Hi @dudylan,
Great, we're happy to hear that resolved the issue.
from sqlcipher.
Related Issues (20)
- RFE: please start making github releases HOT 2
- Null-dereference when calls sqlite3_change64 HOT 2
- Support for visionOS HOT 1
- cannot open input file 'sqlcipher.lib' HOT 1
- `pragma page_size = ...` causes ErrorCorrupt HOT 3
- SQLiteException HOT 1
- Potential Memleak in sqlite3recover.c HOT 1
- Please bump SONAME when removing library symbols. HOT 2
- Confusing license status due to both LICENSE and LICENSE.md. HOT 2
- mbedtls can replace openssl in this repo HOT 1
- make test run failed HOT 1
- sqlite error first open database HOT 1
- Apple Privacy Manifest HOT 8
- Configure: error: cannot run C compiled programs (Github Actions) HOT 3
- Unable to compile in Debian 12.5 (bookworm) running in Docker on RHEL7 HOT 1
- unseen char in shell.c.in HOT 1
- Loading libsqlcipher.so in a dart process segfaults. HOT 1
- documentation in sqlcipher.1 manpage contains some kind of artifact from a merge error HOT 2
- how to clear password HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from sqlcipher.