data

package
v0.0.0-...-97ce471 Latest Latest
Warning

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

Go to latest
Published: Apr 13, 2024 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetTableRowCount

func GetTableRowCount(name string) int64

func GetTables

func GetTables() (tableList []string, err error)

func OpenDB

func OpenDB(file string)

Types

type Accounts_User

type Accounts_User struct {
	ID       int    `gorm:"primaryKey;autoIncrement"`
	RemoteID string `json:"remote_id" gorm:"column:remote_id"`
	Username string `json:"username" gorm:"column:username"`
}

func SelectUser

func SelectUser() Accounts_User

func (Accounts_User) TableName

func (Accounts_User) TableName() string

type Event

type Event struct {
	ID              int    `gorm:"primaryKey;autoIncrement"`
	RemoteID        string `json:"remote_id" gorm:"column:remote_id"`
	ProfileID       int    `json:"profile_id" gorm:"column:profile_id"`
	Title           string `json:"title" gorm:"column:title"`
	Values          string `json:"event_values" gorm:"column:event_values"`
	PatrolSegmentID string `json:"patrol_segment_id" gorm:"column:patrol_segment_id"`
	CreatedAt       int64  `json:"created_at" gorm:"created_at"`
}

func SelectPendingSyncEvents

func SelectPendingSyncEvents() []Event

type Tabler

type Tabler interface {
	TableName() string
}

type User_Profile

type User_Profile struct {
	ID       int    `gorm:"primaryKey;autoIncrement"`
	RemoteID string `json:"remote_id" gorm:"column:remote_id"`
	Username string `json:"username" gorm:"column:username"`
}

func SelectUserProfileById

func SelectUserProfileById(id int) User_Profile

Jump to

Keyboard shortcuts

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