db

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Oct 30, 2021 License: MIT Imports: 23 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Migrate

func Migrate(db *sqlx.DB, baseDir string) error

func New

func New(host string, port uint16, dbName string, user string, password string, logger echo.Logger) (*sqlx.DB, error)

func NewAffiliationRepository

func NewAffiliationRepository(db *sqlx.DB) models.AffiliationRepository

func NewBookmarkRepository

func NewBookmarkRepository(db *sqlx.DB) models.BookmarkRepository

func NewCommentRepository

func NewCommentRepository(db *sqlx.DB) models.CommentRepository

func NewCommunityRepository

func NewCommunityRepository(db *sqlx.DB) models.CommunityRepository

func NewCommunityRestaurantsRepository

func NewCommunityRestaurantsRepository(db *sqlx.DB) models.CommunityRestaurantsRepository

func NewInviteTokenRepository

func NewInviteTokenRepository(db *sqlx.DB) models.InviteTokenRepository

func NewRestaurantRepository

func NewRestaurantRepository(db *sqlx.DB) models.RestaurantRepository

func NewUserRepository

func NewUserRepository(db *sqlx.DB) models.UserRepository

Types

This section is empty.

Jump to

Keyboard shortcuts

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