models

package
v0.0.0-...-2bd052e Latest Latest
Warning

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

Go to latest
Published: May 2, 2024 License: LGPL-2.1 Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrSyncFail = errors.New("models: failed to synchronize data after insert")

ErrSyncFail occurs during insert when the record could not be retrieved in order to populate default value information. This usually happens when LastInsertId fails or there was a primary key configuration that was not resolvable.

View Source
var GeographyColumnColumns = struct {
	FTableCatalog    string
	FTableSchema     string
	FTableName       string
	FGeographyColumn string
	CoordDimension   string
	Srid             string
	Type             string
}{
	FTableCatalog:    "f_table_catalog",
	FTableSchema:     "f_table_schema",
	FTableName:       "f_table_name",
	FGeographyColumn: "f_geography_column",
	CoordDimension:   "coord_dimension",
	Srid:             "srid",
	Type:             "type",
}
View Source
var GeographyColumnTableColumns = struct {
	FTableCatalog    string
	FTableSchema     string
	FTableName       string
	FGeographyColumn string
	CoordDimension   string
	Srid             string
	Type             string
}{
	FTableCatalog:    "geography_columns.f_table_catalog",
	FTableSchema:     "geography_columns.f_table_schema",
	FTableName:       "geography_columns.f_table_name",
	FGeographyColumn: "geography_columns.f_geography_column",
	CoordDimension:   "geography_columns.coord_dimension",
	Srid:             "geography_columns.srid",
	Type:             "geography_columns.type",
}
View Source
var GeographyColumnWhere = struct {
	FTableCatalog    whereHelpernull_String
	FTableSchema     whereHelpernull_String
	FTableName       whereHelpernull_String
	FGeographyColumn whereHelpernull_String
	CoordDimension   whereHelpernull_Int
	Srid             whereHelpernull_Int
	Type             whereHelpernull_String
}{
	FTableCatalog:    whereHelpernull_String{/* contains filtered or unexported fields */},
	FTableSchema:     whereHelpernull_String{/* contains filtered or unexported fields */},
	FTableName:       whereHelpernull_String{/* contains filtered or unexported fields */},
	FGeographyColumn: whereHelpernull_String{/* contains filtered or unexported fields */},
	CoordDimension:   whereHelpernull_Int{/* contains filtered or unexported fields */},
	Srid:             whereHelpernull_Int{/* contains filtered or unexported fields */},
	Type:             whereHelpernull_String{/* contains filtered or unexported fields */},
}
View Source
var GeometryColumnColumns = struct {
	FTableCatalog   string
	FTableSchema    string
	FTableName      string
	FGeometryColumn string
	CoordDimension  string
	Srid            string
	Type            string
}{
	FTableCatalog:   "f_table_catalog",
	FTableSchema:    "f_table_schema",
	FTableName:      "f_table_name",
	FGeometryColumn: "f_geometry_column",
	CoordDimension:  "coord_dimension",
	Srid:            "srid",
	Type:            "type",
}
View Source
var GeometryColumnTableColumns = struct {
	FTableCatalog   string
	FTableSchema    string
	FTableName      string
	FGeometryColumn string
	CoordDimension  string
	Srid            string
	Type            string
}{
	FTableCatalog:   "geometry_columns.f_table_catalog",
	FTableSchema:    "geometry_columns.f_table_schema",
	FTableName:      "geometry_columns.f_table_name",
	FGeometryColumn: "geometry_columns.f_geometry_column",
	CoordDimension:  "geometry_columns.coord_dimension",
	Srid:            "geometry_columns.srid",
	Type:            "geometry_columns.type",
}
View Source
var GeometryColumnWhere = struct {
	FTableCatalog   whereHelpernull_String
	FTableSchema    whereHelpernull_String
	FTableName      whereHelpernull_String
	FGeometryColumn whereHelpernull_String
	CoordDimension  whereHelpernull_Int
	Srid            whereHelpernull_Int
	Type            whereHelpernull_String
}{
	FTableCatalog:   whereHelpernull_String{/* contains filtered or unexported fields */},
	FTableSchema:    whereHelpernull_String{/* contains filtered or unexported fields */},
	FTableName:      whereHelpernull_String{/* contains filtered or unexported fields */},
	FGeometryColumn: whereHelpernull_String{/* contains filtered or unexported fields */},
	CoordDimension:  whereHelpernull_Int{/* contains filtered or unexported fields */},
	Srid:            whereHelpernull_Int{/* contains filtered or unexported fields */},
	Type:            whereHelpernull_String{/* contains filtered or unexported fields */},
}
View Source
var SourceColumns = struct {
	ID   string
	Name string
}{
	ID:   "id",
	Name: "name",
}
View Source
var SourceRels = struct {
	StockSentiments string
	TopContents     string
}{
	StockSentiments: "StockSentiments",
	TopContents:     "TopContents",
}

SourceRels is where relationship names are stored.

View Source
var SourceTableColumns = struct {
	ID   string
	Name string
}{
	ID:   "sources.id",
	Name: "sources.name",
}
View Source
var SourceWhere = struct {
	ID   whereHelperint
	Name whereHelperstring
}{
	ID:   whereHelperint{/* contains filtered or unexported fields */},
	Name: whereHelperstring{/* contains filtered or unexported fields */},
}
View Source
var SpatialRefSyColumns = struct {
	Srid      string
	AuthName  string
	AuthSrid  string
	Srtext    string
	Proj4text string
}{
	Srid:      "srid",
	AuthName:  "auth_name",
	AuthSrid:  "auth_srid",
	Srtext:    "srtext",
	Proj4text: "proj4text",
}
View Source
var SpatialRefSyRels = struct {
}{}

SpatialRefSyRels is where relationship names are stored.

View Source
var SpatialRefSyTableColumns = struct {
	Srid      string
	AuthName  string
	AuthSrid  string
	Srtext    string
	Proj4text string
}{
	Srid:      "spatial_ref_sys.srid",
	AuthName:  "spatial_ref_sys.auth_name",
	AuthSrid:  "spatial_ref_sys.auth_srid",
	Srtext:    "spatial_ref_sys.srtext",
	Proj4text: "spatial_ref_sys.proj4text",
}
View Source
var SpatialRefSyWhere = struct {
	Srid      whereHelperint
	AuthName  whereHelpernull_String
	AuthSrid  whereHelpernull_Int
	Srtext    whereHelpernull_String
	Proj4text whereHelpernull_String
}{
	Srid:      whereHelperint{/* contains filtered or unexported fields */},
	AuthName:  whereHelpernull_String{/* contains filtered or unexported fields */},
	AuthSrid:  whereHelpernull_Int{/* contains filtered or unexported fields */},
	Srtext:    whereHelpernull_String{/* contains filtered or unexported fields */},
	Proj4text: whereHelpernull_String{/* contains filtered or unexported fields */},
}
View Source
var StockSentimentColumns = struct {
	ID        string
	Ticker    string
	DailyIci  string
	Chatter   string
	CreatedAt string
	UpdatedAt string
	SourceID  string
	Info      string
	Price     string
}{
	ID:        "id",
	Ticker:    "ticker",
	DailyIci:  "daily_ici",
	Chatter:   "chatter",
	CreatedAt: "created_at",
	UpdatedAt: "updated_at",
	SourceID:  "source_id",
	Info:      "info",
	Price:     "price",
}
View Source
var StockSentimentRels = struct {
	Source string
}{
	Source: "Source",
}

StockSentimentRels is where relationship names are stored.

