This pull request adds query_with_args, fetch_array_with_args, and fetch_assoc_with_args. These functions use parameter binding and help defend against SQL injection attacks. Each of these takes an additional PoolStringArray. These can be called like so:
Each function will fail if the amount of arguments passed does not match the amount of arguments in the query. This pull request should maintain backwards compatibility with code written using the non-parameterized functions.
Tested on Windows 10 Home 64-bit on Godot 3.1 stable. Closes #28
This pull request adds
query_with_args
,fetch_array_with_args
, andfetch_assoc_with_args
. These functions use parameter binding and help defend against SQL injection attacks. Each of these takes an additionalPoolStringArray
. These can be called like so:Each function will fail if the amount of arguments passed does not match the amount of arguments in the query. This pull request should maintain backwards compatibility with code written using the non-parameterized functions.
Tested on Windows 10 Home 64-bit on Godot 3.1 stable. Closes #28