gopsql

package
v0.1.3 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 3, 2022 License: GPL-3.0 Imports: 5 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	Hostname = ""
	Port     = 5432
	Username = ""
	Password = ""
	Database = ""
)

Functions

func AddUser

func AddUser(d Userdata) int

func DeleteUser

func DeleteUser(id int) error

func UpdateUser

func UpdateUser(d Userdata) error

Types

type User

type User struct {
	ID       int
	Username string
}

type Userdata

type Userdata struct {
	ID          int
	Username    string
	Name        string
	Surname     string
	Description string
}

func ListUsers

func ListUsers() ([]Userdata, error)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL