persistence

package
v0.0.0-...-8a11049 Latest Latest
Warning

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

Go to latest
Published: Dec 8, 2015 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ARTIST_ALBUM_ARROW = "alb"

Functions

This section is empty.

Types

type Connection

type Connection interface {
	//Artist
	SaveArtist(a Artist)
	SaveArtists(artists []Artist)
	FindArtists(name string) []Artist
	DeleteArtist(id string)
	//Album
	SaveAlbum(artist Artist, a Album)
	SaveAlbums(artist Artist, albums []Album)
	FindAlbum(title string) *Album
	FindAlbums(artist Artist) []Album
	//Songs
	FindSongsByArtist(artistName string) []Song
	SaveSong(song Song)
	//Clear
	ClearDbPerLabel(label string)
	//Others
	ToString() string
}

func CreateNewConnection

func CreateNewConnection(specialLabel ...string) Connection

func CreateNewConnectionForTest

func CreateNewConnectionForTest() Connection

type ConnectionNeoImpl

type ConnectionNeoImpl struct {
	// contains filtered or unexported fields
}

*

Implements Connection

func NewConnectionNeo

func NewConnectionNeo(dbpath string, db *neoism.Database, specialLabels ...string) ConnectionNeoImpl

func (ConnectionNeoImpl) ClearDbPerLabel

func (c ConnectionNeoImpl) ClearDbPerLabel(label string)

func (ConnectionNeoImpl) DeleteArtist

func (c ConnectionNeoImpl) DeleteArtist(id string)

func (ConnectionNeoImpl) FindAlbum

func (c ConnectionNeoImpl) FindAlbum(title string) *Album

func (ConnectionNeoImpl) FindAlbums

func (c ConnectionNeoImpl) FindAlbums(artist Artist) []Album

func (ConnectionNeoImpl) FindArtists

func (c ConnectionNeoImpl) FindArtists(name string) []Artist

func (ConnectionNeoImpl) FindSongsByArtist

func (c ConnectionNeoImpl) FindSongsByArtist(artistName string) []Song

func (ConnectionNeoImpl) SaveAlbum

func (c ConnectionNeoImpl) SaveAlbum(artist Artist, al Album)

func (ConnectionNeoImpl) SaveAlbums

func (c ConnectionNeoImpl) SaveAlbums(artist Artist, albums []Album)

Album

func (ConnectionNeoImpl) SaveArtist

func (c ConnectionNeoImpl) SaveArtist(a Artist)

func (ConnectionNeoImpl) SaveArtists

func (c ConnectionNeoImpl) SaveArtists(artists []Artist)

func (ConnectionNeoImpl) SaveSong

func (c ConnectionNeoImpl) SaveSong(song Song)

func (ConnectionNeoImpl) ToString

func (c ConnectionNeoImpl) ToString() string

type ConnectionTestImpl

type ConnectionTestImpl struct {
	// contains filtered or unexported fields
}

*

Implements Connection

func NewConnectionTest

func NewConnectionTest() ConnectionTestImpl

func (*ConnectionTestImpl) ClearDbPerLabel

func (c *ConnectionTestImpl) ClearDbPerLabel(label string)

func (*ConnectionTestImpl) DeleteArtist

func (c *ConnectionTestImpl) DeleteArtist(id string)

func (*ConnectionTestImpl) FindAlbum

func (c *ConnectionTestImpl) FindAlbum(title string) *Album

func (*ConnectionTestImpl) FindAlbums

func (c *ConnectionTestImpl) FindAlbums(artist Artist) []Album

func (*ConnectionTestImpl) FindArtists

func (c *ConnectionTestImpl) FindArtists(name string) []Artist

func (*ConnectionTestImpl) FindSongsByArtist

func (c *ConnectionTestImpl) FindSongsByArtist(artistName string) []Song

func (*ConnectionTestImpl) SaveAlbum

func (c *ConnectionTestImpl) SaveAlbum(artist Artist, a Album)

func (*ConnectionTestImpl) SaveAlbums

func (c *ConnectionTestImpl) SaveAlbums(artist Artist, albums []Album)

func (*ConnectionTestImpl) SaveArtist

func (c *ConnectionTestImpl) SaveArtist(a Artist)

func (*ConnectionTestImpl) SaveArtists

func (c *ConnectionTestImpl) SaveArtists(artists []Artist)

func (*ConnectionTestImpl) SaveSong

func (c *ConnectionTestImpl) SaveSong(song Song)

func (*ConnectionTestImpl) ToString

func (c *ConnectionTestImpl) ToString() string

Jump to

Keyboard shortcuts

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