db

package
v0.2.1 Latest Latest
Warning

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

Go to latest
Published: Oct 15, 2024 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// *ΓΙΑ ΤΙΣ ΜΕΤΑΒΛΗΤΕΣ ΠΟΥ ΔΙΑΜΟΙΡΑΖΟΜΑΙ ΜΕΣΩ CONTEXT *
	CONNECTIONVAR = "db_conn"
	//*****************************************************
	// ****** ΟΝΟΜΑΤΑ ΠΙΝΑΚΩΝ ΣΤΗΝ ΒΑΣΗ ΔΕΔΟΜΕΝΩΝ *********
	LINETABLE           = "line"
	ROUTETABLE          = "route"
	STOPTABLE           = "stop"
	ROUTESTOPSTABLE     = "route02"
	SCHEDULEMASTERTABLE = "schedule"
	SCHEDULETIMETABLE   = "schedule01"
	ROUTEDETAILTABLE    = "route01"
	SYNCVERSIONSTABLE   = "syncversions"
)

Variables

This section is empty.

Functions

func CreateConnection

func CreateConnection() (*gorm.DB, error)

Types

type Datasource

type Datasource interface {
	DatasourceUrl() (string, error)
}

Jump to

Keyboard shortcuts

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