godot-sqlite icon indicating copy to clipboard operation
godot-sqlite copied to clipboard

feat: Add an option similar to `CREATE IF NOT EXISTS` to `create_table`

Open diosney opened this issue 3 months ago • 0 comments

Is your feature request related to a problem? Please describe. Right now the only way to create a table without triggering an error is by checking before whether that table exists or not.

Describe the solution you'd like To add optional config as the third argument like create_table(table_name, table_def, config)

where config is something like { if_not_exists := false } which will mimic the behavior of:

CREATE TABLE IF NOT EXISTS

Describe alternatives you've considered Using .query() with a plain SQL query the regular way.

diosney avatar Sep 14 '25 03:09 diosney