table

package
v0.0.0-...-e7feb91 Latest Latest
Warning

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

Go to latest
Published: Mar 6, 2024 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 Playlist = newPlaylistTable("public", "playlist", "")
View Source
var PlaylistTrack = newPlaylistTrackTable("public", "playlist_track", "")
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 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 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