package
Version:
v0.7.0
Opens a new window with list of versions in this module.
Published: Jan 17, 2024
License: Apache-2.0
Opens a new window with license information.
Imports: 2
Opens a new window with list of imports.
Imported by: 2
Opens a new window with list of known importers.
Documentation
¶
type CreateUserParams struct {
Name string `json:"name"`
Email string `json:"email"`
}
type DBTX interface {
ExecContext(context.Context, string, ...interface{}) (sql.Result, error)
PrepareContext(context.Context, string) (*sql.Stmt, error)
QueryContext(context.Context, string, ...interface{}) (*sql.Rows, error)
QueryRowContext(context.Context, string, ...interface{}) *sql.Row
}
type User struct {
ID int32 `json:"id"`
Name string `json:"name"`
Email string `json:"email"`
}
Source Files
¶
Click to show internal directories.
Click to hide internal directories.