db

package
v0.0.0-...-77837a8 Latest Latest
Warning

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

Go to latest
Published: Oct 29, 2024 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

View Source
const KeySpace = "carepet"
View Source
const KeySpaceCQL = "" /* 149-byte string literal not displayed */

Variables

View Source
var MeasureMetadata = table.Metadata{
	Name:    "measurement",
	Columns: []string{"sensor_id", "ts", "value"},
	PartKey: []string{"sensor_id"},
	SortKey: []string{"ts"},
}
View Source
var OwnerMetadata = table.Metadata{
	Name:    "owner",
	Columns: []string{"owner_id", "address", "name"},
	PartKey: []string{"owner_id"},
	SortKey: []string{},
}
View Source
var PetMetadata = table.Metadata{
	Name:    "pet",
	Columns: []string{"owner_id", "pet_id", "chip_id", "species", "breed", "color", "gender", "age", "weight", "address", "name"},
	PartKey: []string{"owner_id"},
	SortKey: []string{"pet_id"},
}
View Source
var SensorAvgMetadata = table.Metadata{
	Name:    "sensor_avg",
	Columns: []string{"sensor_id", "date", "hour", "value"},
	PartKey: []string{"sensor_id"},
	SortKey: []string{"date", "hour"},
}
View Source
var SensorMetadata = table.Metadata{
	Name:    "sensor",
	Columns: []string{"pet_id", "sensor_id", "type"},
	PartKey: []string{"pet_id"},
	SortKey: []string{"sensor_id"},
}
View Source
var TableMeasure = table.New(MeasureMetadata)
View Source
var TableOwner = table.New(OwnerMetadata)
View Source
var TablePet = table.New(PetMetadata)
View Source
var TableSensor = table.New(SensorMetadata)
View Source
var TableSensorAvg = table.New(SensorAvgMetadata)

Functions

This section is empty.

Types

This section is empty.

Jump to

Keyboard shortcuts

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