repository

package
v0.8.1 Latest Latest
Warning

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

Go to latest
Published: Sep 6, 2022 License: MIT Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
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",
}
View Source
var BookmarkContextColumns = struct {
	BookmarkID string
	TagID      string
}{
	BookmarkID: "bookmark_id",
	TagID:      "tag_id",
}
View Source
var BookmarkContextRels = struct {
}{}

BookmarkContextRels is where relationship names are stored.

View Source
var BookmarkContextTableColumns = struct {
	BookmarkID string
	TagID      string
}{
	BookmarkID: "bookmark_contexts.bookmark_id",
	TagID:      "bookmark_contexts.tag_id",
}
View Source
var BookmarkContextWhere = struct {
	BookmarkID whereHelperint64
	TagID      whereHelperint64
}{
	BookmarkID: whereHelperint64{/* contains filtered or unexported fields */},
	TagID:      whereHelperint64{/* contains filtered or unexported fields */},
}
View Source
var BookmarkRels = struct {
}{}

BookmarkRels is where relationship names are stored.

View Source
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",
}
View Source
var BookmarkTypeColumns = struct {
	ID           string
	BookmarkType string
}{
	ID:           "id",
	BookmarkType: "bookmark_type",
}
View Source
var BookmarkTypeRels = struct {
}{}

BookmarkTypeRels is where relationship names are stored.

View Source
var BookmarkTypeTableColumns = struct {
	ID           string
	BookmarkType string
}{
	ID:           "bookmark_types.id",
	BookmarkType: "bookmark_types.bookmark_type",
}
View Source
var BookmarkTypeWhere = struct {
	ID           whereHelperint64
	BookmarkType whereHelperstring
}{
	ID:           whereHelperint64{/* contains filtered or unexported fields */},
	BookmarkType: whereHelperstring{/* contains filtered or unexported fields */},
}
View Source
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 */},
}
View Source
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",
}
View Source
var DocumentContextColumns = struct {
	DocumentID string
	TagID      string
}{
	DocumentID: "document_id",
	TagID:      "tag_id",
}
View Source
var DocumentContextRels = struct {
}{}

DocumentContextRels is where relationship names are stored.

View Source
var DocumentContextTableColumns = struct {
	DocumentID string
	TagID      string
}{
	DocumentID: "document_contexts.document_id",
	TagID:      "document_contexts.tag_id",
}
View Source
var DocumentContextWhere = struct {
	DocumentID whereHelperint64
	TagID      whereHelperint64
}{
	DocumentID: whereHelperint64{/* contains filtered or unexported fields */},
	TagID:      whereHelperint64{/* contains filtered or unexported fields */},
}
View Source
var DocumentRels = struct {
}{}

DocumentRels is where relationship names are stored.

View Source
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",
}
View Source
var DocumentTypeColumns = struct {
	ID           string
	DocumentType string
}{
	ID:           "id",
	DocumentType: "document_type",
}
View Source
var DocumentTypeRels = struct {
}{}

DocumentTypeRels is where relationship names are stored.

View Source
var DocumentTypeTableColumns = struct {
	ID           string
	DocumentType string
}{
	ID:           "document_types.id",
	DocumentType: "document_types.document_type",
}
View Source
var DocumentTypeWhere = struct {
	ID           whereHelperint64
	DocumentType whereHelperstring
}{
	ID:           whereHelperint64{/* contains filtered or unexported fields */},
	DocumentType: whereHelperstring{/* contains filtered or unexported fields */},
}
View Source
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 */},
}
View Source
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.

View Source
var LinkColumns = struct {
	SourceID      string
	DestinationID string
}{
	SourceID:      "source_id",
	DestinationID: "destination_id",
}
View Source
var LinkRels = struct {
}{}

LinkRels is where relationship names are stored.

