You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Binds the parameters contained in the `param_bindings`-variable to the query. Using this function stops any possible attempts at SQL data injection as the parameters are sanitized. More information regarding parameter bindings can be found [here](https://www.sqlite.org/c3ref/bind_blob.html).
117
117
@@ -121,7 +121,7 @@ Additionally, a video tutorial by [Mitch McCollum (finepointcgi)](https://github
121
121
var column_name : String = "name";
122
122
var query_string : String = "SELECT %s FROM company WHERE age < ?;" % [column_name]
123
123
var param_bindings : Array = [24]
124
-
var success = db.query_with_bindings(query_string, param_bindings)
124
+
var rc = db.query_with_bindings(query_string, param_bindings)
125
125
# Executes following query:
126
126
# SELECT name FROM company WHERE age < 24;
127
127
```
@@ -130,7 +130,7 @@ Additionally, a video tutorial by [Mitch McCollum (finepointcgi)](https://github
130
130
131
131
***NOTE**: Binding column names is not possible due to SQLite restrictions. If dynamic column names are required, insert the column name directly into the `query_string`-variable itself (see https://github.com/2shady4u/godot-sqlite/issues/41).*
Each key/value pair of the `table_dictionary`-variable defines a column of the table. Each key defines the name of a column in the database, while the value is a dictionary that contains further column specifications.
136
136
@@ -182,40 +182,40 @@ Additionally, a video tutorial by [Mitch McCollum (finepointcgi)](https://github
182
182
183
183
For more concrete usage examples see the `database.gd`-file as found in this repository's demo project.
Each key/value pair of the `row_dictionary`-variable defines the column values of a single row.
195
195
196
196
Columns should adhere to the table schema as instantiated using the `table_dictionary`-variable and are required if their corresponding **"not_null"**-column value is set to `True`.
Backup or restore the current database to/from a path, see [here](https://www.sqlite.org/backup.html). This feature is useful if you are using a database as your save file and you want to easily implement a saving/loading mechanic. Be warned that the original database will be overwritten entirely when restoring.
0 commit comments