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

SELECT - get rows as array instead of JSON #1014

Open
nicozenf opened this issue Sep 18, 2023 · 0 comments
Open

SELECT - get rows as array instead of JSON #1014

nicozenf opened this issue Sep 18, 2023 · 0 comments

Comments

@nicozenf
Copy link

nicozenf commented Sep 18, 2023

Hello

We use a sqlite database to make run a partial duplication of an online database on android/ios device.
We run that on node for testing and debugging and we need of course to make it run on device.

Most of the time, for performance purpose, we ask raw results instead of JSON :

[
   123,
   'abc'
]

instead of

{
   'columnA': 123,
   'columnB': 'abc'
}

In node environnement, we use the "raw" option of better-sqlite3 :
https://github.com/WiseLibs/better-sqlite3/blob/master/docs/api.md#rawtogglestate---this

I meet the same option in other plugins too but i can't figure out how to do this on cordova-sqlite-storage.

Is there any way to do that ?

Thank you

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

1 participant