table

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Jan 4, 2025 License: AGPL-3.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Album = newAlbumTable("public", "album", "")
View Source
var AlbumArtist = newAlbumArtistTable("public", "album_artist", "")
View Source
var Artist = newArtistTable("public", "artist", "")
View Source
var PlayedAlbum = newPlayedAlbumTable("public", "played_album", "")
View Source
var PlayedAlbumArtist = newPlayedAlbumArtistTable("public", "played_album_artist", "")
View Source
var Playlist = newPlaylistTable("public", "playlist", "")
View Source
var PlaylistTrack = newPlaylistTrackTable("public", "playlist_track", "")
View Source
var Syncrun = newSyncrunTable("public", "syncrun", "")
View Source
var Track = newTrackTable("public", "track", "")
View Source
var TrackArtist = newTrackArtistTable("public", "track_artist", "")

Functions

func UseSchema

func UseSchema(schema string)

UseSchema sets a new schema name for all generated table SQL builder types. It is recommended to invoke this method only once at the beginning of the program.

Types

type AlbumArtistTable

type AlbumArtistTable struct {
	EXCLUDED albumArtistTable
	// contains filtered or unexported fields
}

func (AlbumArtistTable) AS

AS creates new AlbumArtistTable with assigned alias

func (AlbumArtistTable) FromSchema

func (a AlbumArtistTable) FromSchema(schemaName string) *AlbumArtistTable

Schema creates new AlbumArtistTable with assigned schema name

func (AlbumArtistTable) WithPrefix

func (a AlbumArtistTable) WithPrefix(prefix string) *AlbumArtistTable

WithPrefix creates new AlbumArtistTable with assigned table prefix

func (AlbumArtistTable) WithSuffix

func (a AlbumArtistTable) WithSuffix(suffix string) *AlbumArtistTable

WithSuffix creates new AlbumArtistTable with assigned table suffix

type AlbumTable

type AlbumTable struct {
	EXCLUDED albumTable
	// contains filtered or unexported fields
}

func (AlbumTable) AS

func (a AlbumTable) AS(alias string) *AlbumTable

AS creates new AlbumTable with assigned alias

func (AlbumTable) FromSchema

func (a AlbumTable) FromSchema(schemaName string) *AlbumTable

Schema creates new AlbumTable with assigned schema name

func (AlbumTable) WithPrefix

func (a AlbumTable) WithPrefix(prefix string) *AlbumTable

WithPrefix creates new AlbumTable with assigned table prefix

func (AlbumTable) WithSuffix

func (a AlbumTable) WithSuffix(suffix string) *AlbumTable

WithSuffix creates new AlbumTable with assigned table suffix

type ArtistTable

type ArtistTable struct {
	EXCLUDED artistTable
	// contains filtered or unexported fields
}

func (ArtistTable) AS

func (a ArtistTable) AS(alias string) *ArtistTable

AS creates new ArtistTable with assigned alias

func (ArtistTable) FromSchema

func (a ArtistTable) FromSchema(schemaName string) *ArtistTable

Schema creates new ArtistTable with assigned schema name

func (ArtistTable) WithPrefix

func (a ArtistTable) WithPrefix(prefix string) *ArtistTable

WithPrefix creates new ArtistTable with assigned table prefix

func (ArtistTable) WithSuffix

func (a ArtistTable) WithSuffix(suffix string) *ArtistTable

WithSuffix creates new ArtistTable with assigned table suffix

type PlayedAlbumArtistTable

type PlayedAlbumArtistTable struct {
	EXCLUDED playedAlbumArtistTable
	// contains filtered or unexported fields
}

func (PlayedAlbumArtistTable) AS

AS creates new PlayedAlbumArtistTable with assigned alias

func (PlayedAlbumArtistTable) FromSchema

func (a PlayedAlbumArtistTable) FromSchema(schemaName string) *PlayedAlbumArtistTable

Schema creates new PlayedAlbumArtistTable with assigned schema name

func (PlayedAlbumArtistTable) WithPrefix

WithPrefix creates new PlayedAlbumArtistTable with assigned table prefix

func (PlayedAlbumArtistTable) WithSuffix

WithSuffix creates new PlayedAlbumArtistTable with assigned table suffix

type PlayedAlbumTable

type PlayedAlbumTable struct {
	EXCLUDED playedAlbumTable
	// contains filtered or unexported fields
}

func (PlayedAlbumTable) AS

AS creates new PlayedAlbumTable with assigned alias

func (PlayedAlbumTable) FromSchema

func (a PlayedAlbumTable) FromSchema(schemaName string) *PlayedAlbumTable

