repository

package
v1.2.1 Latest Latest
Warning

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

Go to latest
Published: Oct 16, 2024 License: MIT Imports: 3 Imported by: 0

Documentation

Overview

Package repository is a package for providing wnjpn repository.

Index

Constants

View Source
const (
	// WordNet Japan sqlite database file name
	WNJPN_DB_FILE_NAME = "wnjpn.db"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type WNJpnRepository

type WNJpnRepository struct {
	SqlProxy sqlproxy.Sql
}

WNJpnRepository is a struct that implements WNJpnRepositoryInterface.

func New

func New(
	sqlProxy sqlproxy.Sql,
) *WNJpnRepository

New is a constructor for WNJpnRepository.

func (*WNJpnRepository) GetAllAVNWords

func (w *WNJpnRepository) GetAllAVNWords(wnJpnDBFilePath string) ([]model.Word, error)

GetAllAVNWords gets all AVN words.

func (*WNJpnRepository) GetAllAVWords

func (w *WNJpnRepository) GetAllAVWords(wnJpnDBFilePath string) ([]model.Word, error)

GetAllAVWords gets all AV words.

func (*WNJpnRepository) GetAllNWords

func (w *WNJpnRepository) GetAllNWords(wnJpnDBFilePath string) ([]model.Word, error)

GetAllNWords gets all N words.

type WNJpnRepositoryInterface

type WNJpnRepositoryInterface interface {
	GetAllAVNWords(wnJpnDBFilePath string) ([]model.Word, error)
	GetAllNWords(wnJpnDBFilePath string) ([]model.Word, error)
	GetAllAVWords(wnJpnDBFilePath string) ([]model.Word, error)
}

WNJpnRepositoryInterface is an interface for WNJpnRepository.

Directories

Path Synopsis
Package query is a package for providing queries to get word from wnjpn database.
Package query is a package for providing queries to get word from wnjpn database.

Jump to

Keyboard shortcuts

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