View Source
var StockSentimentTableColumns = struct {
	ID        string
	Ticker    string
	DailyIci  string
	Chatter   string
	CreatedAt string
	UpdatedAt string
	SourceID  string
	Info      string
	Price     string
}{
	ID:        "stock_sentiment.id",
	Ticker:    "stock_sentiment.ticker",
	DailyIci:  "stock_sentiment.daily_ici",
	Chatter:   "stock_sentiment.chatter",
	CreatedAt: "stock_sentiment.created_at",
	UpdatedAt: "stock_sentiment.updated_at",
	SourceID:  "stock_sentiment.source_id",
	Info:      "stock_sentiment.info",
	Price:     "stock_sentiment.price",
}
View Source
var StockSentimentWhere = struct {
	ID        whereHelperint
	Ticker    whereHelperstring
	DailyIci  whereHelperfloat64
	Chatter   whereHelperint
	CreatedAt whereHelpernull_Time
	UpdatedAt whereHelpernull_Time
	SourceID  whereHelperint
	Info      whereHelpernull_JSON
	Price     whereHelperfloat64
}{
	ID:        whereHelperint{/* contains filtered or unexported fields */},
	Ticker:    whereHelperstring{/* contains filtered or unexported fields */},
	DailyIci:  whereHelperfloat64{/* contains filtered or unexported fields */},
	Chatter:   whereHelperint{/* contains filtered or unexported fields */},
	CreatedAt: whereHelpernull_Time{/* contains filtered or unexported fields */},
	UpdatedAt: whereHelpernull_Time{/* contains filtered or unexported fields */},
	SourceID:  whereHelperint{/* contains filtered or unexported fields */},
	Info:      whereHelpernull_JSON{/* contains filtered or unexported fields */},
	Price:     whereHelperfloat64{/* contains filtered or unexported fields */},
}
View Source
var TableNames = struct {
	Sources        string
	SpatialRefSys  string
	StockSentiment string
	Tickers        string
	TopContent     string
	Users          string
}{
	Sources:        "sources",
	SpatialRefSys:  "spatial_ref_sys",
	StockSentiment: "stock_sentiment",
	Tickers:        "tickers",
	TopContent:     "top_content",
	Users:          "users",
}
View Source
var TickerColumns = struct {
	ID        string
	Name      string
	Ticker    string
	CreatedAt string
	UpdatedAt string
}{
	ID:        "id",
	Name:      "name",
	Ticker:    "ticker",
	CreatedAt: "created_at",
	UpdatedAt: "updated_at",
}
View Source
var TickerRels = struct {
}{}

TickerRels is where relationship names are stored.

View Source
var TickerTableColumns = struct {
	ID        string
	Name      string
	Ticker    string
	CreatedAt string
	UpdatedAt string
}{
	ID:        "tickers.id",
	Name:      "tickers.name",
	Ticker:    "tickers.ticker",
	CreatedAt: "tickers.created_at",
	UpdatedAt: "tickers.updated_at",
}
View Source
var TickerWhere = struct {
	ID        whereHelperint
	Name      whereHelperstring
	Ticker    whereHelperstring
	CreatedAt whereHelpernull_Time
	UpdatedAt whereHelpernull_Time
}{
	ID:        whereHelperint{/* contains filtered or unexported fields */},
	Name:      whereHelperstring{/* contains filtered or unexported fields */},
	Ticker:    whereHelperstring{/* contains filtered or unexported fields */},
	CreatedAt: whereHelpernull_Time{/* contains filtered or unexported fields */},
	UpdatedAt: whereHelpernull_Time{/* contains filtered or unexported fields */},
}
View Source
var TopContentColumns = struct {
	ID        string
	Ticker    string
	CreatedAt string
	UpdatedAt string
	URL       string
	SRC       string
	Info      string
	SourceID  string
}{
	ID:        "id",
	Ticker:    "ticker",
	CreatedAt: "created_at",
	UpdatedAt: "updated_at",
	URL:       "url",
	SRC:       "src",
	Info:      "info",
	SourceID:  "source_id",
}
View Source
var TopContentRels = struct {
	Source string
}{
	Source: "Source",
}

TopContentRels is where relationship names are stored.

View Source
var TopContentTableColumns = struct {
	ID        string
	Ticker    string
	CreatedAt string
	UpdatedAt string
	URL       string
	SRC       string
	Info      string
	SourceID  string
}{
	ID:        "top_content.id",
	Ticker:    "top_content.ticker",
	CreatedAt: "top_content.created_at",
	UpdatedAt: "top_content.updated_at",
	URL:       "top_content.url",
	SRC:       "top_content.src",
	Info:      "top_content.info",
	SourceID:  "top_content.source_id",
}
View Source
var TopContentWhere = struct {
	ID        whereHelperint
	Ticker    whereHelperstring
	CreatedAt whereHelpertime_Time
	UpdatedAt whereHelpertime_Time
	URL       whereHelperstring
	SRC       whereHelperstring
	Info      whereHelpernull_JSON
	SourceID  whereHelperint
}{
	ID:        whereHelperint{/* contains filtered or unexported fields */},
	Ticker:    whereHelperstring{/* contains filtered or unexported fields */},
	CreatedAt: whereHelpertime_Time{/* contains filtered or unexported fields */},
	UpdatedAt: whereHelpertime_Time{/* contains filtered or unexported fields */},
	URL:       whereHelperstring{/* contains filtered or unexported fields */},
	SRC:       whereHelperstring{/* contains filtered or unexported fields */},
	Info:      whereHelpernull_JSON{/* contains filtered or unexported fields */},
	SourceID:  whereHelperint{/* contains filtered or unexported fields */},
}
View Source
var UserColumns = struct {
	ID        string
	Name      string
	Email     string
	Password  string
	CreatedAt string
	UpdatedAt string
}{
	ID:        "id",
	Name:      "name",
	Email:     "email",
	Password:  "password",
	CreatedAt: "created_at",
	UpdatedAt: "updated_at",
}
View Source
var UserRels = struct {
}{}

UserRels is where relationship names are stored.

View Source
var UserTableColumns = struct {
	ID        string
	Name      string
	Email     string
	Password  string
	CreatedAt string
	UpdatedAt string
}{
	ID:        "users.id",
	Name:      "users.name",
	Email:     "users.email",
	Password:  "users.password",
	CreatedAt: "users.created_at",
	UpdatedAt: "users.updated_at",
}
View Source
var UserWhere = struct {
	ID        whereHelperint
	Name      whereHelperstring
	Email     whereHelperstring
	Password  whereHelperstring
	CreatedAt whereHelpernull_Time
	UpdatedAt whereHelpernull_Time
}{
	ID:        whereHelperint{/* contains filtered or unexported fields */},
	Name:      whereHelperstring{/* contains filtered or unexported fields */},
	Email:     whereHelperstring{/* contains filtered or unexported fields */},
	Password:  whereHelperstring{/* contains filtered or unexported fields */},
	CreatedAt: whereHelpernull_Time{/* contains filtered or unexported fields */},
	UpdatedAt: whereHelpernull_Time{/* contains filtered or unexported fields */},
}
View Source
var ViewNames = struct {
	GeographyColumns string
	GeometryColumns  string
}{
	GeographyColumns: "geography_columns",
	GeometryColumns:  "geometry_columns",
}

Functions

func AddGeographyColumnHook

func AddGeographyColumnHook(hookPoint boil.HookPoint, geographyColumnHook GeographyColumnHook)

AddGeographyColumnHook registers your hook function for all future operations.

func AddGeometryColumnHook

func AddGeometryColumnHook(hookPoint boil.HookPoint, geometryColumnHook GeometryColumnHook)

AddGeometryColumnHook registers your hook function for all future operations.

func AddSourceHook

func AddSourceHook(hookPoint boil.HookPoint, sourceHook SourceHook)

AddSourceHook registers your hook function for all future operations.

func AddSpatialRefSyHook

func AddSpatialRefSyHook(hookPoint boil.HookPoint, spatialRefSyHook SpatialRefSyHook)

AddSpatialRefSyHook registers your hook function for all future operations.

