database

package
v0.0.0-...-c9b38e6 Latest Latest
Warning

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

Go to latest
Published: May 16, 2020 License: GPL-3.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Setup

func Setup(DBName, Location, User, Password, Port string)

Setup instantiates DB, opens the DB connection and sets up DB schema.

func Shut

func Shut(DBName, Location, User, Password, Port string)

Shut closes the input DB connection.

Types

type AundhBaner

type AundhBaner struct {
	gorm.Model

	Active    int
	Confirmed int
	Death     int
	Recovered int
	Code      string
}

AundhBaner aundh baner

type BhawaniPeth

type BhawaniPeth struct {
	gorm.Model

	Active    int
	Confirmed int
	Death     int
	Recovered int
	Code      string
}

BhawaniPeth bhawani peth

type Bibwewadi

type Bibwewadi struct {
	gorm.Model

	Active    int
	Confirmed int
	Death     int
	Recovered int
	Code      string
}

Bibwewadi bibwewadi

type Database

type Database struct {
	Name     string
	Location string
	User     string
	Password string
	Port     string
	Instance *gorm.DB
}

Database stores the application data.

func GetWorkingInstance

func GetWorkingInstance() *Database

GetWorkingInstance returns the current working instance of the DB. should be called only after database has been setup

func (*Database) Close

func (database *Database) Close() (err error)

Close closes the DB connection.

func (*Database) MigrateSchema

func (database *Database) MigrateSchema() (err error)

MigrateSchema Migrate DB schema for unit / api integration test code

type DhankawadiSahakarnagar

type DhankawadiSahakarnagar struct {
	gorm.Model

	Active    int
	Confirmed int
	Death     int
	Recovered int
	Code      string
}

DhankawadiSahakarnagar dhankawadi

type DholePatil

type DholePatil struct {
	gorm.Model

	Active    int
	Confirmed int
	Death     int
	Recovered int
	Code      string
}

DholePatil dhole patil

type DistrictCase

type DistrictCase struct {
	gorm.Model

	Confirmed int
	Death     int
	Recovered int
}

DistrictCase district case

type DistrictDetail

type DistrictDetail struct {
	gorm.Model

	DeltaActive    int
	DeltaConfirmed int
	DeltaDeath     int
	DeltaRecovered int
}

DistrictDetail District Details

type HadapsarMundhwa

type HadapsarMundhwa struct {
	gorm.Model

	Active    int
	Confirmed int
	Death     int
	Recovered int
	Code      string
}

HadapsarMundhwa hadapsar mundhwa

type KasbaVisharambaghwada

type KasbaVisharambaghwada struct {
	gorm.Model

	Active    int
	Confirmed int
	Death     int
	Recovered int
	Code      string
}

KasbaVisharambaghwada kasba

type KondhwaYewalewadi

type KondhwaYewalewadi struct {
	gorm.Model

	Active    int
	Confirmed int
	Death     int
	Recovered int
	Code      string
}

KondhwaYewalewadi kondhwa

type KothrudBavdhan

type KothrudBavdhan struct {
	gorm.Model

	Active    int
	Confirmed int
	Death     int
	Recovered int
	Code      string
}

KothrudBavdhan kothrud

type NagarRoadWadgoansheri

type NagarRoadWadgoansheri struct {
	gorm.Model

	Active    int
	Confirmed int
	Death     int
	Recovered int
	Code      string
}

NagarRoadWadgoansheri nagar road

type News

type News struct {
	gorm.Model

	Summary string
	Source  string
}

News news

type PatientSummary

type PatientSummary struct {
	gorm.Model

	TotalTests   int
	InQuarantine int
	InICU        int
	OnVentilator int
}

PatientSummary patient summary

type PuneCantonment

type PuneCantonment struct {
	gorm.Model

	Active    int
	Confirmed int
	Death     int
	Recovered int
	Code      string
}

PuneCantonment pune cantonment

type PuneRural

type PuneRural struct {
	gorm.Model

	Active    int
	Confirmed int
	Death     int
	Recovered int
	Code      string
}

PuneRural pune rural

type ShivajiNagarGholeRoad

type ShivajiNagarGholeRoad struct {
	gorm.Model

	Active    int
	Confirmed int
	Death     int
	Recovered int
	Code      string
}

ShivajiNagarGholeRoad shivaji nagar

type SinghagadRoad

type SinghagadRoad struct {
	gorm.Model

	Active    int
	Confirmed int
	Death     int
	Recovered int
	Code      string
}

SinghagadRoad singhagad

type User

type User struct {
	gorm.Model

	Name     string
	Phone    string
	Email    string
	Password string
	Token    string `sql:"-"`
}

User account info

type WanawadiRamtekdi

type WanawadiRamtekdi struct {
	gorm.Model

	Active    int
	Confirmed int
	Death     int
	Recovered int
	Code      string
}

WanawadiRamtekdi wanawadi

type Ward

type Ward struct {
	gorm.Model

	Name string
	Code string
}

Ward ward

type WarjeKarveNagar

type WarjeKarveNagar struct {
	gorm.Model

	Active    int
	Confirmed int
	Death     int
	Recovered int
	Code      string
}

WarjeKarveNagar warje

type YerwadaKalasDhanori

type YerwadaKalasDhanori struct {
	gorm.Model

	Active    int
	Confirmed int
	Death     int
	Recovered int
	Code      string
}

YerwadaKalasDhanori yerwada

Jump to

Keyboard shortcuts

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