db

package
v0.9.0 Latest Latest
Warning

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

Go to latest
Published: May 8, 2020 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func OpenDatabase

func OpenDatabase(databaseDialect string, databaseConnection string) (database *gorm.DB, err error)

Types

type File

type File struct {
	gorm.Model
	JobID    uint
	Job      Job
	Path     string
	Language string
}

type Identifier

type Identifier struct {
	gorm.Model
	JobID     uint
	Job       Job
	Data      string
	Qualifier string
	Path      string
}

type Job

type Job struct {
	gorm.Model
	Active bool
}

type Note

type Note struct {
	gorm.Model
	TransUnitID uint
	TransUnit   TransUnit
	Data        string
	Language    string
	From        string
}

type TransUnit

type TransUnit struct {
	gorm.Model
	FileID         uint
	File           File
	Resname        string
	Path           string
	Identifier     string
	Qualifier      string
	State          string
	StateQualifier string
	Source         string
	Target         string
	SourceLanguage string
	TargetLanguage string
}

Jump to

Keyboard shortcuts

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