uroman

package
v1.1.1 Latest Latest
Warning

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

Go to latest
Published: Feb 25, 2026 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CheckUroman

func CheckUroman(conn UromanDB) (bool, *log.Status)

func EnsureUroman

func EnsureUroman(conn UromanDB, lang string) *log.Status

func ScriptPath

func ScriptPath() string

func UpdateUroman

func UpdateUroman(conn UromanDB, lang string) *log.Status

Types

type Script

type Script struct {
	ScriptId   int
	ScriptText string
	URoman     string
}

Script holds the fields needed for uroman processing.

func SetUroman

func SetUroman(ctx context.Context, linesIn []Script, lang string) ([]Script, *log.Status)

type UromanDB

type UromanDB struct {
	Ctx context.Context
	DB  *sql.DB
}

UromanDB defines the database operations needed by the uroman package.

func (*UromanDB) SelectScalarInt

func (d *UromanDB) SelectScalarInt(query string) (int, *log.Status)

func (*UromanDB) SelectScripts

func (d *UromanDB) SelectScripts() ([]Script, *log.Status)

func (*UromanDB) UpdateUromanText

func (d *UromanDB) UpdateUromanText(scripts []Script) (int, *log.Status)

Jump to

Keyboard shortcuts

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