method

package
v0.9.10-alpha.7 Latest Latest
Warning

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

Go to latest
Published: Mar 15, 2022 License: AGPL-3.0, AGPL-3.0-only Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Character

type Character interface {
	// Get a Character from database.
	//
	// where(crt_id=@id)
	Get(id uint32) (gen.T, error)
}

type CharacterSubjects

type CharacterSubjects interface {
	// GetBySubject ...
	//
	// where(subject_id=@id)
	GetBySubject(id uint32) ([]gen.T, error)

	// GetByCharacter ...
	//
	// where(crt_id=@id)
	GetByCharacter(id uint32) ([]gen.T, error)
}

type Episode

type Episode interface {
	// GetByID ...
	//
	// where(ep_ep_id=@id)
	GetByID(id uint32) (gen.T, error)

	// GetBySubjectID ...
	//
	// where(ep_subject_id=@id ORDER BY `ep_disc`,`ep_type`,`ep_sort`)
	GetBySubjectID(id uint32) ([]gen.T, error)

	// GetFirst get first episode of a repository.
	// where(ep_subject_id=@subjectID ORDER BY `ep_disc`,`ep_type`,`ep_sort` LIMIT 1)
	GetFirst(subjectID uint32) (gen.T, error)

	// CountBySubjectID ...
	//
	// sql(select count(ep_id) from chii_episodes where ep_subject_id=@id)
	CountBySubjectID(id uint32) (int64, error)
}

type Member

type Member interface {
	// GetByID get a user should not be used as authorization.
	//
	// where(uid=@id)
	GetByID(id uint32) (gen.T, error)
}

type Person

type Person interface {
	// Get a person from database.
	//
	// where(prsn_id=@id)
	Get(id uint32) (gen.T, error)
}

type PersonField

type PersonField interface {

	// GetPerson get person's extra field.
	//
	// where(prsn_id=@id AND prsn_cat="prsn")
	GetPerson(id uint32) (gen.T, error)

	// GetCharacter get character's extra field.
	//
	// where(prsn_id=@id AND prsn_cat="crt")
	GetCharacter(id uint32) (gen.T, error)
}

type PersonSubjects

type PersonSubjects interface {
	// GetBySubject ...
	//
	// where(subject_id=@id)
	GetBySubject(id uint32) ([]gen.T, error)

	// GetByPerson
	//
	// where(prsn_id=@id)
	GetByPerson(id uint32) ([]gen.T, error)
}

type Subject

type Subject interface {
	// GetByID ...
	//
	// where(subject_id=@id)
	GetByID(id uint32) (gen.T, error)

	// GetByIDs ...
	//
	// where(subject_id IN @ids)
	GetByIDs(ids []uint32) ([]gen.T, error)
}

type SubjectField

type SubjectField interface {
	// GetByID ...
	//
	// where(field_sid=@id)
	GetByID(id uint32) (gen.T, error)
}

type SubjectRelation

type SubjectRelation interface {
	// GetBySubjectID find all relation of a repository.
	//
	// where(rlt_subject_id = @id)
	GetBySubjectID(id uint32) ([]gen.T, error)
}

type SubjectRevision

type SubjectRevision interface{}

Jump to

Keyboard shortcuts

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