Schema creates new PlayedAlbumTable with assigned schema name

func (PlayedAlbumTable) WithPrefix

func (a PlayedAlbumTable) WithPrefix(prefix string) *PlayedAlbumTable

WithPrefix creates new PlayedAlbumTable with assigned table prefix

func (PlayedAlbumTable) WithSuffix

func (a PlayedAlbumTable) WithSuffix(suffix string) *PlayedAlbumTable

WithSuffix creates new PlayedAlbumTable with assigned table suffix

type PlaylistTable

type PlaylistTable struct {
	EXCLUDED playlistTable
	// contains filtered or unexported fields
}

func (PlaylistTable) AS

func (a PlaylistTable) AS(alias string) *PlaylistTable

AS creates new PlaylistTable with assigned alias

func (PlaylistTable) FromSchema

func (a PlaylistTable) FromSchema(schemaName string) *PlaylistTable

Schema creates new PlaylistTable with assigned schema name

func (PlaylistTable) WithPrefix

func (a PlaylistTable) WithPrefix(prefix string) *PlaylistTable

WithPrefix creates new PlaylistTable with assigned table prefix

func (PlaylistTable) WithSuffix

func (a PlaylistTable) WithSuffix(suffix string) *PlaylistTable

WithSuffix creates new PlaylistTable with assigned table suffix

type PlaylistTrackTable

type PlaylistTrackTable struct {
	EXCLUDED playlistTrackTable
	// contains filtered or unexported fields
}

func (PlaylistTrackTable) AS

AS creates new PlaylistTrackTable with assigned alias

func (PlaylistTrackTable) FromSchema

func (a PlaylistTrackTable) FromSchema(schemaName string) *PlaylistTrackTable

Schema creates new PlaylistTrackTable with assigned schema name

func (PlaylistTrackTable) WithPrefix

func (a PlaylistTrackTable) WithPrefix(prefix string) *PlaylistTrackTable

WithPrefix creates new PlaylistTrackTable with assigned table prefix

func (PlaylistTrackTable) WithSuffix

func (a PlaylistTrackTable) WithSuffix(suffix string) *PlaylistTrackTable

WithSuffix creates new PlaylistTrackTable with assigned table suffix

type SyncrunTable

type SyncrunTable struct {
	EXCLUDED syncrunTable
	// contains filtered or unexported fields
}

func (SyncrunTable) AS

func (a SyncrunTable) AS(alias string) *SyncrunTable

AS creates new SyncrunTable with assigned alias

func (SyncrunTable) FromSchema

func (a SyncrunTable) FromSchema(schemaName string) *SyncrunTable

Schema creates new SyncrunTable with assigned schema name

func (SyncrunTable) WithPrefix

func (a SyncrunTable) WithPrefix(prefix string) *SyncrunTable

WithPrefix creates new SyncrunTable with assigned table prefix

func (SyncrunTable) WithSuffix

func (a SyncrunTable) WithSuffix(suffix string) *SyncrunTable

WithSuffix creates new SyncrunTable with assigned table suffix

type TrackArtistTable

type TrackArtistTable struct {
	EXCLUDED trackArtistTable
	// contains filtered or unexported fields
}

func (TrackArtistTable) AS

AS creates new TrackArtistTable with assigned alias

func (TrackArtistTable) FromSchema

func (a TrackArtistTable) FromSchema(schemaName string) *TrackArtistTable

Schema creates new TrackArtistTable with assigned schema name

func (TrackArtistTable) WithPrefix

func (a TrackArtistTable) WithPrefix(prefix string) *TrackArtistTable

WithPrefix creates new TrackArtistTable with assigned table prefix

func (TrackArtistTable) WithSuffix

func (a TrackArtistTable) WithSuffix(suffix string) *TrackArtistTable

WithSuffix creates new TrackArtistTable with assigned table suffix

type TrackTable

type TrackTable struct {
	EXCLUDED trackTable
	// contains filtered or unexported fields
}

func (TrackTable) AS

func (a TrackTable) AS(alias string) *TrackTable

AS creates new TrackTable with assigned alias

func (TrackTable) FromSchema

func (a TrackTable) FromSchema(schemaName string) *TrackTable

Schema creates new TrackTable with assigned schema name

func (TrackTable) WithPrefix

func (a TrackTable) WithPrefix(prefix string) *TrackTable

WithPrefix creates new TrackTable with assigned table prefix

func (TrackTable) WithSuffix

func (a TrackTable) WithSuffix(suffix string) *TrackTable

WithSuffix creates new TrackTable with assigned table suffix

Jump to

Keyboard shortcuts

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