func CreateUser(db *pg.DB, user *User) error { _, err := db.ExecOne(`INSERT INTO users VALUES (?name, ?emails)`, user) return err }
func CreateArticle(db *pg.DB, article *Article) error { _, err := db.ExecOne(`INSERT INTO articles VALUES (?name, ?category_id)`, article) return err }