Skip to content

Latest commit

 

History

History
31 lines (23 loc) · 374 Bytes

README.md

File metadata and controls

31 lines (23 loc) · 374 Bytes

Getting started

Install

go get https://github.com/akimsavvin/efgo

Configure

import (
    "driver"
)

db.Configue("driver name", "connection string")

Query

type User struct {
    Id int `db:"id"`
    Name string `db:"name"`
}

users, err := db.QueryFirst[User]("SELECT id, name FROM users")
if err != nil {
    panic(err)
}