Re: [Interest] Sqlite Cipher in Qt 5.15.8

2022-02-15 Thread Ramakanth Kesireddy
Thanks for your mail. Need to check I can use those plugins as part of Qt 5.15 commercial license. Best Regards, Ramakanth On Mon, 14 Feb, 2022, 06:48 Yang Fan, wrote: > You may search "qt sqlcipher" as the keyword on GitHub, there are some > projects implementing sqlcipher as a plugin. > > On

Re: [Interest] Sqlite Cipher in Qt 5.15.8

2022-02-14 Thread Ramakanth Kesireddy
Hi Frank, Thanks for your mail. It helps to get started. Hope the latest version of openssl would do to leverage hardware accelerated AES on target platform to write our own crypto I/O backed or use sqlcipher with Qt plugin. Best Regards, Ramakanth On Sun, 13 Feb, 2022, 15:43 Frank Mertens,

Re: [Interest] Sqlite Cipher in Qt 5.15.8

2022-02-13 Thread Yang Fan
You may search "qt sqlcipher" as the keyword on GitHub, there are some projects implementing sqlcipher as a plugin. On Sun, Feb 13, 2022 at 6:13 PM Frank Mertens wrote: > Hi Ramakanth, > > I've done that in the past. Sqlite3 has quite easy to override page I/O > functions and it is not to

Re: [Interest] Sqlite Cipher in Qt 5.15.8

2022-02-13 Thread Frank Mertens
Hi Ramakanth, I've done that in the past. Sqlite3 has quite easy to override page I/O functions and it is not to difficult to run your own crypto I/O backend. Of course there is also nowadays SEE... I doubt Qt has anything to offer here, but there is a configure switch to select to system's

Re: [Interest] SQLite database: avoid high memory usage?

2022-01-30 Thread Alexander Dyagilev
Sorry, I was wrong. It is an issue of our app. On 1/24/2022 11:40 AM, Alexander Dyagilev wrote: Hello, Let's suppose we have a database file of 16GB in size. We open it using this code: m_db = QSqlDatabase::addDatabase( "QSQLITE", dbConnectionName());

Re: [Interest] SQLite database: avoid high memory usage?

2022-01-24 Thread Thiago Macieira
On Monday, 24 January 2022 02:41:38 PST Alexander Dyagilev wrote: > Sorry, I don't really know (and I do not even care). But this is what > Windows Task Manager shows to our users, and they are concerned about this. Easy way to answer this: try to open a database that is bigger than the virtual

Re: [Interest] SQLite database: avoid high memory usage?

2022-01-24 Thread Alexander Dyagilev
On 1/24/2022 12:39 PM, Hamish Moffatt via Interest wrote: Did you mean to misspell journal_mode? LOL. OK, fine... ROFL... No, of course no... Are you sure it's real memory usage and not just address space used by mmap? Sorry, I don't really know (and I do not even care). But this is what

Re: [Interest] SQLite database: avoid high memory usage?

2022-01-24 Thread coroberti
On Mon, Jan 24, 2022 at 11:40 AM Hamish Moffatt via Interest wrote: > > On 24/1/22 19:40, Alexander Dyagilev wrote: > > Hello, > > > > Let's suppose we have a database file of 16GB in size. > > > > We open it using this code: > > > > m_db = QSqlDatabase::addDatabase( > > "QSQLITE", >

Re: [Interest] SQLite database: avoid high memory usage?

2022-01-24 Thread Hamish Moffatt via Interest
On 24/1/22 19:40, Alexander Dyagilev wrote: Hello, Let's suppose we have a database file of 16GB in size. We open it using this code: m_db = QSqlDatabase::addDatabase( "QSQLITE", dbConnectionName()); m_db.setConnectOptions("PRAGMA jounal_mode=WAL;");

Re: [Interest] SQLite: mystic bug: No query Unable to fetch row error

2021-01-16 Thread Thiago Macieira
On Saturday, 16 January 2021 02:33:09 PST Alexander Dyagilev wrote: > Actually, the code is this: You may want to look at the overhead you're creating... So, you create 128 bits (16 bytes) of data of UUID, but then you save into your database a QDataStream payload containing a QString encoding

Re: [Interest] SQLite: mystic bug: No query Unable to fetch row error

