database

package
v0.0.0-...-72f52da Latest Latest
Warning

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

Go to latest
Published: Jun 10, 2024 License: GPL-3.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var DBConnection *gorm.DB
View Source
var InitialProfile = Profile{
	Sitetitle: "Portfolio",
	About:     "This is a simple portfolio website.",
	Name:      "John Doe",
	Email:     "john.doe@example.com",
	Phone:     "+1234567890",
	Address:   "123 Main St, City, Country",
	Linkedin:  "johndoe",
	Github:    "johndoe",
	Instagram: "johndoe",
	Facebook:  "johndoe",
	Twitter:   "johndoe",
}

Functions

func InitDatabase

func InitDatabase()

func InitSQLite3

func InitSQLite3()

Types

type Credential

type Credential struct {
	gorm.Model
	Email    string
	Password string
}

type Profile

type Profile struct {
	gorm.Model
	Sitetitle string
	About     string
	Name      string
	Email     string
	Phone     string
	Address   string
	Linkedin  string
	Github    string
	Instagram string
	Facebook  string
	Twitter   string
}

Jump to

Keyboard shortcuts

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