Documentation ¶
Index ¶
- Constants
- func Close(db *gorm.DB) error
- func Delete(db *gorm.DB, start, end int64) error
- func Insert(db *gorm.DB, gp *publisher.Geophone) error
- func Migrate(db *gorm.DB) error
- func Open(host string, port int, engine, username, password, database string) (*gorm.DB, error)
- func Query(db *gorm.DB, start, end int64) ([]publisher.Geophone, error)
- type MariaDB
- type PostgreSQL
- type SQLServer
Constants ¶
View Source
const ( DB_TIMEOUT = 5 * time.Second DB_TABLENAME = "geophone_records" )
Variables ¶
This section is empty.
Functions ¶
Types ¶
type PostgreSQL ¶
type PostgreSQL struct{}
Click to show internal directories.
Click to hide internal directories.