-
-
Notifications
You must be signed in to change notification settings - Fork 321
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
SQLITE_DQS
Compile Option
#1269
Comments
hi. It is a very interesting case. As I understood you need to make |
I was able to getting SQLite ORM properly working by overriding the
suggested define from 0 to 3, without any kind of additional problems (for
now 😅).
Anyway since the usage of DQS is not suggested from the official
documentation, it could make sense to consider how to take this into
account in the future
.
.
Il mer 10 apr 2024, 06:38 Yevgeniy Zakharov ***@***.***> ha
scritto:
… hi. It is a very interesting case. As I understood you need to make
sqlite_orm serializer to replace double quotes with single quotes to make
your code working on your controller. Is it right?
—
Reply to this email directly, view it on GitHub
<#1269 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/A6TA2CSZ26OLCSNC72TUOJLY4S65LAVCNFSM6AAAAABF7JK25OVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDANBWGUZDKNZXG4>
.
You are receiving this because you authored the thread.Message ID:
***@***.***>
|
@figaro-smartotum Nice to see a Rossini fan 😏 It's not clear to me how sqlite_orm "heavily relies on double-quoted strings". Can you show how and where you encounter the problem? |
The query for checking if the table exists, when performing the |
sqlite_orm properly quotes and escapes the table name. |
The function where the warning is triggered is In this context |
Did you actually look at the link I mentioned above? You didn't mention that you are using sqlite_orm v1.8.2 on master. This issue was fixed more than a year ago in the dev branch, which was part of PR #1169. |
@figaro-smartotum does the issue still exist in your work? |
Just a note for other people that could incurr in the same issue performing a similar task.
I am trying to perform a pretty challenging task. I want to use this ORM on an STM32 microcontroller having just a few of kBytes of RAM and less than 2MB of free program memory, using LittleFS as filesystem.
I implemented a dedicated VFS for SQLite and registered
sqlite3_vfs_register
.Since many other compile-time defines are involved in order to reduce the code size, I was also using
SQLITE_DQS=0
as recommended in the SQLite doc.But it turns that sqlite_orm requires the
SQLITE_DQS=3
compile definition, since it heavily relies on double-quoted strings.It is wonderful to be able to use such abstraction level on a really minimal hardware like an STM32 microcontroller.
Many thanks to all
The text was updated successfully, but these errors were encountered: