database

package
v0.0.0-...-3591828 Latest Latest
Warning

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

Go to latest
Published: Feb 18, 2023 License: MIT Imports: 7 Imported by: 0

Documentation

Overview

Package database is responsible for database connection and storing data

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DbDns

func DbDns() string

func DbInit

func DbInit() *pgxpool.Pool

Types

type Database

type Database struct {
	Pool   *pgxpool.Pool
	Logger logger.Logger
}

func NewDatabase

func NewDatabase() Database

type Server

type Server ds.Guild

func AddNewServer

func AddNewServer(server *ds.Guild) Server

Function that takes structure with server info and passes it into the server info in database

Jump to

Keyboard shortcuts

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