Documentation
¶
Index ¶
- Variables
- func AddGeographyColumnHook(hookPoint boil.HookPoint, geographyColumnHook GeographyColumnHook)
- func AddGeometryColumnHook(hookPoint boil.HookPoint, geometryColumnHook GeometryColumnHook)
- func AddSourceHook(hookPoint boil.HookPoint, sourceHook SourceHook)
- func AddSpatialRefSyHook(hookPoint boil.HookPoint, spatialRefSyHook SpatialRefSyHook)
- func AddStockSentimentHook(hookPoint boil.HookPoint, stockSentimentHook StockSentimentHook)
- func AddTickerHook(hookPoint boil.HookPoint, tickerHook TickerHook)
- func AddTopContentHook(hookPoint boil.HookPoint, topContentHook TopContentHook)
- func AddUserHook(hookPoint boil.HookPoint, userHook UserHook)
- func GeographyColumns(mods ...qm.QueryMod) geographyColumnQuery
- func GeometryColumns(mods ...qm.QueryMod) geometryColumnQuery
- func NewQuery(mods ...qm.QueryMod) *queries.Query
- func SourceExists(ctx context.Context, exec boil.ContextExecutor, iD int) (bool, error)
- func SourceExistsG(ctx context.Context, iD int) (bool, error)
- func Sources(mods ...qm.QueryMod) sourceQuery
- func SpatialRefSyExists(ctx context.Context, exec boil.ContextExecutor, srid int) (bool, error)
- func SpatialRefSyExistsG(ctx context.Context, srid int) (bool, error)
- func SpatialRefSys(mods ...qm.QueryMod) spatialRefSyQuery
- func StockSentimentExists(ctx context.Context, exec boil.ContextExecutor, iD int) (bool, error)
- func StockSentimentExistsG(ctx context.Context, iD int) (bool, error)
- func StockSentiments(mods ...qm.QueryMod) stockSentimentQuery
- func TickerExists(ctx context.Context, exec boil.ContextExecutor, iD int) (bool, error)
- func TickerExistsG(ctx context.Context, iD int) (bool, error)
- func Tickers(mods ...qm.QueryMod) tickerQuery
- func TopContentExists(ctx context.Context, exec boil.ContextExecutor, iD int) (bool, error)
- func TopContentExistsG(ctx context.Context, iD int) (bool, error)
- func TopContents(mods ...qm.QueryMod) topContentQuery
- func UserExists(ctx context.Context, exec boil.ContextExecutor, iD int) (bool, error)
- func UserExistsG(ctx context.Context, iD int) (bool, error)
- func Users(mods ...qm.QueryMod) userQuery
- type GeographyColumn
- type GeographyColumnHook
- type GeographyColumnSlice
- type GeometryColumn
- func (o *GeometryColumn) Insert(ctx context.Context, exec boil.ContextExecutor, columns boil.Columns) error
- func (o *GeometryColumn) InsertG(ctx context.Context, columns boil.Columns) error
- func (o *GeometryColumn) Upsert(ctx context.Context, exec boil.ContextExecutor, updateOnConflict bool, ...) error
- func (o *GeometryColumn) UpsertG(ctx context.Context, updateOnConflict bool, conflictColumns []string, ...) error
- type GeometryColumnHook
- type GeometryColumnSlice
- type M
- type Message
- type PriceUpdate
- type Sentiment
- type Source
- func (o *Source) AddStockSentiments(ctx context.Context, exec boil.ContextExecutor, insert bool, ...) error
- func (o *Source) AddStockSentimentsG(ctx context.Context, insert bool, related ...*StockSentiment) error
- func (o *Source) AddTopContents(ctx context.Context, exec boil.ContextExecutor, insert bool, ...) error
- func (o *Source) AddTopContentsG(ctx context.Context, insert bool, related ...*TopContent) error
- func (o *Source) Delete(ctx context.Context, exec boil.ContextExecutor) (int64, error)
- func (o *Source) DeleteG(ctx context.Context) (int64, error)
- func (o *Source) Exists(ctx context.Context, exec boil.ContextExecutor) (bool, error)
- func (o *Source) Insert(ctx context.Context, exec boil.ContextExecutor, columns boil.Columns) error
- func (o *Source) InsertG(ctx context.Context, columns boil.Columns) error
- func (o *Source) Reload(ctx context.Context, exec boil.ContextExecutor) error
- func (o *Source) ReloadG(ctx context.Context) error
- func (o *Source) StockSentiments(mods ...qm.QueryMod) stockSentimentQuery
- func (o *Source) TopContents(mods ...qm.QueryMod) topContentQuery
- func (o *Source) Update(ctx context.Context, exec boil.ContextExecutor, columns boil.Columns) (int64, error)
- func (o *Source) UpdateG(ctx context.Context, columns boil.Columns) (int64, error)
- func (o *Source) Upsert(ctx context.Context, exec boil.ContextExecutor, updateOnConflict bool, ...) error
- func (o *Source) UpsertG(ctx context.Context, updateOnConflict bool, conflictColumns []string, ...) error
- type SourceHook
- type SourceSlice
- func (o SourceSlice) DeleteAll(ctx context.Context, exec boil.ContextExecutor) (int64, error)
- func (o SourceSlice) DeleteAllG(ctx context.Context) (int64, error)
- func (o *SourceSlice) ReloadAll(ctx context.Context, exec boil.ContextExecutor) error
- func (o *SourceSlice) ReloadAllG(ctx context.Context) error
- func (o SourceSlice) UpdateAll(ctx context.Context, exec boil.ContextExecutor, cols M) (int64, error)
- func (o SourceSlice) UpdateAllG(ctx context.Context, cols M) (int64, error)
- type SpatialRefSy
- func (o *SpatialRefSy) Delete(ctx context.Context, exec boil.ContextExecutor) (int64, error)
- func (o *SpatialRefSy) DeleteG(ctx context.Context) (int64, error)
- func (o *SpatialRefSy) Exists(ctx context.Context, exec boil.ContextExecutor) (bool, error)
- func (o *SpatialRefSy) Insert(ctx context.Context, exec boil.ContextExecutor, columns boil.Columns) error
- func (o *SpatialRefSy) InsertG(ctx context.Context, columns boil.Columns) error
- func (o *SpatialRefSy) Reload(ctx context.Context, exec boil.ContextExecutor) error
- func (o *SpatialRefSy) ReloadG(ctx context.Context) error
- func (o *SpatialRefSy) Update(ctx context.Context, exec boil.ContextExecutor, columns boil.Columns) (int64, error)
- func (o *SpatialRefSy) UpdateG(ctx context.Context, columns boil.Columns) (int64, error)
- func (o *SpatialRefSy) Upsert(ctx context.Context, exec boil.ContextExecutor, updateOnConflict bool, ...) error
- func (o *SpatialRefSy) UpsertG(ctx context.Context, updateOnConflict bool, conflictColumns []string, ...) error
- type SpatialRefSyHook
- type SpatialRefSySlice
- func (o SpatialRefSySlice) DeleteAll(ctx context.Context, exec boil.ContextExecutor) (int64, error)
- func (o SpatialRefSySlice) DeleteAllG(ctx context.Context) (int64, error)
- func (o *SpatialRefSySlice) ReloadAll(ctx context.Context, exec boil.ContextExecutor) error
- func (o *SpatialRefSySlice) ReloadAllG(ctx context.Context) error
- func (o SpatialRefSySlice) UpdateAll(ctx context.Context, exec boil.ContextExecutor, cols M) (int64, error)
- func (o SpatialRefSySlice) UpdateAllG(ctx context.Context, cols M) (int64, error)
- type StockResponse
- type StockSentiment
- func (o *StockSentiment) Delete(ctx context.Context, exec boil.ContextExecutor) (int64, error)
- func (o *StockSentiment) DeleteG(ctx context.Context) (int64, error)
- func (o *StockSentiment) Exists(ctx context.Context, exec boil.ContextExecutor) (bool, error)
- func (o *StockSentiment) Insert(ctx context.Context, exec boil.ContextExecutor, columns boil.Columns) error
- func (o *StockSentiment) InsertG(ctx context.Context, columns boil.Columns) error
- func (o *StockSentiment) Reload(ctx context.Context, exec boil.ContextExecutor) error
- func (o *StockSentiment) ReloadG(ctx context.Context) error
- func (o *StockSentiment) SetSource(ctx context.Context, exec boil.ContextExecutor, insert bool, related *Source) error
- func (o *StockSentiment) SetSourceG(ctx context.Context, insert bool, related *Source) error
- func (o *StockSentiment) Source(mods ...qm.QueryMod) sourceQuery
- func (o *StockSentiment) Update(ctx context.Context, exec boil.ContextExecutor, columns boil.Columns) (int64, error)
- func (o *StockSentiment) UpdateG(ctx context.Context, columns boil.Columns) (int64, error)
- func (o *StockSentiment) Upsert(ctx context.Context, exec boil.ContextExecutor, updateOnConflict bool, ...) error
- func (o *StockSentiment) UpsertG(ctx context.Context, updateOnConflict bool, conflictColumns []string, ...) error
- type StockSentimentHook
- type StockSentimentSlice
- func (o StockSentimentSlice) DeleteAll(ctx context.Context, exec boil.ContextExecutor) (int64, error)
- func (o StockSentimentSlice) DeleteAllG(ctx context.Context) (int64, error)
- func (o *StockSentimentSlice) ReloadAll(ctx context.Context, exec boil.ContextExecutor) error
- func (o *StockSentimentSlice) ReloadAllG(ctx context.Context) error
- func (o StockSentimentSlice) UpdateAll(ctx context.Context, exec boil.ContextExecutor, cols M) (int64, error)
- func (o StockSentimentSlice) UpdateAllG(ctx context.Context, cols M) (int64, error)
- type Ticker
- func (o *Ticker) Delete(ctx context.Context, exec boil.ContextExecutor) (int64, error)
- func (o *Ticker) DeleteG(ctx context.Context) (int64, error)
- func (o *Ticker) Exists(ctx context.Context, exec boil.ContextExecutor) (bool, error)
- func (o *Ticker) Insert(ctx context.Context, exec boil.ContextExecutor, columns boil.Columns) error
- func (o *Ticker) InsertG(ctx context.Context, columns boil.Columns) error
- func (o *Ticker) Reload(ctx context.Context, exec boil.ContextExecutor) error
- func (o *Ticker) ReloadG(ctx context.Context) error
- func (o *Ticker) Update(ctx context.Context, exec boil.ContextExecutor, columns boil.Columns) (int64, error)
- func (o *Ticker) UpdateG(ctx context.Context, columns boil.Columns) (int64, error)
- func (o *Ticker) Upsert(ctx context.Context, exec boil.ContextExecutor, updateOnConflict bool, ...) error
- func (o *Ticker) UpsertG(ctx context.Context, updateOnConflict bool, conflictColumns []string, ...) error
- type TickerHook
- type TickerSlice
- func (o TickerSlice) DeleteAll(ctx context.Context, exec boil.ContextExecutor) (int64, error)
- func (o TickerSlice) DeleteAllG(ctx context.Context) (int64, error)
- func (o *TickerSlice) ReloadAll(ctx context.Context, exec boil.ContextExecutor) error
- func (o *TickerSlice) ReloadAllG(ctx context.Context) error
- func (o TickerSlice) UpdateAll(ctx context.Context, exec boil.ContextExecutor, cols M) (int64, error)
- func (o TickerSlice) UpdateAllG(ctx context.Context, cols M) (int64, error)
- type TopContent
- func (o *TopContent) Delete(ctx context.Context, exec boil.ContextExecutor) (int64, error)
- func (o *TopContent) DeleteG(ctx context.Context) (int64, error)
- func (o *TopContent) Exists(ctx context.Context, exec boil.ContextExecutor) (bool, error)
- func (o *TopContent) Insert(ctx context.Context, exec boil.ContextExecutor, columns boil.Columns) error
- func (o *TopContent) InsertG(ctx context.Context, columns boil.Columns) error
- func (o *TopContent) Reload(ctx context.Context, exec boil.ContextExecutor) error
- func (o *TopContent) ReloadG(ctx context.Context) error
- func (o *TopContent) SetSource(ctx context.Context, exec boil.ContextExecutor, insert bool, related *Source) error
- func (o *TopContent) SetSourceG(ctx context.Context, insert bool, related *Source) error
- func (o *TopContent) Source(mods ...qm.QueryMod) sourceQuery
- func (o *TopContent) Update(ctx context.Context, exec boil.ContextExecutor, columns boil.Columns) (int64, error)
- func (o *TopContent) UpdateG(ctx context.Context, columns boil.Columns) (int64, error)
- func (o *TopContent) Upsert(ctx context.Context, exec boil.ContextExecutor, updateOnConflict bool, ...) error
- func (o *TopContent) UpsertG(ctx context.Context, updateOnConflict bool, conflictColumns []string, ...) error
- type TopContentHook
- type TopContentResponse
- type TopContentSlice
- func (o TopContentSlice) DeleteAll(ctx context.Context, exec boil.ContextExecutor) (int64, error)
- func (o TopContentSlice) DeleteAllG(ctx context.Context) (int64, error)
- func (o *TopContentSlice) ReloadAll(ctx context.Context, exec boil.ContextExecutor) error
- func (o *TopContentSlice) ReloadAllG(ctx context.Context) error
- func (o TopContentSlice) UpdateAll(ctx context.Context, exec boil.ContextExecutor, cols M) (int64, error)
- func (o TopContentSlice) UpdateAllG(ctx context.Context, cols M) (int64, error)
- type UpsertOptionFunc
- type UpsertOptions
- type User
- func (o *User) Delete(ctx context.Context, exec boil.ContextExecutor) (int64, error)
- func (o *User) DeleteG(ctx context.Context) (int64, error)
- func (o *User) Exists(ctx context.Context, exec boil.ContextExecutor) (bool, error)
- func (o *User) Insert(ctx context.Context, exec boil.ContextExecutor, columns boil.Columns) error
- func (o *User) InsertG(ctx context.Context, columns boil.Columns) error
- func (o *User) Reload(ctx context.Context, exec boil.ContextExecutor) error
- func (o *User) ReloadG(ctx context.Context) error
- func (o *User) Update(ctx context.Context, exec boil.ContextExecutor, columns boil.Columns) (int64, error)
- func (o *User) UpdateG(ctx context.Context, columns boil.Columns) (int64, error)
- func (o *User) Upsert(ctx context.Context, exec boil.ContextExecutor, updateOnConflict bool, ...) error
- func (o *User) UpsertG(ctx context.Context, updateOnConflict bool, conflictColumns []string, ...) error
- type UserHook
- type UserSlice
- func (o UserSlice) DeleteAll(ctx context.Context, exec boil.ContextExecutor) (int64, error)
- func (o UserSlice) DeleteAllG(ctx context.Context) (int64, error)
- func (o *UserSlice) ReloadAll(ctx context.Context, exec boil.ContextExecutor) error
- func (o *UserSlice) ReloadAllG(ctx context.Context) error
- func (o UserSlice) UpdateAll(ctx context.Context, exec boil.ContextExecutor, cols M) (int64, error)
- func (o UserSlice) UpdateAllG(ctx context.Context, cols M) (int64, error)
Constants ¶
This section is empty.
Variables ¶
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.
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", }
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", }
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 */}, }
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", }
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", }
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 */}, }
var SourceColumns = struct { ID string Name string }{ ID: "id", Name: "name", }
var SourceRels = struct { StockSentiments string TopContents string }{ StockSentiments: "StockSentiments", TopContents: "TopContents", }
SourceRels is where relationship names are stored.
var SourceTableColumns = struct { ID string Name string }{ ID: "sources.id", Name: "sources.name", }
var SourceWhere = struct { ID whereHelperint Name whereHelperstring }{ ID: whereHelperint{/* contains filtered or unexported fields */}, Name: whereHelperstring{/* contains filtered or unexported fields */}, }
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", }
var SpatialRefSyRels = struct {
}{}
SpatialRefSyRels is where relationship names are stored.
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", }
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 */}, }
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", }
var StockSentimentRels = struct { Source string }{ Source: "Source", }
StockSentimentRels is where relationship names are stored.
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", }
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 */}, }
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", }
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", }
var TickerRels = struct {
}{}
TickerRels is where relationship names are stored.
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", }
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 */}, }
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", }
var TopContentRels = struct { Source string }{ Source: "Source", }
TopContentRels is where relationship names are stored.
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", }
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 */}, }
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", }
var UserRels = struct {
}{}
UserRels is where relationship names are stored.
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", }
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 */}, }
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 ¶
AddUserHook registers your hook function for all future operations.
func GeographyColumns ¶
GeographyColumns retrieves all the records using an executor.
func GeometryColumns ¶
GeometryColumns retrieves all the records using an executor.
func SourceExists ¶
SourceExists checks if the Source row exists.
func SourceExistsG ¶
SourceExistsG checks if the Source row exists.
func SpatialRefSyExists ¶
SpatialRefSyExists checks if the SpatialRefSy row exists.
func SpatialRefSyExistsG ¶
SpatialRefSyExistsG checks if the SpatialRefSy row exists.
func SpatialRefSys ¶
SpatialRefSys retrieves all the records using an executor.
func StockSentimentExists ¶
StockSentimentExists checks if the StockSentiment row exists.
func StockSentimentExistsG ¶
StockSentimentExistsG checks if the StockSentiment row exists.
func StockSentiments ¶
StockSentiments retrieves all the records using an executor.
func TickerExists ¶
TickerExists checks if the Ticker row exists.
func TickerExistsG ¶
TickerExistsG checks if the Ticker row exists.
func TopContentExists ¶
TopContentExists checks if the TopContent row exists.
func TopContentExistsG ¶
TopContentExistsG checks if the TopContent row exists.
func TopContents ¶
TopContents retrieves all the records using an executor.
func UserExists ¶
UserExists checks if the User row exists.
func UserExistsG ¶
UserExistsG checks if the User row exists.
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 ¶
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.
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 PriceUpdate ¶
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 ¶
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 ¶
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 ¶
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 ¶
DeleteG deletes a single Source record. DeleteG will match against the primary key column to find the record to delete.
func (*Source) Insert ¶
Insert a single record using an executor. See boil.Columns.InsertColumnSet documentation to understand column list inference for inserts.
func (*Source) Reload ¶
Reload refetches the object from the database using the primary keys with an executor.
func (*Source) StockSentiments ¶
StockSentiments retrieves all the stock_sentiment's StockSentiments with an executor.
func (*Source) TopContents ¶
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 ¶
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.
type SourceHook ¶
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 ¶
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 ¶
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 ¶
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 ¶
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.
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 ¶
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 ¶
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 ¶
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 ¶
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.
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 ¶
func (o StockSentimentSlice) DeleteAll(ctx context.Context, exec boil.ContextExecutor) (int64, error)
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 ¶
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 ¶
FindTickerG retrieves a single record by ID.
func (*Ticker) Delete ¶
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 ¶
DeleteG deletes a single Ticker record. DeleteG will match against the primary key column to find the record to delete.
func (*Ticker) Insert ¶
Insert a single record using an executor. See boil.Columns.InsertColumnSet documentation to understand column list inference for inserts.
func (*Ticker) Reload ¶
Reload refetches the object from the database using the primary keys with an executor.
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 ¶
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.
type TickerHook ¶
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 ¶
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 ¶
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 ¶
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 ¶
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 ¶
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.
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 ¶
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 (*User) Delete ¶
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 ¶
DeleteG deletes a single User record. DeleteG will match against the primary key column to find the record to delete.
func (*User) Insert ¶
Insert a single record using an executor. See boil.Columns.InsertColumnSet documentation to understand column list inference for inserts.
func (*User) Reload ¶
Reload refetches the object from the database using the primary keys with an executor.
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 ¶
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.
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) DeleteAllG ¶
DeleteAllG deletes all rows in the slice.
func (*UserSlice) ReloadAll ¶
ReloadAll refetches every row with matching primary key column values and overwrites the original object slice with the newly updated slice.
func (*UserSlice) ReloadAllG ¶
ReloadAllG refetches every row with matching primary key column values and overwrites the original object slice with the newly updated slice.