db

package
v0.0.25 Latest Latest
Warning

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

Go to latest
Published: Jan 30, 2022 License: MIT Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CRUD

type CRUD interface {
	Exists() (bool, error)

	Create() (*SqlIdentifyable, int, error)
	Read() (*SqlIdentifyable, int, error)
	Update() (*SqlIdentifyable, int, error)
	Delete() (*SqlIdentifyable, int, error)
}

CRUD defines the interface to the database of a CRUD resource

type InfluxIdentifyable

type InfluxIdentifyable struct {
}

func NewInfluxIdentifyable

func NewInfluxIdentifyable() *InfluxIdentifyable

type SqlIdentifyable

type SqlIdentifyable struct {
	Id *string `json:"id"`
}

SqlIdentifyable defines the minimum CRUD resource

func NewSqlIdentifyable

func NewSqlIdentifyable(id *string) *SqlIdentifyable

Jump to

Keyboard shortcuts

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