sql

package module
v1.0.30 Latest Latest
Warning

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

Go to latest
Published: Apr 14, 2023 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Store

func Store() tokens.Store

Types

type Config

type Config struct {
	Database string `json:"database" yaml:"database"`
	Schema   string `json:"schema" yaml:"schema"`
	Table    string `json:"table" yaml:"table"`
}

type TokenRow

type TokenRow struct {
	Id       string    `col:"ID,pk" json:"ID,pk"`
	UserId   string    `col:"USER_ID" json:"USER_ID"`
	ExpireAT time.Time `col:"EXPIRE_AT" json:"EXPIRE_AT"`
	Token    string    `col:"TOKEN" json:"TOKEN"`
}

func (*TokenRow) TableName

func (t *TokenRow) TableName() (schema string, table string)

Jump to

Keyboard shortcuts

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