2shady4u / godot-sqlite

GDExtension wrapper for SQLite (Godot 4.x+)
MIT License
850 stars 76 forks source link

Replace func #133

Open fireworx opened 1 year ago

fireworx commented 1 year ago

could you implement the Replace feature

would be nice to have

2shady4u commented 1 year ago

Hi @fireworx!

You can already use the Replace feature in the current version of this plugin: https://www.sqlitetutorial.net/sqlite-replace-statement/

Example:

db.query("REPLACE INTO positions (title, min_salary) VALUES('Full Stack Developer', 140000);")
fireworx commented 1 year ago

yes, i know, but i use the feature, that you can take a hole dictionary -> for example update_rows(tablename,where,dict)

;-)