mirror of
https://github.com/notherealmarco/WASAPhoto.git
synced 2025-03-13 13:35:23 +01:00
7 lines
232 B
Go
7 lines
232 B
Go
package database
|
|
|
|
// SetName is an example that shows you how to execute insert/update
|
|
func (db *appdbimpl) SetName(name string) error {
|
|
_, err := db.c.Exec("INSERT INTO example_table (id, name) VALUES (1, ?)", name)
|
|
return err
|
|
}
|