database

package
v0.0.0-...-5cccba7 Latest Latest
Warning

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

Go to latest
Published: Nov 29, 2020 License: Apache-2.0 Imports: 15 Imported by: 0

Documentation

Overview

*

  • Created by zc on 2020/11/23.

*

  • Created by zc on 2020/11/23.

*

  • Created by zc on 2020/11/23.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

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

func NewDroneDB

func NewDroneDB(cfg *Config, db *sql.DB) (*dronedb.DB, error)

func NewGormDB

func NewGormDB(cfg *Config, db *sql.DB) (*gorm.DB, error)

Types

type Config

type Config struct {
	Driver     string `json:"driver"`
	Datasource string `json:"datasource"`
	Debug      bool   `json:"debug"`
}

type DBCopy

type DBCopy struct {
	// contains filtered or unexported fields
}

DB is a pool of zero or more underlying connections to the drone database.

Jump to

Keyboard shortcuts

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