func AddStockSentimentHook

func AddStockSentimentHook(hookPoint boil.HookPoint, stockSentimentHook StockSentimentHook)

AddStockSentimentHook registers your hook function for all future operations.

func AddTickerHook

func AddTickerHook(hookPoint boil.HookPoint, tickerHook TickerHook)

AddTickerHook registers your hook function for all future operations.

func AddTopContentHook

func AddTopContentHook(hookPoint boil.HookPoint, topContentHook TopContentHook)

AddTopContentHook registers your hook function for all future operations.

func AddUserHook

func AddUserHook(hookPoint boil.HookPoint, userHook UserHook)

AddUserHook registers your hook function for all future operations.

func GeographyColumns

func GeographyColumns(mods ...qm.QueryMod) geographyColumnQuery

GeographyColumns retrieves all the records using an executor.

func GeometryColumns

func GeometryColumns(mods ...qm.QueryMod) geometryColumnQuery

GeometryColumns retrieves all the records using an executor.

func NewQuery

func NewQuery(mods ...qm.QueryMod) *queries.Query

NewQuery initializes a new Query using the passed in QueryMods

func SourceExists

func SourceExists(ctx context.Context, exec boil.ContextExecutor, iD int) (bool, error)

SourceExists checks if the Source row exists.

func SourceExistsG

func SourceExistsG(ctx context.Context, iD int) (bool, error)

SourceExistsG checks if the Source row exists.

func Sources

func Sources(mods ...qm.QueryMod) sourceQuery

Sources retrieves all the records using an executor.

func SpatialRefSyExists

func SpatialRefSyExists(ctx context.Context, exec boil.ContextExecutor, srid int) (bool, error)

SpatialRefSyExists checks if the SpatialRefSy row exists.

func SpatialRefSyExistsG

func SpatialRefSyExistsG(ctx context.Context, srid int) (bool, error)

SpatialRefSyExistsG checks if the SpatialRefSy row exists.

func SpatialRefSys

func SpatialRefSys(mods ...qm.QueryMod) spatialRefSyQuery

SpatialRefSys retrieves all the records using an executor.

func StockSentimentExists

func StockSentimentExists(ctx context.Context, exec boil.ContextExecutor, iD int) (bool, error)

StockSentimentExists checks if the StockSentiment row exists.

func StockSentimentExistsG

func StockSentimentExistsG(ctx context.Context, iD int) (bool, error)

StockSentimentExistsG checks if the StockSentiment row exists.

func StockSentiments

func StockSentiments(mods ...qm.QueryMod) stockSentimentQuery

StockSentiments retrieves all the records using an executor.

func TickerExists

func TickerExists(ctx context.Context, exec boil.ContextExecutor, iD int) (bool, error)

TickerExists checks if the Ticker row exists.

func TickerExistsG

func TickerExistsG(ctx context.Context, iD int) (bool, error)

TickerExistsG checks if the Ticker row exists.

func Tickers

func Tickers(mods ...qm.QueryMod) tickerQuery

Tickers retrieves all the records using an executor.

func TopContentExists

func TopContentExists(ctx context.Context, exec boil.ContextExecutor, iD int) (bool, error)

TopContentExists checks if the TopContent row exists.

func TopContentExistsG

func TopContentExistsG(ctx context.Context, iD int) (bool, error)

TopContentExistsG checks if the TopContent row exists.

func TopContents

func TopContents(mods ...qm.QueryMod) topContentQuery

TopContents retrieves all the records using an executor.

func UserExists

func UserExists(ctx context.Context, exec boil.ContextExecutor, iD int) (bool, error)

UserExists checks if the User row exists.

func UserExistsG

func UserExistsG(ctx context.Context, iD int) (bool, error)

UserExistsG checks if the User row exists.

func Users

func Users(mods ...qm.QueryMod) userQuery

Users retrieves all the records using an executor.

Types

type GeographyColumn

type GeographyColumn struct {
	FTableCatalog    null.String `boil:"f_table_catalog" json:"f_table_catalog,omitempty" toml:"f_table_catalog" yaml:"f_table_catalog,omitempty"`
	FTableSchema     null.String `boil:"f_table_schema" json:"f_table_schema,omitempty" toml:"f_table_schema" yaml:"f_table_schema,omitempty"`
	FTableName       null.String `boil:"f_table_name" json:"f_table_name,omitempty" toml:"f_table_name" yaml:"f_table_name,omitempty"`
	FGeographyColumn null.String `boil:"f_geography_column" json:"f_geography_column,omitempty" toml:"f_geography_column" yaml:"f_geography_column,omitempty"`
	CoordDimension   null.Int    `boil:"coord_dimension" json:"coord_dimension,omitempty" toml:"coord_dimension" yaml:"coord_dimension,omitempty"`
	Srid             null.Int    `boil:"srid" json:"srid,omitempty" toml:"srid" yaml:"srid,omitempty"`
	Type             null.String `boil:"type" json:"type,omitempty" toml:"type" yaml:"type,omitempty"`
}

GeographyColumn is an object representing the database table.

type GeographyColumnHook

type GeographyColumnHook func(context.Context, boil.ContextExecutor, *GeographyColumn) error

GeographyColumnHook is the signature for custom GeographyColumn hook methods

type GeographyColumnSlice

type GeographyColumnSlice []*GeographyColumn

GeographyColumnSlice is an alias for a slice of pointers to GeographyColumn. This should almost always be used instead of []GeographyColumn.

type GeometryColumn

type GeometryColumn struct {
	FTableCatalog   null.String `boil:"f_table_catalog" json:"f_table_catalog,omitempty" toml:"f_table_catalog" yaml:"f_table_catalog,omitempty"`
	FTableSchema    null.String `boil:"f_table_schema" json:"f_table_schema,omitempty" toml:"f_table_schema" yaml:"f_table_schema,omitempty"`
	FTableName      null.String `boil:"f_table_name" json:"f_table_name,omitempty" toml:"f_table_name" yaml:"f_table_name,omitempty"`
	FGeometryColumn null.String `boil:"f_geometry_column" json:"f_geometry_column,omitempty" toml:"f_geometry_column" yaml:"f_geometry_column,omitempty"`
	CoordDimension  null.Int    `boil:"coord_dimension" json:"coord_dimension,omitempty" toml:"coord_dimension" yaml:"coord_dimension,omitempty"`
	Srid            null.Int    `boil:"srid" json:"srid,omitempty" toml:"srid" yaml:"srid,omitempty"`
	Type            null.String `boil:"type" json:"type,omitempty" toml:"type" yaml:"type,omitempty"`
}

GeometryColumn is an object representing the database table.

func (*GeometryColumn) Insert

func (o *GeometryColumn) Insert(ctx context.Context, exec boil.ContextExecutor, columns boil.Columns) error

Insert a single record using an executor. See boil.Columns.InsertColumnSet documentation to understand column list inference for inserts.

func (*GeometryColumn) InsertG

func (o *GeometryColumn) InsertG(ctx context.Context, columns boil.Columns) error

InsertG a single record. See Insert for whitelist behavior description.

func (*GeometryColumn) Upsert

func (o *GeometryColumn) Upsert(ctx context.Context, exec boil.ContextExecutor, updateOnConflict bool, conflictColumns []string, updateColumns, insertColumns boil.Columns, opts ...UpsertOptionFunc) error

Upsert attempts an insert using an executor, and does an update or ignore on conflict. See boil.Columns documentation for how to properly use updateColumns and insertColumns.

func (*GeometryColumn) UpsertG

func (o *GeometryColumn) UpsertG(ctx context.Context, updateOnConflict bool, conflictColumns []string, updateColumns, insertColumns boil.Columns, opts ...UpsertOptionFunc) error

UpsertG attempts an insert, and does an update or ignore on conflict.

