sqlitedb

package
v0.0.0-...-84b4eae Latest Latest
Warning

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

Go to latest
Published: Mar 11, 2021 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Portfolio

type Portfolio struct {
	ID          *uint      `json:"id,omitempty" gorm:"id,primaryKey,autoIncrement"`
	Amount      *int       `json:"amount,string,omitempty" gorm:"amount"`
	OccurDate   *time.Time `json:"occurDate,omitempty" gorm:"occurDate"`
	Category    *string    `json:"category,omitempty" gorm:"category"`
	Description *string    `json:"description,omitempty" gorm:"description"`
	Type        *string    `json:"type,omitempty" gorm:"type"`
	Privacy     *string    `json:"privacy,omitempty" gorm:"privacy"`
}

func (Portfolio) TableName

func (Portfolio) TableName() string

TableName set the name of the table.

type Portfolios

type Portfolios struct {
	Portfolios []Portfolio `json:"portfolios"`
}

type SqliteDB

type SqliteDB struct {
	Client *gorm.DB
}

func ConnectDB

func ConnectDB() *SqliteDB

func (*SqliteDB) CloseDB

func (db *SqliteDB) CloseDB()

Jump to

Keyboard shortcuts

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