db

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Dec 3, 2019 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Connector

func Connector() *sql.DB

Connector return db

Types

type Repository

type Repository struct {
	Conn *sql.DB
}

Repository main db object

func NewRepository

func NewRepository(conn *sql.DB) Repository

NewRepository create connection

func (Repository) Close

func (o Repository) Close()

Close connection

func (Repository) SelectUserID

func (o Repository) SelectUserID(token string) string

SelectUserID todo doc

func (Repository) SelectUserPortinformer

func (o Repository) SelectUserPortinformer(userID string) string

SelectUserPortinformer todo doc

Jump to

Keyboard shortcuts

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