type GeometryColumnHook

type GeometryColumnHook func(context.Context, boil.ContextExecutor, *GeometryColumn) error

GeometryColumnHook is the signature for custom GeometryColumn hook methods

type GeometryColumnSlice

type GeometryColumnSlice []*GeometryColumn

GeometryColumnSlice is an alias for a slice of pointers to GeometryColumn. This should almost always be used instead of []GeometryColumn.

type M

type M map[string]interface{}

M type is for providing columns and column values to UpdateAll.

type Message

type Message struct {
	Topic string `json:"topic"`
	Data  string `json:"data"`
}

type PriceUpdate

type PriceUpdate struct {
	Ticker   string `json:"ticker"`
	FromDate string `json:"from_date"`
	ToDate   string `json:"to_date"`
}

type Sentiment

type Sentiment struct {
	ID            int       `json:"id" jsonapi:"primary,sentiments"`
	Date          time.Time `json:"date" jsonapi:"attr,date,iso8601"`
	DailyICI      float64   `json:"daily_ici" jsonapi:"attr,daily_ici"`
	Volume        int       `json:"volume" jsonapi:"attr,volume"`
	PositiveCount int       `json:"positive_count" jsonapi:"attr,positive_count"`
	NegativeCount int       `json:"negative_count" jsonapi:"attr,negative_count"`
	NeutralCount  int       `json:"neutral_count" jsonapi:"attr,neutral_count"`
}

type Source

type Source struct {
	ID   int    `boil:"id" json:"id" toml:"id" yaml:"id"`
	Name string `boil:"name" json:"name" toml:"name" yaml:"name"`

	R *sourceR `boil:"-" json:"-" toml:"-" yaml:"-"`
	L sourceL  `boil:"-" json:"-" toml:"-" yaml:"-"`
}

Source is an object representing the database table.

func FindSource

func FindSource(ctx context.Context, exec boil.ContextExecutor, iD int, selectCols ...string) (*Source, error)

FindSource retrieves a single record by ID with an executor. If selectCols is empty Find will return all columns.

func FindSourceG

func FindSourceG(ctx context.Context, iD int, selectCols ...string) (*Source, error)

FindSourceG retrieves a single record by ID.

func (*Source) AddStockSentiments

func (o *Source) AddStockSentiments(ctx context.Context, exec boil.ContextExecutor, insert bool, related ...*StockSentiment) error

AddStockSentiments adds the given related objects to the existing relationships of the source, optionally inserting them as new records. Appends related to o.R.StockSentiments. Sets related.R.Source appropriately.

func (*Source) AddStockSentimentsG

func (o *Source) AddStockSentimentsG(ctx context.Context, insert bool, related ...*StockSentiment) error

AddStockSentimentsG adds the given related objects to the existing relationships of the source, optionally inserting them as new records. Appends related to o.R.StockSentiments. Sets related.R.Source appropriately. Uses the global database handle.

func (*Source) AddTopContents

func (o *Source) AddTopContents(ctx context.Context, exec boil.ContextExecutor, insert bool, related ...*TopContent) error

AddTopContents adds the given related objects to the existing relationships of the source, optionally inserting them as new records. Appends related to o.R.TopContents. Sets related.R.Source appropriately.

func (*Source) AddTopContentsG

func (o *Source) AddTopContentsG(ctx context.Context, insert bool, related ...*TopContent) error

AddTopContentsG adds the given related objects to the existing relationships of the source, optionally inserting them as new records. Appends related to o.R.TopContents. Sets related.R.Source appropriately. Uses the global database handle.

func (*Source) Delete

func (o *Source) Delete(ctx context.Context, exec boil.ContextExecutor) (int64, error)

Delete deletes a single Source record with an executor. Delete will match against the primary key column to find the record to delete.

func (*Source) DeleteG

func (o *Source) DeleteG(ctx context.Context) (int64, error)

DeleteG deletes a single Source record. DeleteG will match against the primary key column to find the record to delete.

func (*Source) Exists

func (o *Source) Exists(ctx context.Context, exec boil.ContextExecutor) (bool, error)

Exists checks if the Source row exists.

func (*Source) Insert

func (o *Source) Insert(ctx context.Context, exec boil.ContextExecutor, columns boil.Columns) error

Insert a single record using an executor. See boil.Columns.InsertColumnSet documentation to understand column list inference for inserts.

func (*Source) InsertG

func (o *Source) InsertG(ctx context.Context, columns boil.Columns) error

InsertG a single record. See Insert for whitelist behavior description.

func (*Source) Reload

func (o *Source) Reload(ctx context.Context, exec boil.ContextExecutor) error

Reload refetches the object from the database using the primary keys with an executor.

func (*Source) ReloadG

func (o *Source) ReloadG(ctx context.Context) error

ReloadG refetches the object from the database using the primary keys.

func (*Source) StockSentiments

func (o *Source) StockSentiments(mods ...qm.QueryMod) stockSentimentQuery

StockSentiments retrieves all the stock_sentiment's StockSentiments with an executor.

func (*Source) TopContents

func (o *Source) TopContents(mods ...qm.QueryMod) topContentQuery

TopContents retrieves all the top_content's TopContents with an executor.

func (*Source) Update

func (o *Source) Update(ctx context.Context, exec boil.ContextExecutor, columns boil.Columns) (int64, error)

Update uses an executor to update the Source. See boil.Columns.UpdateColumnSet documentation to understand column list inference for updates. Update does not automatically update the record in case of default values. Use .Reload() to refresh the records.

func (*Source) UpdateG

func (o *Source) UpdateG(ctx context.Context, columns boil.Columns) (int64, error)

UpdateG a single Source record using the global executor. See Update for more documentation.

func (*Source) Upsert

func (o *Source) Upsert(ctx context.Context, exec boil.ContextExecutor, updateOnConflict bool, conflictColumns []string, updateColumns, insertColumns boil.Columns, opts ...UpsertOptionFunc) error

Upsert attempts an insert using an executor, and does an update or ignore on conflict. See boil.Columns documentation for how to properly use updateColumns and insertColumns.

func (*Source) UpsertG

func (o *Source) UpsertG(ctx context.Context, updateOnConflict bool, conflictColumns []string, updateColumns, insertColumns boil.Columns, opts ...UpsertOptionFunc) error

UpsertG attempts an insert, and does an update or ignore on conflict.

type SourceHook

type SourceHook func(context.Context, boil.ContextExecutor, *Source) error

SourceHook is the signature for custom Source hook methods

type SourceSlice

type SourceSlice []*Source

SourceSlice is an alias for a slice of pointers to Source. This should almost always be used instead of []Source.

func (SourceSlice) DeleteAll

func (o SourceSlice) DeleteAll(ctx context.Context, exec boil.ContextExecutor) (int64, error)

DeleteAll deletes all rows in the slice, using an executor.

func (SourceSlice) DeleteAllG

func (o SourceSlice) DeleteAllG(ctx context.Context) (int64, error)

DeleteAllG deletes all rows in the slice.

func (*SourceSlice) ReloadAll

func (o *SourceSlice) ReloadAll(ctx context.Context, exec boil.ContextExecutor) error

ReloadAll refetches every row with matching primary key column values and overwrites the original object slice with the newly updated slice.

func (*SourceSlice) ReloadAllG

func (o *SourceSlice) ReloadAllG(ctx context.Context) error

ReloadAllG refetches every row with matching primary key column values and overwrites the original object slice with the newly updated slice.

func (SourceSlice) UpdateAll

func (o SourceSlice) UpdateAll(ctx context.Context, exec boil.ContextExecutor, cols M) (int64, error)

UpdateAll updates all rows with the specified column values, using an executor.

func (SourceSlice) UpdateAllG

func (o SourceSlice) UpdateAllG(ctx context.Context, cols M) (int64, error)

