database

package
v0.0.0-...-39982f3 Latest Latest
Warning

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

Go to latest
Published: Dec 11, 2024 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetDatabase

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

func GetDialector

func GetDialector(databaseType string, dsn string) (gorm.Dialector, error)

Types

type DatabaseType

type DatabaseType string
const (
	PostgreSQL DatabaseType = "postgres"
	MySQL      DatabaseType = "mysql"
	SQLite     DatabaseType = "sqlite"
)

type ScanResult

type ScanResult struct {
	ImageID string `gorm:"primarykey;type:TEXT"`
	Report  string `gorm:"not null;type:TEXT"`
}

Jump to

Keyboard shortcuts

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