db

package
v0.0.0-...-09c63dc Latest Latest
Warning

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

Go to latest
Published: Jun 8, 2022 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Overview

Author:ydy Date: Desc:

Author:ydy Date: Desc:

Index

Constants

This section is empty.

Variables

View Source
var Provider = wire.NewSet(New, NewDao, wire.Bind(new(Dao), new(*dao)))

var Provider = wire.NewSet(New) // 同理

Functions

func New

func New(cfg *config.Config) (db *sql.DB, err error)

func NewDao

func NewDao(db *sql.DB) *dao

Types

type Dao

type Dao interface {
	Version() (string, error)
}

Jump to

Keyboard shortcuts

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