UpdateAllG updates all rows with the specified column values.

type SpatialRefSy

type SpatialRefSy struct {
	Srid      int         `boil:"srid" json:"srid" toml:"srid" yaml:"srid"`
	AuthName  null.String `boil:"auth_name" json:"auth_name,omitempty" toml:"auth_name" yaml:"auth_name,omitempty"`
	AuthSrid  null.Int    `boil:"auth_srid" json:"auth_srid,omitempty" toml:"auth_srid" yaml:"auth_srid,omitempty"`
	Srtext    null.String `boil:"srtext" json:"srtext,omitempty" toml:"srtext" yaml:"srtext,omitempty"`
	Proj4text null.String `boil:"proj4text" json:"proj4text,omitempty" toml:"proj4text" yaml:"proj4text,omitempty"`

	R *spatialRefSyR `boil:"-" json:"-" toml:"-" yaml:"-"`
	L spatialRefSyL  `boil:"-" json:"-" toml:"-" yaml:"-"`
}

SpatialRefSy is an object representing the database table.

func FindSpatialRefSy

func FindSpatialRefSy(ctx context.Context, exec boil.ContextExecutor, srid int, selectCols ...string) (*SpatialRefSy, error)

FindSpatialRefSy retrieves a single record by ID with an executor. If selectCols is empty Find will return all columns.

func FindSpatialRefSyG

func FindSpatialRefSyG(ctx context.Context, srid int, selectCols ...string) (*SpatialRefSy, error)

FindSpatialRefSyG retrieves a single record by ID.

func (*SpatialRefSy) Delete

func (o *SpatialRefSy) Delete(ctx context.Context, exec boil.ContextExecutor) (int64, error)

Delete deletes a single SpatialRefSy record with an executor. Delete will match against the primary key column to find the record to delete.

func (*SpatialRefSy) DeleteG

func (o *SpatialRefSy) DeleteG(ctx context.Context) (int64, error)

DeleteG deletes a single SpatialRefSy record. DeleteG will match against the primary key column to find the record to delete.

func (*SpatialRefSy) Exists

func (o *SpatialRefSy) Exists(ctx context.Context, exec boil.ContextExecutor) (bool, error)

Exists checks if the SpatialRefSy row exists.

func (*SpatialRefSy) Insert

func (o *SpatialRefSy) Insert(ctx context.Context, exec boil.ContextExecutor, columns boil.Columns) error

Insert a single record using an executor. See boil.Columns.InsertColumnSet documentation to understand column list inference for inserts.

func (*SpatialRefSy) InsertG

func (o *SpatialRefSy) InsertG(ctx context.Context, columns boil.Columns) error

InsertG a single record. See Insert for whitelist behavior description.

func (*SpatialRefSy) Reload

func (o *SpatialRefSy) Reload(ctx context.Context, exec boil.ContextExecutor) error

Reload refetches the object from the database using the primary keys with an executor.

func (*SpatialRefSy) ReloadG

func (o *SpatialRefSy) ReloadG(ctx context.Context) error

ReloadG refetches the object from the database using the primary keys.

func (*SpatialRefSy) Update

func (o *SpatialRefSy) Update(ctx context.Context, exec boil.ContextExecutor, columns boil.Columns) (int64, error)

Update uses an executor to update the SpatialRefSy. See boil.Columns.UpdateColumnSet documentation to understand column list inference for updates. Update does not automatically update the record in case of default values. Use .Reload() to refresh the records.

func (*SpatialRefSy) UpdateG

func (o *SpatialRefSy) UpdateG(ctx context.Context, columns boil.Columns) (int64, error)

UpdateG a single SpatialRefSy record using the global executor. See Update for more documentation.

func (*SpatialRefSy) Upsert

func (o *SpatialRefSy) Upsert(ctx context.Context, exec boil.ContextExecutor, updateOnConflict bool, conflictColumns []string, updateColumns, insertColumns boil.Columns, opts ...UpsertOptionFunc) error

Upsert attempts an insert using an executor, and does an update or ignore on conflict. See boil.Columns documentation for how to properly use updateColumns and insertColumns.

func (*SpatialRefSy) UpsertG

func (o *SpatialRefSy) UpsertG(ctx context.Context, updateOnConflict bool, conflictColumns []string, updateColumns, insertColumns boil.Columns, opts ...UpsertOptionFunc) error

UpsertG attempts an insert, and does an update or ignore on conflict.

type SpatialRefSyHook

type SpatialRefSyHook func(context.Context, boil.ContextExecutor, *SpatialRefSy) error

SpatialRefSyHook is the signature for custom SpatialRefSy hook methods

type SpatialRefSySlice

type SpatialRefSySlice []*SpatialRefSy

SpatialRefSySlice is an alias for a slice of pointers to SpatialRefSy. This should almost always be used instead of []SpatialRefSy.

func (SpatialRefSySlice) DeleteAll

func (o SpatialRefSySlice) DeleteAll(ctx context.Context, exec boil.ContextExecutor) (int64, error)

DeleteAll deletes all rows in the slice, using an executor.

func (SpatialRefSySlice) DeleteAllG

func (o SpatialRefSySlice) DeleteAllG(ctx context.Context) (int64, error)

DeleteAllG deletes all rows in the slice.

func (*SpatialRefSySlice) ReloadAll

func (o *SpatialRefSySlice) ReloadAll(ctx context.Context, exec boil.ContextExecutor) error

ReloadAll refetches every row with matching primary key column values and overwrites the original object slice with the newly updated slice.

func (*SpatialRefSySlice) ReloadAllG

func (o *SpatialRefSySlice) ReloadAllG(ctx context.Context) error

ReloadAllG refetches every row with matching primary key column values and overwrites the original object slice with the newly updated slice.

func (SpatialRefSySlice) UpdateAll

func (o SpatialRefSySlice) UpdateAll(ctx context.Context, exec boil.ContextExecutor, cols M) (int64, error)

UpdateAll updates all rows with the specified column values, using an executor.

func (SpatialRefSySlice) UpdateAllG

func (o SpatialRefSySlice) UpdateAllG(ctx context.Context, cols M) (int64, error)

UpdateAllG updates all rows with the specified column values.

type StockResponse

type StockResponse struct {
	Ticker            string                `json:"ticker" jsonapi:"primary,stocks"`
	NewsCorrelation   float64               `json:"news_correlation" jsonapi:"attr,news_correlation"`
	SocialCorrelation float64               `json:"social_correlation" jsonapi:"attr,social_correlation"`
	NewsSentiment     []*Sentiment          `json:"news_sentiment" jsonapi:"relation,news_sentiment"`
	SocialSentiment   []*Sentiment          `json:"social_sentiment" jsonapi:"relation,social_sentiment"`
	TopContentsNews   []*TopContentResponse `json:"top_contents_news" jsonapi:"relation,top_contents_news"`
	TopContentsSocial []*TopContentResponse `json:"top_contents_social" jsonapi:"relation,top_contents_social"`
}

type StockSentiment

type StockSentiment struct {
	ID        int       `boil:"id" json:"id" toml:"id" yaml:"id"`
	Ticker    string    `boil:"ticker" json:"ticker" toml:"ticker" yaml:"ticker"`
	DailyIci  float64   `boil:"daily_ici" json:"daily_ici" toml:"daily_ici" yaml:"daily_ici"`
	Chatter   int       `boil:"chatter" json:"chatter" toml:"chatter" yaml:"chatter"`
	CreatedAt null.Time `boil:"created_at" json:"created_at,omitempty" toml:"created_at" yaml:"created_at,omitempty"`
	UpdatedAt null.Time `boil:"updated_at" json:"updated_at,omitempty" toml:"updated_at" yaml:"updated_at,omitempty"`
	SourceID  int       `boil:"source_id" json:"source_id" toml:"source_id" yaml:"source_id"`
	Info      null.JSON `boil:"info" json:"info,omitempty" toml:"info" yaml:"info,omitempty"`
	Price     float64   `boil:"price" json:"price" toml:"price" yaml:"price"`

	R *stockSentimentR `boil:"-" json:"-" toml:"-" yaml:"-"`
	L stockSentimentL  `boil:"-" json:"-" toml:"-" yaml:"-"`
}

