db

package
v0.0.0-...-2607e71 Latest Latest
Warning

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

Go to latest
Published: Nov 3, 2020 License: GPL-3.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AddCard

func AddCard(cc *CardComplete)

AddCard adds a card to the card table

func AddColor

func AddColor()

AddColor adds a color to the color table

func AddSubtype

func AddSubtype()

AddSubtype adds a subtype to the subtype table

func AddSupertype

func AddSupertype()

AddSupertype adds a supertype to the supertype table

func AddType

func AddType()

AddType adds a type to the type table

func DeleteCard

func DeleteCard()

DeleteCard deletes a card from the card table

func DeleteColor

func DeleteColor()

DeleteColor TODO: Maybeeeeeeee...?

func DeleteSubtype

func DeleteSubtype()

DeleteSubtype deletes a subtype from the subtype table

func DeleteSupertype

func DeleteSupertype()

DeleteSupertype deletes a supertype from the supertype table

func DeleteType

func DeleteType()

DeleteType TODO: Maybeeeeeeee...?

Types

type Card

type Card struct {
	ID      int64  `json:"rowid"`
	Name    string `json:"name"`
	Amount  int    `json:"amount"`
	Comment string `json:"comment"`
}

Card is the card table

type CardColor

type CardColor struct {
	CardID  int64 `json:"card_id"`
	ColorID int64 `json:"color_id"`
}

CardColor is the card_color table

type CardComplete

type CardComplete struct {
	Name       string
	Amount     int
	Comment    string
	Colors     []int
	Types      []int
	Subtypes   []int
	Supertypes []int
}

CardComplete is a complete card

type CardSubtype

type CardSubtype struct {
	CardID    int64 `json:"card_id"`
	SubtypeID int64 `json:"subtype_id"`
}

CardSubtype is the card_subtype table

type CardSupertype

type CardSupertype struct {
	CardID      int64 `json:"card_id"`
	SupertypeID int64 `json:"supertype_id"`
}

CardSupertype is the card_supertype table

type CardType

type CardType struct {
	CardID int64 `json:"card_id"`
	TypeID int64 `json:"type_id"`
}

CardType is the card_type table

type Color

type Color struct {
	ID    int64  `json:"rowid"`
	Color string `json:"color"`
}

Color is the color table

type Subtype

type Subtype struct {
	ID      int64  `json:"rowid"`
	Subtype string `json:"subtype"`
}

Subtype is the subtype table

type Supertype

type Supertype struct {
	ID        int64  `json:"rowid"`
	Supertype string `json:"supertype"`
}

Supertype is the supertype table

type Type

type Type struct {
	ID   int64  `json:"rowid"`
	Type string `json:"type"`
}

Type is the type table

Jump to

Keyboard shortcuts

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