Documentation ¶
Index ¶
- func Connect(driver, datasource string) (*sql.DB, error)
- func MustConnect(driver, datasource string) *sql.DB
- func NewContext(parent context.Context, db meddler.DB) context.Context
- type Datastore
- func (d *Datastore) DelBuild(build *resource.Build) error
- func (d *Datastore) GetBuild(name, version, channel, sdk string) (*resource.Build, error)
- func (d *Datastore) GetBuildLatest(name, version, channel string) (*resource.Build, error)
- func (d *Datastore) GetChannel(channel string) (*resource.Channel, error)
- func (d *Datastore) GetFeed() ([]*resource.Build, error)
- func (d *Datastore) PostBuild(build *resource.Build) error
- func (d *Datastore) PutBuild(build *resource.Build) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Connect ¶
Connect is a helper function that establishes a new database connection and auto-generates the database schema. If the database already exists, it will perform and update as needed.
func MustConnect ¶ added in v0.0.2
MustConnect is a helper function that establishes a new database connection and auto-generates the database schema. If the operation fails it will panic.
Types ¶
type Datastore ¶ added in v0.0.3
func (*Datastore) GetBuild ¶ added in v0.0.3
GetBuild retrieves a specific build from the database for the matching version ID, channel and SDK.
func (*Datastore) GetBuildLatest ¶ added in v0.0.3
GetBuildLatest retrieves a specified build from the database for the matching version and channel, for the latest SDK.
func (*Datastore) GetChannel ¶ added in v0.0.3
GetChannel retrieves the latest SDK version in the system for the specified channel.
Click to show internal directories.
Click to hide internal directories.