View Source
var LinkTableColumns = struct {
	SourceID      string
	DestinationID string
}{
	SourceID:      "links.source_id",
	DestinationID: "links.destination_id",
}
View Source
var LinkWhere = struct {
	SourceID      whereHelperint64
	DestinationID whereHelperint64
}{
	SourceID:      whereHelperint64{/* contains filtered or unexported fields */},
	DestinationID: whereHelperint64{/* contains filtered or unexported fields */},
}
View Source
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",
}
View Source
var TagColumns = struct {
	ID        string
	Tag       string
	ParentTag string
	Path      string
	Children  string
}{
	ID:        "id",
	Tag:       "tag",
	ParentTag: "parent_tag",
	Path:      "path",
	Children:  "children",
}
View Source
var TagRels = struct {
}{}

TagRels is where relationship names are stored.

View Source
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",
}
View Source
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 */},
}
View Source
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

func AddLinkHook(hookPoint boil.HookPoint, linkHook LinkHook)

AddLinkHook registers your hook function for all future operations.

func AddTagHook

func AddTagHook(hookPoint boil.HookPoint, tagHook TagHook)

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

func BookmarkContexts(mods ...qm.QueryMod) bookmarkContextQuery

BookmarkContexts retrieves all the records using an executor.

func BookmarkExists

func BookmarkExists(ctx context.Context, exec boil.ContextExecutor, iD int64) (bool, error)

BookmarkExists checks if the Bookmark row exists.

func BookmarkTypeExists

func BookmarkTypeExists(ctx context.Context, exec boil.ContextExecutor, iD int64) (bool, error)

BookmarkTypeExists checks if the BookmarkType row exists.

func BookmarkTypes

func BookmarkTypes(mods ...qm.QueryMod) bookmarkTypeQuery

BookmarkTypes retrieves all the records using an executor.

func Bookmarks

func Bookmarks(mods ...qm.QueryMod) bookmarkQuery

Bookmarks 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

func DocumentContexts(mods ...qm.QueryMod) documentContextQuery

DocumentContexts retrieves all the records using an executor.

func DocumentExists

func DocumentExists(ctx context.Context, exec boil.ContextExecutor, iD int64) (bool, error)

DocumentExists checks if the Document row exists.

func DocumentTypeExists

func DocumentTypeExists(ctx context.Context, exec boil.ContextExecutor, iD int64) (bool, error)

DocumentTypeExists checks if the DocumentType row exists.

func DocumentTypes

func DocumentTypes(mods ...qm.QueryMod) documentTypeQuery

DocumentTypes retrieves all the records using an executor.

func Documents

func Documents(mods ...qm.QueryMod) documentQuery

Documents 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.

func Links(mods ...qm.QueryMod) linkQuery

Links retrieves all the records using an executor.

func NewQuery

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

NewQuery initializes a new Query using the passed in QueryMods

func TagExists

func TagExists(ctx context.Context, exec boil.ContextExecutor, iD int64) (bool, error)

TagExists checks if the Tag row exists.

func Tags

func Tags(mods ...qm.QueryMod) tagQuery

Tags retrieves all the records using an executor.

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

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

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

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

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

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

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

func (*BookmarkContextSlice) ReloadAll

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

type BookmarkHook func(context.Context, boil.ContextExecutor, *Bookmark) error

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

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

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

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

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

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

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

func (*DocumentContextSlice) ReloadAll

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

type DocumentHook func(context.Context, boil.ContextExecutor, *Document) error

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 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(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

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

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

func (o *Link) 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 (*Link) Reload

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

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 LinkHook

type LinkHook func(context.Context, boil.ContextExecutor, *Link) error

LinkHook is the signature for custom Link hook methods

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.

func (LinkSlice) DeleteAll

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

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

func (*LinkSlice) ReloadAll

func (o *LinkSlice) 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 (LinkSlice) UpdateAll

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

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

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

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

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

func (o *Tag) 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 (*Tag) Reload

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

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 TagHook

type TagHook func(context.Context, boil.ContextExecutor, *Tag) error

TagHook is the signature for custom Tag hook methods

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.

func (TagSlice) DeleteAll

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

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

func (*TagSlice) ReloadAll

func (o *TagSlice) 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 (TagSlice) UpdateAll

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

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

Jump to

Keyboard shortcuts

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