db

package
v0.0.0-...-83ede3c Latest Latest
Warning

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

Go to latest
Published: Jul 18, 2024 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CloseDB

func CloseDB(db *sqlx.DB)

func ConnectToDB

func ConnectToDB() (*sqlx.DB, error)

func CreateDatabaseSchemaIfNotExists

func CreateDatabaseSchemaIfNotExists(db *sqlx.DB) error

func NewIdea

func NewIdea(db *sqlx.DB, idea string) error

Types

type Idea

type Idea struct {
	Id         int
	Idea       string
	Created_At time.Time
	Updated_At time.Time
}

func GetAll

func GetAll(db *sqlx.DB) ([]Idea, error)

func (Idea) String

func (i Idea) String() string

Jump to

Keyboard shortcuts

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