dao

package
v0.0.0-...-1f0e2f3 Latest Latest
Warning

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

Go to latest
Published: Apr 9, 2024 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

View Source
const (
	DB_TIMEOUT   = 5 * time.Second
	DB_TABLENAME = "geophone_records"
)

Variables

This section is empty.

Functions

func Close

func Close(db *gorm.DB) error

func Delete

func Delete(db *gorm.DB, start, end int64) error

func Insert

func Insert(db *gorm.DB, gp *publisher.Geophone) error

func Migrate

func Migrate(db *gorm.DB) error

func Open

func Open(host string, port int, engine, username, password, database string) (*gorm.DB, error)

func Query

func Query(db *gorm.DB, start, end int64) ([]publisher.Geophone, error)

Types

type MariaDB

type MariaDB struct{}

type PostgreSQL

type PostgreSQL struct{}

type SQLServer

type SQLServer struct{}

Jump to

Keyboard shortcuts

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