StockSentiment is an object representing the database table.

func FindStockSentiment

func FindStockSentiment(ctx context.Context, exec boil.ContextExecutor, iD int, selectCols ...string) (*StockSentiment, error)

FindStockSentiment retrieves a single record by ID with an executor. If selectCols is empty Find will return all columns.

func FindStockSentimentG

func FindStockSentimentG(ctx context.Context, iD int, selectCols ...string) (*StockSentiment, error)

FindStockSentimentG retrieves a single record by ID.

func (*StockSentiment) Delete

func (o *StockSentiment) Delete(ctx context.Context, exec boil.ContextExecutor) (int64, error)

Delete deletes a single StockSentiment record with an executor. Delete will match against the primary key column to find the record to delete.

func (*StockSentiment) DeleteG

func (o *StockSentiment) DeleteG(ctx context.Context) (int64, error)

DeleteG deletes a single StockSentiment record. DeleteG will match against the primary key column to find the record to delete.

func (*StockSentiment) Exists

func (o *StockSentiment) Exists(ctx context.Context, exec boil.ContextExecutor) (bool, error)

Exists checks if the StockSentiment row exists.

func (*StockSentiment) Insert

func (o *StockSentiment) Insert(ctx context.Context, exec boil.ContextExecutor, columns boil.Columns) error

Insert a single record using an executor. See boil.Columns.InsertColumnSet documentation to understand column list inference for inserts.

func (*StockSentiment) InsertG

func (o *StockSentiment) InsertG(ctx context.Context, columns boil.Columns) error

InsertG a single record. See Insert for whitelist behavior description.

func (*StockSentiment) Reload

func (o *StockSentiment) Reload(ctx context.Context, exec boil.ContextExecutor) error

Reload refetches the object from the database using the primary keys with an executor.

func (*StockSentiment) ReloadG

func (o *StockSentiment) ReloadG(ctx context.Context) error

ReloadG refetches the object from the database using the primary keys.

func (*StockSentiment) SetSource

func (o *StockSentiment) SetSource(ctx context.Context, exec boil.ContextExecutor, insert bool, related *Source) error

SetSource of the stockSentiment to the related item. Sets o.R.Source to related. Adds o to related.R.StockSentiments.

func (*StockSentiment) SetSourceG

func (o *StockSentiment) SetSourceG(ctx context.Context, insert bool, related *Source) error

SetSourceG of the stockSentiment to the related item. Sets o.R.Source to related. Adds o to related.R.StockSentiments. Uses the global database handle.

func (*StockSentiment) Source

func (o *StockSentiment) Source(mods ...qm.QueryMod) sourceQuery

Source pointed to by the foreign key.

func (*StockSentiment) Update

func (o *StockSentiment) Update(ctx context.Context, exec boil.ContextExecutor, columns boil.Columns) (int64, error)

Update uses an executor to update the StockSentiment. See boil.Columns.UpdateColumnSet documentation to understand column list inference for updates. Update does not automatically update the record in case of default values. Use .Reload() to refresh the records.

func (*StockSentiment) UpdateG

func (o *StockSentiment) UpdateG(ctx context.Context, columns boil.Columns) (int64, error)

UpdateG a single StockSentiment record using the global executor. See Update for more documentation.

func (*StockSentiment) Upsert

func (o *StockSentiment) Upsert(ctx context.Context, exec boil.ContextExecutor, updateOnConflict bool, conflictColumns []string, updateColumns, insertColumns boil.Columns, opts ...UpsertOptionFunc) error

Upsert attempts an insert using an executor, and does an update or ignore on conflict. See boil.Columns documentation for how to properly use updateColumns and insertColumns.

func (*StockSentiment) UpsertG

func (o *StockSentiment) UpsertG(ctx context.Context, updateOnConflict bool, conflictColumns []string, updateColumns, insertColumns boil.Columns, opts ...UpsertOptionFunc) error

UpsertG attempts an insert, and does an update or ignore on conflict.

type StockSentimentHook

type StockSentimentHook func(context.Context, boil.ContextExecutor, *StockSentiment) error

StockSentimentHook is the signature for custom StockSentiment hook methods

type StockSentimentSlice

type StockSentimentSlice []*StockSentiment

StockSentimentSlice is an alias for a slice of pointers to StockSentiment. This should almost always be used instead of []StockSentiment.

func (StockSentimentSlice) DeleteAll

DeleteAll deletes all rows in the slice, using an executor.

func (StockSentimentSlice) DeleteAllG

func (o StockSentimentSlice) DeleteAllG(ctx context.Context) (int64, error)

DeleteAllG deletes all rows in the slice.

func (*StockSentimentSlice) ReloadAll

func (o *StockSentimentSlice) ReloadAll(ctx context.Context, exec boil.ContextExecutor) error

ReloadAll refetches every row with matching primary key column values and overwrites the original object slice with the newly updated slice.

func (*StockSentimentSlice) ReloadAllG

func (o *StockSentimentSlice) ReloadAllG(ctx context.Context) error

ReloadAllG refetches every row with matching primary key column values and overwrites the original object slice with the newly updated slice.

func (StockSentimentSlice) UpdateAll

func (o StockSentimentSlice) UpdateAll(ctx context.Context, exec boil.ContextExecutor, cols M) (int64, error)

UpdateAll updates all rows with the specified column values, using an executor.

func (StockSentimentSlice) UpdateAllG

func (o StockSentimentSlice) UpdateAllG(ctx context.Context, cols M) (int64, error)

UpdateAllG updates all rows with the specified column values.

type Ticker

type Ticker struct {
	ID        int       `boil:"id" json:"id" toml:"id" yaml:"id"`
	Name      string    `boil:"name" json:"name" toml:"name" yaml:"name"`
	Ticker    string    `boil:"ticker" json:"ticker" toml:"ticker" yaml:"ticker"`
	CreatedAt null.Time `boil:"created_at" json:"created_at,omitempty" toml:"created_at" yaml:"created_at,omitempty"`
	UpdatedAt null.Time `boil:"updated_at" json:"updated_at,omitempty" toml:"updated_at" yaml:"updated_at,omitempty"`

	R *tickerR `boil:"-" json:"-" toml:"-" yaml:"-"`
	L tickerL  `boil:"-" json:"-" toml:"-" yaml:"-"`
}

Ticker is an object representing the database table.

func FindTicker

func FindTicker(ctx context.Context, exec boil.ContextExecutor, iD int, selectCols ...string) (*Ticker, error)

FindTicker retrieves a single record by ID with an executor. If selectCols is empty Find will return all columns.

func FindTickerG

func FindTickerG(ctx context.Context, iD int, selectCols ...string) (*Ticker, error)

FindTickerG retrieves a single record by ID.

func (*Ticker) Delete

func (o *Ticker) Delete(ctx context.Context, exec boil.ContextExecutor) (int64, error)

Delete deletes a single Ticker record with an executor. Delete will match against the primary key column to find the record to delete.

func (*Ticker) DeleteG

func (o *Ticker) DeleteG(ctx context.Context) (int64, error)

DeleteG deletes a single Ticker record. DeleteG will match against the primary key column to find the record to delete.

func (*Ticker) Exists

func (o *Ticker) Exists(ctx context.Context, exec boil.ContextExecutor) (bool, error)

Exists checks if the Ticker row exists.

func (*Ticker) Insert