2021-01-16 Thread Alexander Dyagilev
Hello, I don't believe such bug can exist and no one has noticed it yet :) Anyway, thanks for your suggestion. I've checked it - works fine. Actually, the code is this: QString uuid=QUuid::createUuid().toString(QUuid::WithoutBraces); QVariant v(uuid); QByteArray UuidByteArray =

Re: [Interest] SQLite: mystic bug: No query Unable to fetch row error

2021-01-15 Thread Thiago Macieira
On Thursday, 14 January 2021 22:31:19 PST Alexander Dyagilev wrote: > BLOB, so any arbitrary data is allowed. Thus the reason is not that the > first byte is 0. But it might be that the binding is buggy and is not passing the full 16 bytes. You can easily confirm or deny this by trying to

Re: [Interest] SQLite: mystic bug: No query Unable to fetch row error

2021-01-14 Thread Alexander Dyagilev
Hello, BLOB, so any arbitrary data is allowed. Thus the reason is not that the first byte is 0. On 1/15/2021 2:55 AM, Tony Rietwyk wrote: Hi, I haven't used SQLite, but I'm wondering if when the UuidByteArray starts with a zero byte, then maybe nothing gets written for the value?  1 in

Re: [Interest] SQLite: mystic bug: No query Unable to fetch row error

2021-01-14 Thread Alexander Dyagilev
Hello, It's BLOB there, not TEXT. On 1/15/2021 3:42 AM, Thiago Macieira wrote: On Thursday, 14 January 2021 15:55:35 PST Tony Rietwyk wrote: Is a BLOB field binary or text? Does a binary blob with embedded zeroes always get fully written? Maybe using base64 encoding would work better? The

Re: [Interest] SQLite: mystic bug: No query Unable to fetch row error

2021-01-14 Thread Thiago Macieira
On Thursday, 14 January 2021 15:55:35 PST Tony Rietwyk wrote: > Is a BLOB field binary or text? Does a binary blob with embedded zeroes > always get fully written? Maybe using base64 encoding would work better? The table schema description said "TEXT", so one expects the UUID is in its text

Re: [Interest] SQLite: mystic bug: No query Unable to fetch row error

2021-01-14 Thread Tony Rietwyk
Hi, I haven't used SQLite, but I'm wondering if when the UuidByteArray starts with a zero byte, then maybe nothing gets written for the value?  1 in 16 of the generated UUID's could have this, which roughly matches your 4% failures. Is a BLOB field binary or text?  Does a binary blob with

Re: [Interest] SQLite: mystic bug: No query Unable to fetch row error

