mirror of
https://github.com/notherealmarco/WASAPhoto.git
synced 2025-03-14 14:16:15 +01:00
9 lines
241 B
Go
9 lines
241 B
Go
|
package database
|
||
|
|
||
|
// GetName is an example that shows you how to query data
|
||
|
func (db *appdbimpl) GetName() (string, error) {
|
||
|
var name string
|
||
|
err := db.c.QueryRow("SELECT name FROM example_table WHERE id=1").Scan(&name)
|
||
|
return name, err
|
||
|
}
|