func (o *Ticker) Insert(ctx context.Context, exec boil.ContextExecutor, columns boil.Columns) error

Insert a single record using an executor. See boil.Columns.InsertColumnSet documentation to understand column list inference for inserts.

func (*Ticker) InsertG

func (o *Ticker) InsertG(ctx context.Context, columns boil.Columns) error

InsertG a single record. See Insert for whitelist behavior description.

func (*Ticker) Reload

func (o *Ticker) Reload(ctx context.Context, exec boil.ContextExecutor) error

Reload refetches the object from the database using the primary keys with an executor.

func (*Ticker) ReloadG

func (o *Ticker) ReloadG(ctx context.Context) error

ReloadG refetches the object from the database using the primary keys.

func (*Ticker) Update

func (o *Ticker) Update(ctx context.Context, exec boil.ContextExecutor, columns boil.Columns) (int64, error)

Update uses an executor to update the Ticker. See boil.Columns.UpdateColumnSet documentation to understand column list inference for updates. Update does not automatically update the record in case of default values. Use .Reload() to refresh the records.

func (*Ticker) UpdateG

func (o *Ticker) UpdateG(ctx context.Context, columns boil.Columns) (int64, error)

UpdateG a single Ticker record using the global executor. See Update for more documentation.

func (*Ticker) Upsert

func (o *Ticker) Upsert(ctx context.Context, exec boil.ContextExecutor, updateOnConflict bool, conflictColumns []string, updateColumns, insertColumns boil.Columns, opts ...UpsertOptionFunc) error

Upsert attempts an insert using an executor, and does an update or ignore on conflict. See boil.Columns documentation for how to properly use updateColumns and insertColumns.

func (*Ticker) UpsertG

func (o *Ticker) UpsertG(ctx context.Context, updateOnConflict bool, conflictColumns []string, updateColumns, insertColumns boil.Columns, opts ...UpsertOptionFunc) error

UpsertG attempts an insert, and does an update or ignore on conflict.

type TickerHook

type TickerHook func(context.Context, boil.ContextExecutor, *Ticker) error

TickerHook is the signature for custom Ticker hook methods

type TickerSlice

type TickerSlice []*Ticker

TickerSlice is an alias for a slice of pointers to Ticker. This should almost always be used instead of []Ticker.

func (TickerSlice) DeleteAll

func (o TickerSlice) DeleteAll(ctx context.Context, exec boil.ContextExecutor) (int64, error)

DeleteAll deletes all rows in the slice, using an executor.

func (TickerSlice) DeleteAllG

func (o TickerSlice) DeleteAllG(ctx context.Context) (int64, error)

DeleteAllG deletes all rows in the slice.

func (*TickerSlice) ReloadAll

func (o *TickerSlice) ReloadAll(ctx context.Context, exec boil.ContextExecutor) error

ReloadAll refetches every row with matching primary key column values and overwrites the original object slice with the newly updated slice.

func (*TickerSlice) ReloadAllG

func (o *TickerSlice) ReloadAllG(ctx context.Context) error

ReloadAllG refetches every row with matching primary key column values and overwrites the original object slice with the newly updated slice.

func (TickerSlice) UpdateAll

func (o TickerSlice) UpdateAll(ctx context.Context, exec boil.ContextExecutor, cols M) (int64, error)

UpdateAll updates all rows with the specified column values, using an executor.

func (TickerSlice) UpdateAllG

func (o TickerSlice) UpdateAllG(ctx context.Context, cols M) (int64, error)

UpdateAllG updates all rows with the specified column values.

type TopContent

type TopContent struct {
	ID        int       `boil:"id" json:"id" toml:"id" yaml:"id"`
	Ticker    string    `boil:"ticker" json:"ticker" toml:"ticker" yaml:"ticker"`
	CreatedAt time.Time `boil:"created_at" json:"created_at" toml:"created_at" yaml:"created_at"`
	UpdatedAt time.Time `boil:"updated_at" json:"updated_at" toml:"updated_at" yaml:"updated_at"`
	URL       string    `boil:"url" json:"url" toml:"url" yaml:"url"`
	SRC       string    `boil:"src" json:"src" toml:"src" yaml:"src"`
	Info      null.JSON `boil:"info" json:"info,omitempty" toml:"info" yaml:"info,omitempty"`
	SourceID  int       `boil:"source_id" json:"source_id" toml:"source_id" yaml:"source_id"`

	R *topContentR `boil:"-" json:"-" toml:"-" yaml:"-"`
	L topContentL  `boil:"-" json:"-" toml:"-" yaml:"-"`
}

TopContent is an object representing the database table.

func FindTopContent

func FindTopContent(ctx context.Context, exec boil.ContextExecutor, iD int, selectCols ...string) (*TopContent, error)

FindTopContent retrieves a single record by ID with an executor. If selectCols is empty Find will return all columns.

func FindTopContentG

func FindTopContentG(ctx context.Context, iD int, selectCols ...string) (*TopContent, error)

FindTopContentG retrieves a single record by ID.

func (*TopContent) Delete

func (o *TopContent) Delete(ctx context.Context, exec boil.ContextExecutor) (int64, error)

Delete deletes a single TopContent record with an executor. Delete will match against the primary key column to find the record to delete.

func (*TopContent) DeleteG

func (o *TopContent) DeleteG(ctx context.Context) (int64, error)

DeleteG deletes a single TopContent record. DeleteG will match against the primary key column to find the record to delete.

func (*TopContent) Exists

func (o *TopContent) Exists(ctx context.Context, exec boil.ContextExecutor) (bool, error)

Exists checks if the TopContent row exists.

func (*TopContent) Insert

func (o *TopContent) Insert(ctx context.Context, exec boil.ContextExecutor, columns boil.Columns) error

Insert a single record using an executor. See boil.Columns.InsertColumnSet documentation to understand column list inference for inserts.

func (*TopContent) InsertG

func (o *TopContent) InsertG(ctx context.Context, columns boil.Columns) error

InsertG a single record. See Insert for whitelist behavior description.

func (*TopContent) Reload

func (o *TopContent) Reload(ctx context.Context, exec boil.ContextExecutor) error

Reload refetches the object from the database using the primary keys with an executor.

func (*TopContent) ReloadG

func (o *TopContent) ReloadG(ctx context.Context) error

ReloadG refetches the object from the database using the primary keys.

func (*TopContent) SetSource

func (o *TopContent) SetSource(ctx context.Context, exec boil.ContextExecutor, insert bool, related *Source) error

SetSource of the topContent to the related item. Sets o.R.Source to related. Adds o to related.R.TopContents.

func (*TopContent) SetSourceG

func (o *TopContent) SetSourceG(ctx context.Context, insert bool, related *Source) error

SetSourceG of the topContent to the related item. Sets o.R.Source to related. Adds o to related.R.TopContents. Uses the global database handle.

func (*TopContent) Source

func (o *TopContent) Source(mods ...qm.QueryMod) sourceQuery

Source pointed to by the foreign key.

func (*TopContent) Update

func (o *TopContent) Update(ctx context.Context, exec boil.ContextExecutor, columns boil.Columns) (int64, error)

Update uses an executor to update the TopContent. See boil.Columns.UpdateColumnSet documentation to understand column list inference for updates. Update does not automatically update the record in case of default values. Use .Reload() to refresh the records.

func (*TopContent) UpdateG

func (o *TopContent) UpdateG(ctx context.Context, columns boil.Columns) (int64, error)

UpdateG a single TopContent record using the global executor. See Update for more documentation.

func (*TopContent) Upsert

func (o *TopContent) Upsert(ctx context.Context, exec boil.ContextExecutor, updateOnConflict bool, conflictColumns []string, updateColumns, insertColumns boil.Columns, opts ...UpsertOptionFunc) error

