first working login and editing of file. bugg is för rendering with tiptap
This commit is contained in:
3
backend/test_db.go
Normal file
3
backend/test_db.go
Normal file
@@ -0,0 +1,3 @@
|
||||
package main
|
||||
import ("database/sql"; "fmt"; "log"; _ "modernc.org/sqlite")
|
||||
func main() { db, _ := sql.Open("sqlite", "C:/data/db/archivum.db"); rows, err := db.Query("SELECT username, role, pass_hash FROM users"); if err != nil {log.Fatalln(err)}; for rows.Next() { var u, r, p string; rows.Scan(&u, &r, &p); fmt.Println(u, r) } }
|
||||
Reference in New Issue
Block a user