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

Fix wrong documentation #4

Open
fire opened this issue Jan 24, 2025 · 1 comment
Open

Fix wrong documentation #4

fire opened this issue Jan 24, 2025 · 1 comment

Comments

@fire
Copy link
Member

fire commented Jan 24, 2025

https://github.com/V-Sekai/godot-vsk-sqlite/blob/main/doc_classes/SQLiteQuery.xml

The query is provided as a string.

The code separates create_query and execute the query.

The execute query takes Variants as array elements.

@fire
Copy link
Member Author

fire commented Jan 24, 2025

See https://github.com/V-Sekai/godot-vsk-sqlite/blob/main/src/godot_sqlite.cpp#L215

Sqlite has four major types https://www.sqlite.org/datatype3.html

Each value stored in an SQLite database (or manipulated by the database engine) has one of the following storage classes:

NULL. The value is a NULL value.

INTEGER. The value is a signed integer, stored in 0, 1, 2, 3, 4, 6, or 8 bytes depending on the magnitude of the value.

REAL. The value is a floating point value, stored as an 8-byte IEEE floating point number.

TEXT. The value is a text string, stored using the database encoding (UTF-8, UTF-16BE or UTF-16LE).

BLOB. The value is a blob of data, stored exactly as it was input.

Godot Engine types are cast into the four sqlite types.

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