Upsert attempts an insert using an executor, and does an update or ignore on conflict. See boil.Columns documentation for how to properly use updateColumns and insertColumns.

func (*TopContent) UpsertG

func (o *TopContent) UpsertG(ctx context.Context, updateOnConflict bool, conflictColumns []string, updateColumns, insertColumns boil.Columns, opts ...UpsertOptionFunc) error

UpsertG attempts an insert, and does an update or ignore on conflict.

type TopContentHook

type TopContentHook func(context.Context, boil.ContextExecutor, *TopContent) error

TopContentHook is the signature for custom TopContent hook methods

type TopContentResponse

type TopContentResponse struct {
	ID         int       `json:"id" jsonapi:"primary,top_contents"`
	URL        string    `json:"url" jsonapi:"attr,url"`
	PostedDate time.Time `json:"posted_date" jsonapi:"attr,posted_date,iso8601"`
	Title      string    `json:"title" jsonapi:"attr,title"`
	Summary    string    `json:"summary" jsonapi:"attr,summary"`
}

type TopContentSlice

type TopContentSlice []*TopContent

TopContentSlice is an alias for a slice of pointers to TopContent. This should almost always be used instead of []TopContent.

func (TopContentSlice) DeleteAll

func (o TopContentSlice) DeleteAll(ctx context.Context, exec boil.ContextExecutor) (int64, error)

DeleteAll deletes all rows in the slice, using an executor.

func (TopContentSlice) DeleteAllG

func (o TopContentSlice) DeleteAllG(ctx context.Context) (int64, error)

DeleteAllG deletes all rows in the slice.

func (*TopContentSlice) ReloadAll

func (o *TopContentSlice) ReloadAll(ctx context.Context, exec boil.ContextExecutor) error

ReloadAll refetches every row with matching primary key column values and overwrites the original object slice with the newly updated slice.

func (*TopContentSlice) ReloadAllG

func (o *TopContentSlice) ReloadAllG(ctx context.Context) error

ReloadAllG refetches every row with matching primary key column values and overwrites the original object slice with the newly updated slice.

func (TopContentSlice) UpdateAll

func (o TopContentSlice) UpdateAll(ctx context.Context, exec boil.ContextExecutor, cols M) (int64, error)

UpdateAll updates all rows with the specified column values, using an executor.

func (TopContentSlice) UpdateAllG

func (o TopContentSlice) UpdateAllG(ctx context.Context, cols M) (int64, error)

UpdateAllG updates all rows with the specified column values.

type UpsertOptionFunc

type UpsertOptionFunc func(o *UpsertOptions)

func UpsertConflictTarget

func UpsertConflictTarget(conflictTarget string) UpsertOptionFunc

func UpsertUpdateSet

func UpsertUpdateSet(updateSet string) UpsertOptionFunc

type UpsertOptions

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

type User

type User struct {
	ID        int       `boil:"id" json:"id" toml:"id" yaml:"id"`
	Name      string    `boil:"name" json:"name" toml:"name" yaml:"name"`
	Email     string    `boil:"email" json:"email" toml:"email" yaml:"email"`
	Password  string    `boil:"password" json:"password" toml:"password" yaml:"password"`
	CreatedAt null.Time `boil:"created_at" json:"created_at,omitempty" toml:"created_at" yaml:"created_at,omitempty"`
	UpdatedAt null.Time `boil:"updated_at" json:"updated_at,omitempty" toml:"updated_at" yaml:"updated_at,omitempty"`

	R *userR `boil:"-" json:"-" toml:"-" yaml:"-"`
	L userL  `boil:"-" json:"-" toml:"-" yaml:"-"`
}

User is an object representing the database table.

func FindUser

func FindUser(ctx context.Context, exec boil.ContextExecutor, iD int, selectCols ...string) (*User, error)

FindUser retrieves a single record by ID with an executor. If selectCols is empty Find will return all columns.

func FindUserG

func FindUserG(ctx context.Context, iD int, selectCols ...string) (*User, error)

FindUserG retrieves a single record by ID.

func (*User) Delete

func (o *User) Delete(ctx context.Context, exec boil.ContextExecutor) (int64, error)

Delete deletes a single User record with an executor. Delete will match against the primary key column to find the record to delete.

func (*User) DeleteG

func (o *User) DeleteG(ctx context.Context) (int64, error)

DeleteG deletes a single User record. DeleteG will match against the primary key column to find the record to delete.

func (*User) Exists

func (o *User) Exists(ctx context.Context, exec boil.ContextExecutor) (bool, error)

Exists checks if the User row exists.

func (*User) Insert

func (o *User) Insert(ctx context.Context, exec boil.ContextExecutor, columns boil.Columns) error

Insert a single record using an executor. See boil.Columns.InsertColumnSet documentation to understand column list inference for inserts.

func (*User) InsertG

func (o *User) InsertG(ctx context.Context, columns boil.Columns) error

InsertG a single record. See Insert for whitelist behavior description.

func (*User) Reload

func (o *User) Reload(ctx context.Context, exec boil.ContextExecutor) error

Reload refetches the object from the database using the primary keys with an executor.

func (*User) ReloadG

func (o *User) ReloadG(ctx context.Context) error

ReloadG refetches the object from the database using the primary keys.

func (*User) Update

func (o *User) Update(ctx context.Context, exec boil.ContextExecutor, columns boil.Columns) (int64, error)

Update uses an executor to update the User. See boil.Columns.UpdateColumnSet documentation to understand column list inference for updates. Update does not automatically update the record in case of default values. Use .Reload() to refresh the records.

func (*User) UpdateG

func (o *User) UpdateG(ctx context.Context, columns boil.Columns) (int64, error)

UpdateG a single User record using the global executor. See Update for more documentation.

func (*User) Upsert

func (o *User) Upsert(ctx context.Context, exec boil.ContextExecutor, updateOnConflict bool, conflictColumns []string, updateColumns, insertColumns boil.Columns, opts ...UpsertOptionFunc) error

Upsert attempts an insert using an executor, and does an update or ignore on conflict. See boil.Columns documentation for how to properly use updateColumns and insertColumns.

func (*User) UpsertG

func (o *User) UpsertG(ctx context.Context, updateOnConflict bool, conflictColumns []string, updateColumns, insertColumns boil.Columns, opts ...UpsertOptionFunc) error

UpsertG attempts an insert, and does an update or ignore on conflict.

type UserHook

type UserHook func(context.Context, boil.ContextExecutor, *User) error

UserHook is the signature for custom User hook methods

type UserSlice

type UserSlice []*User

UserSlice is an alias for a slice of pointers to User. This should almost always be used instead of []User.

func (UserSlice) DeleteAll

func (o UserSlice) DeleteAll(ctx context.Context, exec boil.ContextExecutor) (int64, error)

DeleteAll deletes all rows in the slice, using an executor.

func (UserSlice) DeleteAllG

func (o UserSlice) DeleteAllG(ctx context.Context) (int64, error)

DeleteAllG deletes all rows in the slice.

func (*UserSlice) ReloadAll

func (o *UserSlice) ReloadAll(ctx context.Context, exec boil.ContextExecutor) error

ReloadAll refetches every row with matching primary key column values and overwrites the original object slice with the newly updated slice.

func (*UserSlice) ReloadAllG

func (o *UserSlice) ReloadAllG(ctx context.Context) error

ReloadAllG refetches every row with matching primary key column values and overwrites the original object slice with the newly updated slice.

func (UserSlice) UpdateAll

func (o UserSlice) UpdateAll(ctx context.Context, exec boil.ContextExecutor, cols M) (int64, error)

UpdateAll updates all rows with the specified column values, using an executor.

func (UserSlice) UpdateAllG

func (o UserSlice) UpdateAllG(ctx context.Context, cols M) (int64, error)

UpdateAllG updates all rows with the specified column values.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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