Documentation ¶
Index ¶
- Variables
- func AddBookmarkContextHook(hookPoint boil.HookPoint, bookmarkContextHook BookmarkContextHook)
- func AddBookmarkHook(hookPoint boil.HookPoint, bookmarkHook BookmarkHook)
- func AddBookmarkTypeHook(hookPoint boil.HookPoint, bookmarkTypeHook BookmarkTypeHook)
- func AddDocumentContextHook(hookPoint boil.HookPoint, documentContextHook DocumentContextHook)
- func AddDocumentHook(hookPoint boil.HookPoint, documentHook DocumentHook)
- func AddDocumentTypeHook(hookPoint boil.HookPoint, documentTypeHook DocumentTypeHook)
- func AddLinkHook(hookPoint boil.HookPoint, linkHook LinkHook)
- func AddTagHook(hookPoint boil.HookPoint, tagHook TagHook)
- func BookmarkContextExists(ctx context.Context, exec boil.ContextExecutor, tagID int64, bookmarkID int64) (bool, error)
- func BookmarkContexts(mods ...qm.QueryMod) bookmarkContextQuery
- func BookmarkExists(ctx context.Context, exec boil.ContextExecutor, iD int64) (bool, error)
- func BookmarkTypeExists(ctx context.Context, exec boil.ContextExecutor, iD int64) (bool, error)
- func BookmarkTypes(mods ...qm.QueryMod) bookmarkTypeQuery
- func Bookmarks(mods ...qm.QueryMod) bookmarkQuery
- func DocumentContextExists(ctx context.Context, exec boil.ContextExecutor, tagID int64, documentID int64) (bool, error)
- func DocumentContexts(mods ...qm.QueryMod) documentContextQuery
- func DocumentExists(ctx context.Context, exec boil.ContextExecutor, iD int64) (bool, error)
- func DocumentTypeExists(ctx context.Context, exec boil.ContextExecutor, iD int64) (bool, error)
- func DocumentTypes(mods ...qm.QueryMod) documentTypeQuery
- func Documents(mods ...qm.QueryMod) documentQuery
- func LinkExists(ctx context.Context, exec boil.ContextExecutor, sourceID int64, ...) (bool, error)
- func Links(mods ...qm.QueryMod) linkQuery
- func NewQuery(mods ...qm.QueryMod) *queries.Query
- func TagExists(ctx context.Context, exec boil.ContextExecutor, iD int64) (bool, error)
- func Tags(mods ...qm.QueryMod) tagQuery
- type Bookmark
- func (o *Bookmark) Delete(ctx context.Context, exec boil.ContextExecutor) (int64, error)
- func (o *Bookmark) Insert(ctx context.Context, exec boil.ContextExecutor, columns boil.Columns) error
- func (o *Bookmark) Reload(ctx context.Context, exec boil.ContextExecutor) error
- func (o *Bookmark) Update(ctx context.Context, exec boil.ContextExecutor, columns boil.Columns) (int64, error)
- func (o *Bookmark) Upsert(ctx context.Context, exec boil.ContextExecutor, ...) error
- type BookmarkContext
- func (o *BookmarkContext) Delete(ctx context.Context, exec boil.ContextExecutor) (int64, error)
- func (o *BookmarkContext) Insert(ctx context.Context, exec boil.ContextExecutor, columns boil.Columns) error
- func (o *BookmarkContext) Reload(ctx context.Context, exec boil.ContextExecutor) error
- func (o *BookmarkContext) Update(ctx context.Context, exec boil.ContextExecutor, columns boil.Columns) (int64, error)
- func (o *BookmarkContext) Upsert(ctx context.Context, exec boil.ContextExecutor, ...) error
- type BookmarkContextHook
- type BookmarkContextSlice
- func (o BookmarkContextSlice) DeleteAll(ctx context.Context, exec boil.ContextExecutor) (int64, error)
- func (o *BookmarkContextSlice) ReloadAll(ctx context.Context, exec boil.ContextExecutor) error
- func (o BookmarkContextSlice) UpdateAll(ctx context.Context, exec boil.ContextExecutor, cols M) (int64, error)
- type BookmarkHook
- type BookmarkSlice
- type BookmarkType
- func (o *BookmarkType) Delete(ctx context.Context, exec boil.ContextExecutor) (int64, error)
- func (o *BookmarkType) Insert(ctx context.Context, exec boil.ContextExecutor, columns boil.Columns) error
- func (o *BookmarkType) Reload(ctx context.Context, exec boil.ContextExecutor) error
- func (o *BookmarkType) Update(ctx context.Context, exec boil.ContextExecutor, columns boil.Columns) (int64, error)
- func (o *BookmarkType) Upsert(ctx context.Context, exec boil.ContextExecutor, ...) error
- type BookmarkTypeHook
- type BookmarkTypeSlice
- type Document
- func (o *Document) Delete(ctx context.Context, exec boil.ContextExecutor) (int64, error)
- func (o *Document) Insert(ctx context.Context, exec boil.ContextExecutor, columns boil.Columns) error
- func (o *Document) Reload(ctx context.Context, exec boil.ContextExecutor) error
- func (o *Document) Update(ctx context.Context, exec boil.ContextExecutor, columns boil.Columns) (int64, error)
- func (o *Document) Upsert(ctx context.Context, exec boil.ContextExecutor, ...) error
- type DocumentContext
- func (o *DocumentContext) Delete(ctx context.Context, exec boil.ContextExecutor) (int64, error)
- func (o *DocumentContext) Insert(ctx context.Context, exec boil.ContextExecutor, columns boil.Columns) error
- func (o *DocumentContext) Reload(ctx context.Context, exec boil.ContextExecutor) error
- func (o *DocumentContext) Update(ctx context.Context, exec boil.ContextExecutor, columns boil.Columns) (int64, error)
- func (o *DocumentContext) Upsert(ctx context.Context, exec boil.ContextExecutor, ...) error
- type DocumentContextHook
- type DocumentContextSlice
- func (o DocumentContextSlice) DeleteAll(ctx context.Context, exec boil.ContextExecutor) (int64, error)
- func (o *DocumentContextSlice) ReloadAll(ctx context.Context, exec boil.ContextExecutor) error
- func (o DocumentContextSlice) UpdateAll(ctx context.Context, exec boil.ContextExecutor, cols M) (int64, error)
- type DocumentHook
- type DocumentSlice
- type DocumentType
- func (o *DocumentType) Delete(ctx context.Context, exec boil.ContextExecutor) (int64, error)
- func (o *DocumentType) Insert(ctx context.Context, exec boil.ContextExecutor, columns boil.Columns) error
- func (o *DocumentType) Reload(ctx context.Context, exec boil.ContextExecutor) error
- func (o *DocumentType) Update(ctx context.Context, exec boil.ContextExecutor, columns boil.Columns) (int64, error)
- func (o *DocumentType) Upsert(ctx context.Context, exec boil.ContextExecutor, ...) error
- type DocumentTypeHook
- type DocumentTypeSlice
- type Link
- func (o *Link) Delete(ctx context.Context, exec boil.ContextExecutor) (int64, error)
- func (o *Link) Insert(ctx context.Context, exec boil.ContextExecutor, columns boil.Columns) error
- func (o *Link) Reload(ctx context.Context, exec boil.ContextExecutor) error
- func (o *Link) Update(ctx context.Context, exec boil.ContextExecutor, columns boil.Columns) (int64, error)
- func (o *Link) Upsert(ctx context.Context, exec boil.ContextExecutor, ...) error
- type LinkHook
- type LinkSlice
- type M
- type Tag
- func (o *Tag) Delete(ctx context.Context, exec boil.ContextExecutor) (int64, error)
- func (o *Tag) Insert(ctx context.Context, exec boil.ContextExecutor, columns boil.Columns) error
- func (o *Tag) Reload(ctx context.Context, exec boil.ContextExecutor) error
- func (o *Tag) Update(ctx context.Context, exec boil.ContextExecutor, columns boil.Columns) (int64, error)
- func (o *Tag) Upsert(ctx context.Context, exec boil.ContextExecutor, ...) error
- type TagHook
- type TagSlice
Constants ¶
This section is empty.
Variables ¶
var BookmarkColumns = struct { ID string IsRead string Title string URL string BookmarkTypeID string IsCollection string CreatedAt string UpdatedAt string DeletedAt string }{ ID: "id", IsRead: "is_read", Title: "title", URL: "url", BookmarkTypeID: "bookmark_type_id", IsCollection: "is_collection", CreatedAt: "created_at", UpdatedAt: "updated_at", DeletedAt: "deleted_at", }
var BookmarkContextColumns = struct { BookmarkID string TagID string }{ BookmarkID: "bookmark_id", TagID: "tag_id", }
var BookmarkContextRels = struct {
}{}
BookmarkContextRels is where relationship names are stored.
var BookmarkContextTableColumns = struct { BookmarkID string TagID string }{ BookmarkID: "bookmark_contexts.bookmark_id", TagID: "bookmark_contexts.tag_id", }
var BookmarkContextWhere = struct { BookmarkID whereHelperint64 TagID whereHelperint64 }{ BookmarkID: whereHelperint64{/* contains filtered or unexported fields */}, TagID: whereHelperint64{/* contains filtered or unexported fields */}, }
var BookmarkRels = struct {
}{}
BookmarkRels is where relationship names are stored.
var BookmarkTableColumns = struct { ID string IsRead string Title string URL string BookmarkTypeID string IsCollection string CreatedAt string UpdatedAt string DeletedAt string }{ ID: "bookmarks.id", IsRead: "bookmarks.is_read", Title: "bookmarks.title", URL: "bookmarks.url", BookmarkTypeID: "bookmarks.bookmark_type_id", IsCollection: "bookmarks.is_collection", CreatedAt: "bookmarks.created_at", UpdatedAt: "bookmarks.updated_at", DeletedAt: "bookmarks.deleted_at", }
var BookmarkTypeColumns = struct { ID string BookmarkType string }{ ID: "id", BookmarkType: "bookmark_type", }
var BookmarkTypeRels = struct {
}{}
BookmarkTypeRels is where relationship names are stored.
var BookmarkTypeTableColumns = struct { ID string BookmarkType string }{ ID: "bookmark_types.id", BookmarkType: "bookmark_types.bookmark_type", }
var BookmarkTypeWhere = struct { ID whereHelperint64 BookmarkType whereHelperstring }{ ID: whereHelperint64{/* contains filtered or unexported fields */}, BookmarkType: whereHelperstring{/* contains filtered or unexported fields */}, }
var BookmarkWhere = struct { ID whereHelperint64 IsRead whereHelperint64 Title whereHelpernull_String URL whereHelperstring BookmarkTypeID whereHelpernull_Int64 IsCollection whereHelperint64 CreatedAt whereHelpertime_Time UpdatedAt whereHelpertime_Time DeletedAt whereHelpernull_Time }{ ID: whereHelperint64{/* contains filtered or unexported fields */}, IsRead: whereHelperint64{/* contains filtered or unexported fields */}, Title: whereHelpernull_String{/* contains filtered or unexported fields */}, URL: whereHelperstring{/* contains filtered or unexported fields */}, BookmarkTypeID: whereHelpernull_Int64{/* contains filtered or unexported fields */}, IsCollection: whereHelperint64{/* contains filtered or unexported fields */}, CreatedAt: whereHelpertime_Time{/* contains filtered or unexported fields */}, UpdatedAt: whereHelpertime_Time{/* contains filtered or unexported fields */}, DeletedAt: whereHelpernull_Time{/* contains filtered or unexported fields */}, }
var DocumentColumns = struct { ID string Path string DocumentTypeID string CreatedAt string UpdatedAt string DeletedAt string }{ ID: "id", Path: "path", DocumentTypeID: "document_type_id", CreatedAt: "created_at", UpdatedAt: "updated_at", DeletedAt: "deleted_at", }
var DocumentContextColumns = struct { DocumentID string TagID string }{ DocumentID: "document_id", TagID: "tag_id", }
var DocumentContextRels = struct {
}{}
DocumentContextRels is where relationship names are stored.
var DocumentContextTableColumns = struct { DocumentID string TagID string }{ DocumentID: "document_contexts.document_id", TagID: "document_contexts.tag_id", }
var DocumentContextWhere = struct { DocumentID whereHelperint64 TagID whereHelperint64 }{ DocumentID: whereHelperint64{/* contains filtered or unexported fields */}, TagID: whereHelperint64{/* contains filtered or unexported fields */}, }
var DocumentRels = struct {
}{}
DocumentRels is where relationship names are stored.
var DocumentTableColumns = struct { ID string Path string DocumentTypeID string CreatedAt string UpdatedAt string DeletedAt string }{ ID: "documents.id", Path: "documents.path", DocumentTypeID: "documents.document_type_id", CreatedAt: "documents.created_at", UpdatedAt: "documents.updated_at", DeletedAt: "documents.deleted_at", }
var DocumentTypeColumns = struct { ID string DocumentType string }{ ID: "id", DocumentType: "document_type", }
var DocumentTypeRels = struct {
}{}
DocumentTypeRels is where relationship names are stored.
var DocumentTypeTableColumns = struct { ID string DocumentType string }{ ID: "document_types.id", DocumentType: "document_types.document_type", }
var DocumentTypeWhere = struct { ID whereHelperint64 DocumentType whereHelperstring }{ ID: whereHelperint64{/* contains filtered or unexported fields */}, DocumentType: whereHelperstring{/* contains filtered or unexported fields */}, }
var DocumentWhere = struct { ID whereHelperint64 Path whereHelperstring DocumentTypeID whereHelpernull_Int64 CreatedAt whereHelpertime_Time UpdatedAt whereHelpertime_Time DeletedAt whereHelpernull_Time }{ ID: whereHelperint64{/* contains filtered or unexported fields */}, Path: whereHelperstring{/* contains filtered or unexported fields */}, DocumentTypeID: whereHelpernull_Int64{/* contains filtered or unexported fields */}, CreatedAt: whereHelpertime_Time{/* contains filtered or unexported fields */}, UpdatedAt: whereHelpertime_Time{/* contains filtered or unexported fields */}, DeletedAt: whereHelpernull_Time{/* contains filtered or unexported fields */}, }
var ErrSyncFail = errors.New("repository: 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 LinkColumns = struct { SourceID string DestinationID string }{ SourceID: "source_id", DestinationID: "destination_id", }
var LinkRels = struct {
}{}
LinkRels is where relationship names are stored.
var LinkTableColumns = struct { SourceID string DestinationID string }{ SourceID: "links.source_id", DestinationID: "links.destination_id", }
var LinkWhere = struct { SourceID whereHelperint64 DestinationID whereHelperint64 }{ SourceID: whereHelperint64{/* contains filtered or unexported fields */}, DestinationID: whereHelperint64{/* contains filtered or unexported fields */}, }
var TableNames = struct { BookmarkContexts string BookmarkTypes string Bookmarks string DocumentContexts string DocumentTypes string Documents string Links string Tags string }{ BookmarkContexts: "bookmark_contexts", BookmarkTypes: "bookmark_types", Bookmarks: "bookmarks", DocumentContexts: "document_contexts", DocumentTypes: "document_types", Documents: "documents", Links: "links", Tags: "tags", }
var TagColumns = struct { ID string Tag string ParentTag string Path string Children string }{ ID: "id", Tag: "tag", ParentTag: "parent_tag", Path: "path", Children: "children", }
var TagRels = struct {
}{}
TagRels is where relationship names are stored.
var TagTableColumns = struct { ID string Tag string ParentTag string Path string Children string }{ ID: "tags.id", Tag: "tags.tag", ParentTag: "tags.parent_tag", Path: "tags.path", Children: "tags.children", }
var TagWhere = struct { ID whereHelperint64 Tag whereHelperstring ParentTag whereHelpernull_Int64 Path whereHelperstring Children whereHelperstring }{ ID: whereHelperint64{/* contains filtered or unexported fields */}, Tag: whereHelperstring{/* contains filtered or unexported fields */}, ParentTag: whereHelpernull_Int64{/* contains filtered or unexported fields */}, Path: whereHelperstring{/* contains filtered or unexported fields */}, Children: whereHelperstring{/* contains filtered or unexported fields */}, }
var ViewNames = struct {
}{}
Functions ¶
func AddBookmarkContextHook ¶
func AddBookmarkContextHook(hookPoint boil.HookPoint, bookmarkContextHook BookmarkContextHook)
AddBookmarkContextHook registers your hook function for all future operations.
func AddBookmarkHook ¶
func AddBookmarkHook(hookPoint boil.HookPoint, bookmarkHook BookmarkHook)
AddBookmarkHook registers your hook function for all future operations.
func AddBookmarkTypeHook ¶
func AddBookmarkTypeHook(hookPoint boil.HookPoint, bookmarkTypeHook BookmarkTypeHook)
AddBookmarkTypeHook registers your hook function for all future operations.
func AddDocumentContextHook ¶
func AddDocumentContextHook(hookPoint boil.HookPoint, documentContextHook DocumentContextHook)
AddDocumentContextHook registers your hook function for all future operations.
func AddDocumentHook ¶
func AddDocumentHook(hookPoint boil.HookPoint, documentHook DocumentHook)
AddDocumentHook registers your hook function for all future operations.
func AddDocumentTypeHook ¶
func AddDocumentTypeHook(hookPoint boil.HookPoint, documentTypeHook DocumentTypeHook)
AddDocumentTypeHook registers your hook function for all future operations.
func AddLinkHook ¶
AddLinkHook registers your hook function for all future operations.
func AddTagHook ¶
AddTagHook registers your hook function for all future operations.
func BookmarkContextExists ¶
func BookmarkContextExists(ctx context.Context, exec boil.ContextExecutor, tagID int64, bookmarkID int64) (bool, error)
BookmarkContextExists checks if the BookmarkContext row exists.
func BookmarkContexts ¶
BookmarkContexts retrieves all the records using an executor.
func BookmarkExists ¶
BookmarkExists checks if the Bookmark row exists.
func BookmarkTypeExists ¶
BookmarkTypeExists checks if the BookmarkType row exists.
func BookmarkTypes ¶
BookmarkTypes retrieves all the records using an executor.
func DocumentContextExists ¶
func DocumentContextExists(ctx context.Context, exec boil.ContextExecutor, tagID int64, documentID int64) (bool, error)
DocumentContextExists checks if the DocumentContext row exists.
func DocumentContexts ¶
DocumentContexts retrieves all the records using an executor.
func DocumentExists ¶
DocumentExists checks if the Document row exists.
func DocumentTypeExists ¶
DocumentTypeExists checks if the DocumentType row exists.
func DocumentTypes ¶
DocumentTypes retrieves all the records using an executor.
func LinkExists ¶
func LinkExists(ctx context.Context, exec boil.ContextExecutor, sourceID int64, destinationID int64) (bool, error)
LinkExists checks if the Link row exists.
Types ¶
type Bookmark ¶
type Bookmark struct { L bookmarkL `boil:"-" json:"-" toml:"-" yaml:"-"` 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"` R *bookmarkR `boil:"-" json:"-" toml:"-" yaml:"-"` DeletedAt null.Time `boil:"deleted_at" json:"deleted_at,omitempty" toml:"deleted_at" yaml:"deleted_at,omitempty"` URL string `boil:"url" json:"url" toml:"url" yaml:"url"` Title null.String `boil:"title" json:"title,omitempty" toml:"title" yaml:"title,omitempty"` BookmarkTypeID null.Int64 `boil:"bookmark_type_id" json:"bookmark_type_id,omitempty" toml:"bookmark_type_id" yaml:"bookmark_type_id,omitempty"` IsCollection int64 `boil:"is_collection" json:"is_collection" toml:"is_collection" yaml:"is_collection"` ID int64 `boil:"id" json:"id" toml:"id" yaml:"id"` IsRead int64 `boil:"is_read" json:"is_read" toml:"is_read" yaml:"is_read"` }
Bookmark is an object representing the database table.
func FindBookmark ¶
func FindBookmark(ctx context.Context, exec boil.ContextExecutor, iD int64, selectCols ...string) (*Bookmark, error)
FindBookmark retrieves a single record by ID with an executor. If selectCols is empty Find will return all columns.
func (*Bookmark) Delete ¶
Delete deletes a single Bookmark record with an executor. Delete will match against the primary key column to find the record to delete.
func (*Bookmark) Insert ¶
func (o *Bookmark) 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 (*Bookmark) Reload ¶
Reload refetches the object from the database using the primary keys with an executor.
func (*Bookmark) Update ¶
func (o *Bookmark) Update(ctx context.Context, exec boil.ContextExecutor, columns boil.Columns) (int64, error)
Update uses an executor to update the Bookmark. 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 (*Bookmark) Upsert ¶
func (o *Bookmark) Upsert(ctx context.Context, exec boil.ContextExecutor, updateColumns, insertColumns boil.Columns) 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 BookmarkContext ¶
type BookmarkContext struct { L bookmarkContextL `boil:"-" json:"-" toml:"-" yaml:"-"` R *bookmarkContextR `boil:"-" json:"-" toml:"-" yaml:"-"` BookmarkID int64 `boil:"bookmark_id" json:"bookmark_id" toml:"bookmark_id" yaml:"bookmark_id"` TagID int64 `boil:"tag_id" json:"tag_id" toml:"tag_id" yaml:"tag_id"` }
BookmarkContext is an object representing the database table.
func FindBookmarkContext ¶
func FindBookmarkContext(ctx context.Context, exec boil.ContextExecutor, tagID int64, bookmarkID int64, selectCols ...string) (*BookmarkContext, error)
FindBookmarkContext retrieves a single record by ID with an executor. If selectCols is empty Find will return all columns.
func (*BookmarkContext) Delete ¶
func (o *BookmarkContext) Delete(ctx context.Context, exec boil.ContextExecutor) (int64, error)
Delete deletes a single BookmarkContext record with an executor. Delete will match against the primary key column to find the record to delete.
func (*BookmarkContext) Insert ¶
func (o *BookmarkContext) 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 (*BookmarkContext) Reload ¶
func (o *BookmarkContext) Reload(ctx context.Context, exec boil.ContextExecutor) error
Reload refetches the object from the database using the primary keys with an executor.
func (*BookmarkContext) Update ¶
func (o *BookmarkContext) Update(ctx context.Context, exec boil.ContextExecutor, columns boil.Columns) (int64, error)
Update uses an executor to update the BookmarkContext. 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 (*BookmarkContext) Upsert ¶
func (o *BookmarkContext) Upsert(ctx context.Context, exec boil.ContextExecutor, updateColumns, insertColumns boil.Columns) 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 BookmarkContextHook ¶
type BookmarkContextHook func(context.Context, boil.ContextExecutor, *BookmarkContext) error
BookmarkContextHook is the signature for custom BookmarkContext hook methods
type BookmarkContextSlice ¶
type BookmarkContextSlice []*BookmarkContext
BookmarkContextSlice is an alias for a slice of pointers to BookmarkContext. This should almost always be used instead of []BookmarkContext.
func (BookmarkContextSlice) DeleteAll ¶
func (o BookmarkContextSlice) DeleteAll(ctx context.Context, exec boil.ContextExecutor) (int64, error)
DeleteAll deletes all rows in the slice, using an executor.
func (*BookmarkContextSlice) ReloadAll ¶
func (o *BookmarkContextSlice) 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 (BookmarkContextSlice) UpdateAll ¶
func (o BookmarkContextSlice) UpdateAll(ctx context.Context, exec boil.ContextExecutor, cols M) (int64, error)
UpdateAll updates all rows with the specified column values, using an executor.
type BookmarkHook ¶
BookmarkHook is the signature for custom Bookmark hook methods
type BookmarkSlice ¶
type BookmarkSlice []*Bookmark
BookmarkSlice is an alias for a slice of pointers to Bookmark. This should almost always be used instead of []Bookmark.
func (BookmarkSlice) DeleteAll ¶
func (o BookmarkSlice) DeleteAll(ctx context.Context, exec boil.ContextExecutor) (int64, error)
DeleteAll deletes all rows in the slice, using an executor.
func (*BookmarkSlice) ReloadAll ¶
func (o *BookmarkSlice) 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 (BookmarkSlice) UpdateAll ¶
func (o BookmarkSlice) UpdateAll(ctx context.Context, exec boil.ContextExecutor, cols M) (int64, error)
UpdateAll updates all rows with the specified column values, using an executor.
type BookmarkType ¶
type BookmarkType struct { L bookmarkTypeL `boil:"-" json:"-" toml:"-" yaml:"-"` R *bookmarkTypeR `boil:"-" json:"-" toml:"-" yaml:"-"` BookmarkType string `boil:"bookmark_type" json:"bookmark_type" toml:"bookmark_type" yaml:"bookmark_type"` ID int64 `boil:"id" json:"id" toml:"id" yaml:"id"` }
BookmarkType is an object representing the database table.
func FindBookmarkType ¶
func FindBookmarkType(ctx context.Context, exec boil.ContextExecutor, iD int64, selectCols ...string) (*BookmarkType, error)
FindBookmarkType retrieves a single record by ID with an executor. If selectCols is empty Find will return all columns.
func (*BookmarkType) Delete ¶
func (o *BookmarkType) Delete(ctx context.Context, exec boil.ContextExecutor) (int64, error)
Delete deletes a single BookmarkType record with an executor. Delete will match against the primary key column to find the record to delete.
func (*BookmarkType) Insert ¶
func (o *BookmarkType) 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 (*BookmarkType) Reload ¶
func (o *BookmarkType) Reload(ctx context.Context, exec boil.ContextExecutor) error
Reload refetches the object from the database using the primary keys with an executor.
func (*BookmarkType) Update ¶
func (o *BookmarkType) Update(ctx context.Context, exec boil.ContextExecutor, columns boil.Columns) (int64, error)
Update uses an executor to update the BookmarkType. 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 (*BookmarkType) Upsert ¶
func (o *BookmarkType) Upsert(ctx context.Context, exec boil.ContextExecutor, updateColumns, insertColumns boil.Columns) 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 BookmarkTypeHook ¶
type BookmarkTypeHook func(context.Context, boil.ContextExecutor, *BookmarkType) error
BookmarkTypeHook is the signature for custom BookmarkType hook methods
type BookmarkTypeSlice ¶
type BookmarkTypeSlice []*BookmarkType
BookmarkTypeSlice is an alias for a slice of pointers to BookmarkType. This should almost always be used instead of []BookmarkType.
func (BookmarkTypeSlice) DeleteAll ¶
func (o BookmarkTypeSlice) DeleteAll(ctx context.Context, exec boil.ContextExecutor) (int64, error)
DeleteAll deletes all rows in the slice, using an executor.
func (*BookmarkTypeSlice) ReloadAll ¶
func (o *BookmarkTypeSlice) 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 (BookmarkTypeSlice) UpdateAll ¶
func (o BookmarkTypeSlice) UpdateAll(ctx context.Context, exec boil.ContextExecutor, cols M) (int64, error)
UpdateAll updates all rows with the specified column values, using an executor.
type Document ¶
type Document struct { L documentL `boil:"-" json:"-" toml:"-" yaml:"-"` 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"` R *documentR `boil:"-" json:"-" toml:"-" yaml:"-"` DeletedAt null.Time `boil:"deleted_at" json:"deleted_at,omitempty" toml:"deleted_at" yaml:"deleted_at,omitempty"` Path string `boil:"path" json:"path" toml:"path" yaml:"path"` DocumentTypeID null.Int64 `boil:"document_type_id" json:"document_type_id,omitempty" toml:"document_type_id" yaml:"document_type_id,omitempty"` ID int64 `boil:"id" json:"id" toml:"id" yaml:"id"` }
Document is an object representing the database table.
func FindDocument ¶
func FindDocument(ctx context.Context, exec boil.ContextExecutor, iD int64, selectCols ...string) (*Document, error)
FindDocument retrieves a single record by ID with an executor. If selectCols is empty Find will return all columns.
func (*Document) Delete ¶
Delete deletes a single Document record with an executor. Delete will match against the primary key column to find the record to delete.
func (*Document) Insert ¶
func (o *Document) 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 (*Document) Reload ¶
Reload refetches the object from the database using the primary keys with an executor.
func (*Document) Update ¶
func (o *Document) Update(ctx context.Context, exec boil.ContextExecutor, columns boil.Columns) (int64, error)
Update uses an executor to update the Document. 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 (*Document) Upsert ¶
func (o *Document) Upsert(ctx context.Context, exec boil.ContextExecutor, updateColumns, insertColumns boil.Columns) 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 DocumentContext ¶
type DocumentContext struct { L documentContextL `boil:"-" json:"-" toml:"-" yaml:"-"` R *documentContextR `boil:"-" json:"-" toml:"-" yaml:"-"` DocumentID int64 `boil:"document_id" json:"document_id" toml:"document_id" yaml:"document_id"` TagID int64 `boil:"tag_id" json:"tag_id" toml:"tag_id" yaml:"tag_id"` }
DocumentContext is an object representing the database table.
func FindDocumentContext ¶
func FindDocumentContext(ctx context.Context, exec boil.ContextExecutor, tagID int64, documentID int64, selectCols ...string) (*DocumentContext, error)
FindDocumentContext retrieves a single record by ID with an executor. If selectCols is empty Find will return all columns.
func (*DocumentContext) Delete ¶
func (o *DocumentContext) Delete(ctx context.Context, exec boil.ContextExecutor) (int64, error)
Delete deletes a single DocumentContext record with an executor. Delete will match against the primary key column to find the record to delete.
func (*DocumentContext) Insert ¶
func (o *DocumentContext) 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 (*DocumentContext) Reload ¶
func (o *DocumentContext) Reload(ctx context.Context, exec boil.ContextExecutor) error
Reload refetches the object from the database using the primary keys with an executor.
func (*DocumentContext) Update ¶
func (o *DocumentContext) Update(ctx context.Context, exec boil.ContextExecutor, columns boil.Columns) (int64, error)
Update uses an executor to update the DocumentContext. 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 (*DocumentContext) Upsert ¶
func (o *DocumentContext) Upsert(ctx context.Context, exec boil.ContextExecutor, updateColumns, insertColumns boil.Columns) 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 DocumentContextHook ¶
type DocumentContextHook func(context.Context, boil.ContextExecutor, *DocumentContext) error
DocumentContextHook is the signature for custom DocumentContext hook methods
type DocumentContextSlice ¶
type DocumentContextSlice []*DocumentContext
DocumentContextSlice is an alias for a slice of pointers to DocumentContext. This should almost always be used instead of []DocumentContext.
func (DocumentContextSlice) DeleteAll ¶
func (o DocumentContextSlice) DeleteAll(ctx context.Context, exec boil.ContextExecutor) (int64, error)
DeleteAll deletes all rows in the slice, using an executor.
func (*DocumentContextSlice) ReloadAll ¶
func (o *DocumentContextSlice) 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 (DocumentContextSlice) UpdateAll ¶
func (o DocumentContextSlice) UpdateAll(ctx context.Context, exec boil.ContextExecutor, cols M) (int64, error)
UpdateAll updates all rows with the specified column values, using an executor.
type DocumentHook ¶
DocumentHook is the signature for custom Document hook methods
type DocumentSlice ¶
type DocumentSlice []*Document
DocumentSlice is an alias for a slice of pointers to Document. This should almost always be used instead of []Document.
func (DocumentSlice) DeleteAll ¶
func (o DocumentSlice) DeleteAll(ctx context.Context, exec boil.ContextExecutor) (int64, error)
DeleteAll deletes all rows in the slice, using an executor.
func (*DocumentSlice) ReloadAll ¶
func (o *DocumentSlice) 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 (DocumentSlice) UpdateAll ¶
func (o DocumentSlice) UpdateAll(ctx context.Context, exec boil.ContextExecutor, cols M) (int64, error)
UpdateAll updates all rows with the specified column values, using an executor.
type DocumentType ¶
type DocumentType struct { L documentTypeL `boil:"-" json:"-" toml:"-" yaml:"-"` R *documentTypeR `boil:"-" json:"-" toml:"-" yaml:"-"` DocumentType string `boil:"document_type" json:"document_type" toml:"document_type" yaml:"document_type"` ID int64 `boil:"id" json:"id" toml:"id" yaml:"id"` }
DocumentType is an object representing the database table.
func FindDocumentType ¶
func FindDocumentType(ctx context.Context, exec boil.ContextExecutor, iD int64, selectCols ...string) (*DocumentType, error)
FindDocumentType retrieves a single record by ID with an executor. If selectCols is empty Find will return all columns.
func (*DocumentType) Delete ¶
func (o *DocumentType) Delete(ctx context.Context, exec boil.ContextExecutor) (int64, error)
Delete deletes a single DocumentType record with an executor. Delete will match against the primary key column to find the record to delete.
func (*DocumentType) Insert ¶
func (o *DocumentType) 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 (*DocumentType) Reload ¶
func (o *DocumentType) Reload(ctx context.Context, exec boil.ContextExecutor) error
Reload refetches the object from the database using the primary keys with an executor.
func (*DocumentType) Update ¶
func (o *DocumentType) Update(ctx context.Context, exec boil.ContextExecutor, columns boil.Columns) (int64, error)
Update uses an executor to update the DocumentType. 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 (*DocumentType) Upsert ¶
func (o *DocumentType) Upsert(ctx context.Context, exec boil.ContextExecutor, updateColumns, insertColumns boil.Columns) 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 DocumentTypeHook ¶
type DocumentTypeHook func(context.Context, boil.ContextExecutor, *DocumentType) error
DocumentTypeHook is the signature for custom DocumentType hook methods
type DocumentTypeSlice ¶
type DocumentTypeSlice []*DocumentType
DocumentTypeSlice is an alias for a slice of pointers to DocumentType. This should almost always be used instead of []DocumentType.
func (DocumentTypeSlice) DeleteAll ¶
func (o DocumentTypeSlice) DeleteAll(ctx context.Context, exec boil.ContextExecutor) (int64, error)
DeleteAll deletes all rows in the slice, using an executor.
func (*DocumentTypeSlice) ReloadAll ¶
func (o *DocumentTypeSlice) 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 (DocumentTypeSlice) UpdateAll ¶
func (o DocumentTypeSlice) UpdateAll(ctx context.Context, exec boil.ContextExecutor, cols M) (int64, error)
UpdateAll updates all rows with the specified column values, using an executor.
type Link ¶
type Link struct { L linkL `boil:"-" json:"-" toml:"-" yaml:"-"` R *linkR `boil:"-" json:"-" toml:"-" yaml:"-"` SourceID int64 `boil:"source_id" json:"source_id" toml:"source_id" yaml:"source_id"` DestinationID int64 `boil:"destination_id" json:"destination_id" toml:"destination_id" yaml:"destination_id"` }
Link is an object representing the database table.
func FindLink ¶
func FindLink(ctx context.Context, exec boil.ContextExecutor, sourceID int64, destinationID int64, selectCols ...string) (*Link, error)
FindLink retrieves a single record by ID with an executor. If selectCols is empty Find will return all columns.
func (*Link) Delete ¶
Delete deletes a single Link record with an executor. Delete will match against the primary key column to find the record to delete.
func (*Link) Insert ¶
Insert a single record using an executor. See boil.Columns.InsertColumnSet documentation to understand column list inference for inserts.
func (*Link) Reload ¶
Reload refetches the object from the database using the primary keys with an executor.
func (*Link) Update ¶
func (o *Link) Update(ctx context.Context, exec boil.ContextExecutor, columns boil.Columns) (int64, error)
Update uses an executor to update the Link. 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 (*Link) Upsert ¶
func (o *Link) Upsert(ctx context.Context, exec boil.ContextExecutor, updateColumns, insertColumns boil.Columns) 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 LinkSlice ¶
type LinkSlice []*Link
LinkSlice is an alias for a slice of pointers to Link. This should almost always be used instead of []Link.
type M ¶
type M map[string]interface{}
M type is for providing columns and column values to UpdateAll.
type Tag ¶
type Tag struct { L tagL `boil:"-" json:"-" toml:"-" yaml:"-"` R *tagR `boil:"-" json:"-" toml:"-" yaml:"-"` Tag string `boil:"tag" json:"tag" toml:"tag" yaml:"tag"` Path string `boil:"path" json:"path" toml:"path" yaml:"path"` Children string `boil:"children" json:"children" toml:"children" yaml:"children"` ParentTag null.Int64 `boil:"parent_tag" json:"parent_tag,omitempty" toml:"parent_tag" yaml:"parent_tag,omitempty"` ID int64 `boil:"id" json:"id" toml:"id" yaml:"id"` }
Tag is an object representing the database table.
func FindTag ¶
func FindTag(ctx context.Context, exec boil.ContextExecutor, iD int64, selectCols ...string) (*Tag, error)
FindTag retrieves a single record by ID with an executor. If selectCols is empty Find will return all columns.
func (*Tag) Delete ¶
Delete deletes a single Tag record with an executor. Delete will match against the primary key column to find the record to delete.
func (*Tag) Insert ¶
Insert a single record using an executor. See boil.Columns.InsertColumnSet documentation to understand column list inference for inserts.
func (*Tag) Reload ¶
Reload refetches the object from the database using the primary keys with an executor.
func (*Tag) Update ¶
func (o *Tag) Update(ctx context.Context, exec boil.ContextExecutor, columns boil.Columns) (int64, error)
Update uses an executor to update the Tag. 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 (*Tag) Upsert ¶
func (o *Tag) Upsert(ctx context.Context, exec boil.ContextExecutor, updateColumns, insertColumns boil.Columns) 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 TagSlice ¶
type TagSlice []*Tag
TagSlice is an alias for a slice of pointers to Tag. This should almost always be used instead of []Tag.