2021-01-14 Thread Scott Bloom
, often return "no connection" or "unable to fetch" for a multitude of issues Scott -Original Message- From: Alexander Dyagilev [mailto:alervd...@gmail.com] Sent: Thursday, January 14, 2021 08:41 To: Scott Bloom ; interest@qt-project.org Subject: Re: [Interest

Re: [Interest] SQLite: mystic bug: No query Unable to fetch row error

2021-01-14 Thread Alexander Dyagilev
On 1/14/2021 7:41 PM, Alexander Dyagilev wrote: On 1/14/2021 7:06 PM, Scott Bloom wrote: Did the prepare fail? No. But why should it fail? Oops. I meant we does not check this. ___ Interest mailing list Interest@qt-project.org

Re: [Interest] SQLite: mystic bug: No query Unable to fetch row error

2021-01-14 Thread Alexander Dyagilev
On 1/14/2021 7:06 PM, Scott Bloom wrote: Did the prepare fail? No. But why should it fail? Do you check to see that the "m_db" database is valid, open, and connected? No. However it should be opened. Anyway, in these cases the error should be different, isn't it? Scott

Re: [Interest] SQLite: mystic bug: No query Unable to fetch row error

2021-01-14 Thread Scott Bloom
Did the prepare fail? Do you check to see that the "m_db" database is valid, open, and connected? Scott -Original Message- From: Interest [mailto:interest-boun...@qt-project.org] On Behalf Of Alexander Dyagilev Sent: Thursday, January 14, 2021 07:19 To: interest@qt-project.org Subject:

Re: [Interest] SQLite

2015-05-29 Thread Kurt Pattyn
That is more or less the same mechanism I have been using to accomplish this. But I only used one updater object, and a list of update scripts. The name of the scripts was marked with the version of the database schema, like update_v3.sql. At startup the version of the current scheme is read

Re: [Interest] SQLite

2015-05-29 Thread Burak Arslan
Hello, On 05/28/15 21:31, Jason H wrote: I once wrote a ORM that took an XML definition, and spat out QObject-derived classes that provided QObject QPROPERTY to SQLite database mappings. So it would create the SQL schema, the source files (.cpp/h) had support for transactions and

Re: [Interest] SQLite

2015-05-28 Thread Jason H
...@avalonsciences.com To: Bo Thorsen b...@vikingsoft.eu, interest@qt-project.org interest@qt-project.org Subject: Re: [Interest] SQLite Hi Bo It would be really interesting to see your sources and I would be grateful if you could email them to me Thanks Graham -Original Message- From: Bo

Re: [Interest] SQLite

2015-05-28 Thread Graham Labdon
Hi Bo It would be really interesting to see your sources and I would be grateful if you could email them to me Thanks Graham -Original Message- From: Bo Thorsen [mailto:b...@vikingsoft.eu] Sent: 27 May 2015 21:56 To: interest@qt-project.org; Graham Labdon Subject: Re: [Interest

Re: [Interest] SQLite

2015-05-28 Thread André Somers
m...@rpzdesign.com schreef op 28-5-2015 om 00:25: Qt5 + SQLITE + QJsonDocument == Degrees of freedom Could you go into this a little deeper? What do you mean by this exactly? How do you use QJsonDocument in combination with SQLite to obtain your Degrees of freedom? Does it still allow you to

Re: [Interest] SQLite

2015-05-28 Thread André Somers
m...@rpzdesign.com schreef op 28-5-2015 om 14:33: Simple, Store json documents in a Text Field. Study all the NOSQL implementations (Mongo,Couchbase,etc) and then connect the dots between SQLITE and NOSQL. Avoid SCHEMA or reduce to SCHEMA to minimal levels where you do not need Versions and

Re: [Interest] SQLite

2015-05-27 Thread Graham Labdon
Thanks -Original Message- From: interest-bounces+graham.labdon=avalonsciences@qt-project.org [mailto:interest-bounces+graham.labdon=avalonsciences@qt-project.org] On Behalf Of André Somers Sent: 27 May 2015 09:52 To: interest@qt-project.org Subject: Re: [Interest] SQLite Graham

Re: [Interest] SQLite

2015-05-27 Thread André Somers
Graham Labdon schreef op 27-5-2015 om 09:39: Hi I am planning to use a SQLite database in my application to store application data. The application is large and complex so we are taking a phased delivery approach. This will mean that the structure of the database will change over time and

Re: [Interest] SQLite

2015-05-27 Thread Jason H
There used to be an ORM for Qt that was promoted on this list. http://lmgtfy.com/?q=qt+orm Aside from that, I don't use ORMs, and I just have a general settings table of key value pairs one of which is the schema version. However you must write your own upgrade routine. When dealing with

Re: [Interest] SQLite

2015-05-27 Thread Bo Thorsen
Den 27-05-2015 kl. 10:51 skrev André Somers: Graham Labdon schreef op 27-5-2015 om 09:39: Hi I am planning to use a SQLite database in my application to store application data. The application is large and complex so we are taking a phased delivery approach. This will mean that the

Re: [Interest] SQLite

2015-05-27 Thread Alex Strickland
On 2015/05/27 09:39 AM, Graham Labdon wrote: I am planning to use a SQLite database in my application to store application data. The application is large and complex so we are taking a phased delivery approach. This will mean that the structure of the database will change over time and

Re: [Interest] SQLite

2015-05-27 Thread m...@rpzdesign.com
Qt5 + SQLITE + QJsonDocument == Degrees of freedom On 5/27/2015 3:18 PM, Alex Strickland wrote: On 2015/05/27 09:39 AM, Graham Labdon wrote: I am planning to use a SQLite database in my application to store application data. The application is large and complex so we are taking a phased

Re: [Interest] SQLite

2015-05-27 Thread Alex Strickland
On 2015/05/27 09:39 AM, Graham Labdon wrote: I am planning to use a SQLite database in my application to store application data. The application is large and complex so we are taking a phased delivery approach. This will mean that the structure of the database will change over time and

Re: [Interest] sqlite

2015-04-20 Thread Jason H
Sent: Friday, April 17, 2015 at 7:24 PM From: Thiago Macieira thiago.macie...@intel.com To: interest@qt-project.org Subject: Re: [Interest] sqlite On Friday 17 April 2015 21:57:44 Jason H wrote: I've used SQLite as a table store pretty extensively and I can say: 1. It works

Re: [Interest] sqlite

2015-04-20 Thread Scott Aron Bloom
Don't use SQLLite, use a client/server base SQL system... -Original Message- From: interest-bounces+scott.bloom=onshorecs@qt-project.org [mailto:interest-bounces+scott.bloom=onshorecs@qt-project.org] On Behalf Of Graham Labdon Sent: Friday, April 17, 2015 1:25 AM To:

Re: [Interest] sqlite

2015-04-17 Thread André Somers
Bo Thorsen schreef op 17-4-2015 om 13:48: On 04/17/2015 10:25 AM, Graham Labdon wrote: Hi My application makes use of an sqlite database that needs to be shared amongst multiple instantiations of the application. Can anyone please suggest how I can implement this such that if one

Re: [Interest] sqlite

2015-04-17 Thread André Somers
Bo Thorsen schreef op 17-4-2015 om 14:24: On 04/17/2015 02:10 PM, André Somers wrote: Bo Thorsen schreef op 17-4-2015 om 13:48: On 04/17/2015 10:25 AM, Graham Labdon wrote: Hi My application makes use of an sqlite database that needs to be shared amongst multiple instantiations of the

Re: [Interest] sqlite

2015-04-17 Thread Jason Kretzer
@qt-project.org Subject: Re: [Interest] sqlite Bo Thorsen schreef op 17-4-2015 om 13:48: On 04/17/2015 10:25 AM, Graham Labdon wrote: Hi My application makes use of an sqlite database that needs to be shared amongst multiple instantiations of the application. Can anyone please suggest how I can

Re: [Interest] sqlite

2015-04-17 Thread Bo Thorsen
On 04/17/2015 02:36 PM, André Somers wrote: Bo Thorsen schreef op 17-4-2015 om 14:24: On 04/17/2015 02:10 PM, André Somers wrote: Bo Thorsen schreef op 17-4-2015 om 13:48: On 04/17/2015 10:25 AM, Graham Labdon wrote: Hi My application makes use of an sqlite database that needs to be shared

Re: [Interest] sqlite

2015-04-17 Thread Bo Thorsen
On 04/17/2015 10:25 AM, Graham Labdon wrote: Hi My application makes use of an sqlite database that needs to be shared amongst multiple instantiations of the application. Can anyone please suggest how I can implement this such that if one instantiation of the application updates the database

Re: [Interest] sqlite

2015-04-17 Thread Bo Thorsen
On 04/17/2015 02:10 PM, André Somers wrote: Bo Thorsen schreef op 17-4-2015 om 13:48: On 04/17/2015 10:25 AM, Graham Labdon wrote: Hi My application makes use of an sqlite database that needs to be shared amongst multiple instantiations of the application. Can anyone please suggest how I

Re: [Interest] sqlite

2015-04-17 Thread Jason H
I've used SQLite as a table store pretty extensively and I can say: 1. It works as advertised. It allows multiple processes to access the same database safely. Threads no. Processes yes. 2. Multiple process performance is low. It may me adequate if there is not a lot of concurrency, just a lot

Re: [Interest] sqlite

2015-04-17 Thread Thiago Macieira
On Friday 17 April 2015 21:57:44 Jason H wrote: I've used SQLite as a table store pretty extensively and I can say: 1. It works as advertised. It allows multiple processes to access the same database safely. Threads no. Processes yes. 2. Multiple process performance is low. It may me

Re: [Interest] sqlite

2015-04-17 Thread Alejandro Exojo
El Friday 17 April 2015, Bo Thorsen escribió: In practice, we found that it results in problems in practise, even if it may work in theory. Perhaps it is due to the actual sqlite, perhaps it is due to the fact that it really is just a file and it is the (networked) file access that is to

Re: [Interest] sqlite and windows rt arm

2014-08-28 Thread Knight Andrew
Hi, Niko H wrote: I'm trying to run SQLite application on Windows Mobile. It seems that Device emulator can't find the driver plugin. Here is the error message: 'Driver not loaded'. I tested with Qt 5.3.1. How to solve this problem? sqlite was not built for Windows Phone in Qt 5.3, but this