Documentation ¶
Overview ¶
Package master contains the sqlite database schema
Index ¶
- Variables
- type DeleteFileByIDParams
- type DeleteHTMLByIDParams
- type DeleteLineByIDParams
- type DeleteSelectorByIDParams
- type DeleteStructByIDParams
- type DeleteTagByIDParams
- type DeleteURLParams
- type Field
- type File
- type GetFileByIDParams
- type GetFileByURIParams
- type GetHTMLByURLParams
- type GetLineByIDParams
- type GetLineByIDRow
- type GetSelectorByIDParams
- type GetSelectorByValueParams
- type GetSelectorsByContextParams
- type GetSelectorsByMinOccurancesParams
- type GetSelectorsByURLParams
- type GetStructByIDParams
- type GetStructByValueParams
- type GetStructsByEndLineIDParams
- type GetStructsByFileIDAndEndLineIDParams
- type GetStructsByFileIDAndStartLineIDParams
- type GetStructsByFileIDParams
- type GetStructsByStartLineEndlineRangeParams
- type GetStructsByStartLineEndlineRangeRow
- type GetStructsByStartLineIDParams
- type GetStructsByValueParams
- type GetTagByFieldIDAndValueParams
- type GetTagByIDParams
- type GetTagByValueParams
- type GetTagsByFieldIDParams
- type GetURLByValueParams
- type Html
- type InsertFileParams
- type InsertHTMLParams
- type InsertLineParams
- type InsertLineRow
- type InsertSelectorParams
- type InsertStructParams
- type InsertTagParams
- type InsertURLParams
- type Line
- type ListAllRow
- type Queries
- func (q *Queries) DeleteFileByID(ctx context.Context, arg DeleteFileByIDParams) error
- func (q *Queries) DeleteHTMLByID(ctx context.Context, arg DeleteHTMLByIDParams) error
- func (q *Queries) DeleteLineByID(ctx context.Context, arg DeleteLineByIDParams) error
- func (q *Queries) DeleteSelectorByID(ctx context.Context, arg DeleteSelectorByIDParams) error
- func (q *Queries) DeleteStructByID(ctx context.Context, arg DeleteStructByIDParams) error
- func (q *Queries) DeleteTagByID(ctx context.Context, arg DeleteTagByIDParams) error
- func (q *Queries) DeleteURL(ctx context.Context, arg DeleteURLParams) error
- func (q *Queries) GetFileByID(ctx context.Context, arg GetFileByIDParams) (*File, error)
- func (q *Queries) GetFileByURI(ctx context.Context, arg GetFileByURIParams) (*File, error)
- func (q *Queries) GetHTMLByURL(ctx context.Context, arg GetHTMLByURLParams) (*Html, error)
- func (q *Queries) GetLineByID(ctx context.Context, arg GetLineByIDParams) (*GetLineByIDRow, error)
- func (q *Queries) GetSelectorByID(ctx context.Context, arg GetSelectorByIDParams) (*Selector, error)
- func (q *Queries) GetSelectorByValue(ctx context.Context, arg GetSelectorByValueParams) (*Selector, error)
- func (q *Queries) GetSelectorsByContext(ctx context.Context, arg GetSelectorsByContextParams) ([]*Selector, error)
- func (q *Queries) GetSelectorsByMinOccurances(ctx context.Context, arg GetSelectorsByMinOccurancesParams) ([]*Selector, error)
- func (q *Queries) GetSelectorsByURL(ctx context.Context, arg GetSelectorsByURLParams) ([]*Selector, error)
- func (q *Queries) GetStructByID(ctx context.Context, arg GetStructByIDParams) (*Struct, error)
- func (q *Queries) GetStructByValue(ctx context.Context, arg GetStructByValueParams) (*Struct, error)
- func (q *Queries) GetStructsByEndLineID(ctx context.Context, arg GetStructsByEndLineIDParams) ([]*Struct, error)
- func (q *Queries) GetStructsByFileID(ctx context.Context, arg GetStructsByFileIDParams) ([]*Struct, error)
- func (q *Queries) GetStructsByFileIDAndEndLineID(ctx context.Context, arg GetStructsByFileIDAndEndLineIDParams) ([]*Struct, error)
- func (q *Queries) GetStructsByFileIDAndStartLineID(ctx context.Context, arg GetStructsByFileIDAndStartLineIDParams) ([]*Struct, error)
- func (q *Queries) GetStructsByStartLineEndlineRange(ctx context.Context, arg GetStructsByStartLineEndlineRangeParams) ([]*GetStructsByStartLineEndlineRangeRow, error)
- func (q *Queries) GetStructsByStartLineID(ctx context.Context, arg GetStructsByStartLineIDParams) ([]*Struct, error)
- func (q *Queries) GetStructsByValue(ctx context.Context, arg GetStructsByValueParams) ([]*Struct, error)
- func (q *Queries) GetTagByFieldIDAndValue(ctx context.Context, arg GetTagByFieldIDAndValueParams) (*Tag, error)
- func (q *Queries) GetTagByID(ctx context.Context, arg GetTagByIDParams) (*Tag, error)
- func (q *Queries) GetTagByValue(ctx context.Context, arg GetTagByValueParams) (*Tag, error)
- func (q *Queries) GetTagsByFieldID(ctx context.Context, arg GetTagsByFieldIDParams) ([]*Tag, error)
- func (q *Queries) GetURLByValue(ctx context.Context, arg GetURLByValueParams) (*Url, error)
- func (q *Queries) InsertFile(ctx context.Context, arg InsertFileParams) (*File, error)
- func (q *Queries) InsertHTML(ctx context.Context, arg InsertHTMLParams) (*Html, error)
- func (q *Queries) InsertLine(ctx context.Context, arg InsertLineParams) (*InsertLineRow, error)
- func (q *Queries) InsertSelector(ctx context.Context, arg InsertSelectorParams) (*Selector, error)
- func (q *Queries) InsertStruct(ctx context.Context, arg InsertStructParams) (*Struct, error)
- func (q *Queries) InsertTag(ctx context.Context, arg InsertTagParams) error
- func (q *Queries) InsertURL(ctx context.Context, arg InsertURLParams) (*Url, error)
- func (q *Queries) ListAll(ctx context.Context) ([]*ListAllRow, error)
- func (q *Queries) ListFiles(ctx context.Context) ([]*File, error)
- func (q *Queries) ListHTMLs(ctx context.Context) ([]*Html, error)
- func (q *Queries) ListLines(ctx context.Context) ([]*Line, error)
- func (q *Queries) ListStructs(ctx context.Context) ([]*Struct, error)
- func (q *Queries) ListTags(ctx context.Context) ([]*Tag, error)
- func (q *Queries) ListURLs(ctx context.Context) ([]*Url, error)
- func (q *Queries) UpdateFileByID(ctx context.Context, arg UpdateFileByIDParams) (*File, error)
- func (q *Queries) UpdateHTMLByID(ctx context.Context, arg UpdateHTMLByIDParams) (*Html, error)
- func (q *Queries) UpdateLineByID(ctx context.Context, arg UpdateLineByIDParams) (*UpdateLineByIDRow, error)
- func (q *Queries) UpdateSelectorByID(ctx context.Context, arg UpdateSelectorByIDParams) error
- func (q *Queries) UpdateStructByID(ctx context.Context, arg UpdateStructByIDParams) (*Struct, error)
- func (q *Queries) UpdateTagByID(ctx context.Context, arg UpdateTagByIDParams) error
- func (q *Queries) UpdateURL(ctx context.Context, arg UpdateURLParams) error
- func (q *Queries) UpsertURL(ctx context.Context, arg UpsertURLParams) (*Url, error)
- func (q *Queries) WithTx(tx *sql.Tx) *Queries
- type Selector
- type Struct
- type Tag
- type UpdateFileByIDParams
- type UpdateHTMLByIDParams
- type UpdateLineByIDParams
- type UpdateLineByIDRow
- type UpdateSelectorByIDParams
- type UpdateStructByIDParams
- type UpdateTagByIDParams
- type UpdateURLParams
- type UpsertURLParams
- type Url
Constants ¶
This section is empty.
Variables ¶
var MasterSchema string
MasterSchema is the schema for the main database
Functions ¶
This section is empty.
Types ¶
type DeleteFileByIDParams ¶
type DeleteFileByIDParams struct {
ID int64 `db:"id" json:"id"`
}
type DeleteHTMLByIDParams ¶
type DeleteHTMLByIDParams struct {
ID int64 `db:"id" json:"id"`
}
type DeleteLineByIDParams ¶
type DeleteLineByIDParams struct {
ID int64 `db:"id" json:"id"`
}
type DeleteSelectorByIDParams ¶
type DeleteSelectorByIDParams struct {
ID int64 `db:"id" json:"id"`
}
type DeleteStructByIDParams ¶
type DeleteStructByIDParams struct {
ID int64 `db:"id" json:"id"`
}
type DeleteTagByIDParams ¶
type DeleteTagByIDParams struct {
ID int64 `db:"id" json:"id"`
}
type DeleteURLParams ¶
type DeleteURLParams struct {
ID int64 `db:"id" json:"id"`
}
type GetFileByIDParams ¶
type GetFileByIDParams struct {
ID int64 `db:"id" json:"id"`
}
type GetFileByURIParams ¶
type GetFileByURIParams struct {
Uri string `db:"uri" json:"uri"`
}
type GetHTMLByURLParams ¶
type GetHTMLByURLParams struct {
Value string `db:"value" json:"value"`
}
type GetLineByIDParams ¶
type GetLineByIDParams struct {
ID int64 `db:"id" json:"id"`
}
type GetLineByIDRow ¶
type GetSelectorByIDParams ¶
type GetSelectorByIDParams struct {
ID int64 `db:"id" json:"id"`
}
type GetSelectorByValueParams ¶
type GetSelectorByValueParams struct {
Value string `db:"value" json:"value"`
}
type GetSelectorsByContextParams ¶
type GetSelectorsByContextParams struct {
Context string `db:"context" json:"context"`
}
type GetSelectorsByURLParams ¶
type GetSelectorsByURLParams struct {
Value string `db:"value" json:"value"`
}
type GetStructByIDParams ¶
type GetStructByIDParams struct {
ID int64 `db:"id" json:"id"`
}
type GetStructByValueParams ¶
type GetStructByValueParams struct {
Value string `db:"value" json:"value"`
}
type GetStructsByEndLineIDParams ¶
type GetStructsByEndLineIDParams struct {
EndLineID int64 `db:"end_line_id" json:"end_line_id"`
}
type GetStructsByFileIDParams ¶
type GetStructsByFileIDParams struct {
FileID int64 `db:"file_id" json:"file_id"`
}
type GetStructsByStartLineEndlineRangeRow ¶
type GetStructsByStartLineEndlineRangeRow struct { ID int64 `db:"id" json:"id"` Value string `db:"value" json:"value"` UrlID int64 `db:"url_id" json:"url_id"` StartLineID int64 `db:"start_line_id" json:"start_line_id"` EndLineID int64 `db:"end_line_id" json:"end_line_id"` FileID int64 `db:"file_id" json:"file_id"` Context string `db:"context" json:"context"` ID_2 int64 `db:"id_2" json:"id_2"` FileID_2 int64 `db:"file_id_2" json:"file_id_2"` Value_2 string `db:"value_2" json:"value_2"` Number int64 `db:"number" json:"number"` ID_3 int64 `db:"id_3" json:"id_3"` FileID_3 int64 `db:"file_id_3" json:"file_id_3"` Value_3 string `db:"value_3" json:"value_3"` Number_2 int64 `db:"number_2" json:"number_2"` }
type GetStructsByStartLineIDParams ¶
type GetStructsByStartLineIDParams struct {
StartLineID int64 `db:"start_line_id" json:"start_line_id"`
}
type GetStructsByValueParams ¶
type GetStructsByValueParams struct {
Value string `db:"value" json:"value"`
}
type GetTagByIDParams ¶
type GetTagByIDParams struct {
ID int64 `db:"id" json:"id"`
}
type GetTagByValueParams ¶
type GetTagByValueParams struct {
Value string `db:"value" json:"value"`
}
type GetTagsByFieldIDParams ¶
type GetTagsByFieldIDParams struct {
FieldID int64 `db:"field_id" json:"field_id"`
}
type GetURLByValueParams ¶
type GetURLByValueParams struct {
Value string `db:"value" json:"value"`
}
type InsertFileParams ¶
type InsertFileParams struct {
Uri string `db:"uri" json:"uri"`
}
type InsertHTMLParams ¶
type InsertHTMLParams struct {
Value string `db:"value" json:"value"`
}
type InsertLineParams ¶
type InsertLineParams struct {
Value string `db:"value" json:"value"`
}
type InsertLineRow ¶
type InsertSelectorParams ¶
type InsertStructParams ¶
type InsertTagParams ¶
type InsertURLParams ¶
type ListAllRow ¶
type Queries ¶
type Queries struct {
// contains filtered or unexported fields
}
Queries is the object to use to interact with the database.
func (*Queries) DeleteFileByID ¶
func (q *Queries) DeleteFileByID(ctx context.Context, arg DeleteFileByIDParams) error
DeleteFileByID
DELETE FROM files WHERE id = ?
func (*Queries) DeleteHTMLByID ¶
func (q *Queries) DeleteHTMLByID(ctx context.Context, arg DeleteHTMLByIDParams) error
DeleteHTMLByID
DELETE FROM htmls WHERE id = ?
func (*Queries) DeleteLineByID ¶
func (q *Queries) DeleteLineByID(ctx context.Context, arg DeleteLineByIDParams) error
DeleteLineByID
DELETE FROM lines WHERE id = ?
func (*Queries) DeleteSelectorByID ¶
func (q *Queries) DeleteSelectorByID(ctx context.Context, arg DeleteSelectorByIDParams) error
DeleteSelectorByID
DELETE FROM selectors WHERE id = ?
func (*Queries) DeleteStructByID ¶
func (q *Queries) DeleteStructByID(ctx context.Context, arg DeleteStructByIDParams) error
DeleteStructByID
DELETE FROM structs WHERE id = ?
func (*Queries) DeleteTagByID ¶
func (q *Queries) DeleteTagByID(ctx context.Context, arg DeleteTagByIDParams) error
DeleteTagByID
DELETE FROM tags WHERE id = ?
func (*Queries) DeleteURL ¶
func (q *Queries) DeleteURL(ctx context.Context, arg DeleteURLParams) error
DeleteURL
DELETE FROM urls WHERE id = ?
func (*Queries) GetFileByID ¶
GetFileByID
SELECT id, uri, updated_at, created_at FROM files WHERE id = ? LIMIT 1
func (*Queries) GetFileByURI ¶
GetFileByURI
SELECT id, uri, updated_at, created_at FROM files WHERE uri = ?
func (*Queries) GetHTMLByURL ¶
GetHTMLByURL
SELECT htmls.id, htmls.value, htmls.updated_at, htmls.created_at FROM htmls JOIN urls ON urls.html_id = htmls.id WHERE urls.value = ?
func (*Queries) GetLineByID ¶
func (q *Queries) GetLineByID(ctx context.Context, arg GetLineByIDParams) (*GetLineByIDRow, error)
GetLineByID
SELECT id, value, number FROM lines WHERE id = ?
func (*Queries) GetSelectorByID ¶
func (q *Queries) GetSelectorByID(ctx context.Context, arg GetSelectorByIDParams) (*Selector, error)
GetSelectorByID
SELECT id, value, url_id, occurances, context FROM selectors WHERE id = ?
func (*Queries) GetSelectorByValue ¶
func (q *Queries) GetSelectorByValue(ctx context.Context, arg GetSelectorByValueParams) (*Selector, error)
GetSelectorByValue
SELECT id, value, url_id, occurances, context FROM selectors WHERE value = ?
func (*Queries) GetSelectorsByContext ¶
func (q *Queries) GetSelectorsByContext(ctx context.Context, arg GetSelectorsByContextParams) ([]*Selector, error)
GetSelectorsByContext
SELECT id, value, url_id, occurances, context FROM selectors WHERE context = ?
func (*Queries) GetSelectorsByMinOccurances ¶
func (q *Queries) GetSelectorsByMinOccurances(ctx context.Context, arg GetSelectorsByMinOccurancesParams) ([]*Selector, error)
GetSelectorsByMinOccurances
SELECT selectors.id, selectors.value, selectors.url_id, selectors.occurances, selectors.context FROM selectors JOIN urls ON urls.id = selectors.url_id WHERE selectors.occurances >= ? AND urls.value LIKE ?
func (*Queries) GetSelectorsByURL ¶
func (q *Queries) GetSelectorsByURL(ctx context.Context, arg GetSelectorsByURLParams) ([]*Selector, error)
GetSelectorsByURL
SELECT selectors.id, selectors.value, selectors.url_id, selectors.occurances, selectors.context FROM selectors JOIN urls ON urls.id = selectors.url_id WHERE urls.value = ?
func (*Queries) GetStructByID ¶
GetStructByID
SELECT id, value, url_id, start_line_id, end_line_id, file_id, context FROM structs WHERE id = ?
func (*Queries) GetStructByValue ¶
func (q *Queries) GetStructByValue(ctx context.Context, arg GetStructByValueParams) (*Struct, error)
GetStructByValue
SELECT id, value, url_id, start_line_id, end_line_id, file_id, context FROM structs WHERE value = ?
func (*Queries) GetStructsByEndLineID ¶
func (q *Queries) GetStructsByEndLineID(ctx context.Context, arg GetStructsByEndLineIDParams) ([]*Struct, error)
GetStructsByEndLineID
SELECT id, value, url_id, start_line_id, end_line_id, file_id, context FROM structs WHERE end_line_id = ?
func (*Queries) GetStructsByFileID ¶
func (q *Queries) GetStructsByFileID(ctx context.Context, arg GetStructsByFileIDParams) ([]*Struct, error)
GetStructsByFileID
SELECT id, value, url_id, start_line_id, end_line_id, file_id, context FROM structs WHERE file_id = ?
func (*Queries) GetStructsByFileIDAndEndLineID ¶
func (q *Queries) GetStructsByFileIDAndEndLineID(ctx context.Context, arg GetStructsByFileIDAndEndLineIDParams) ([]*Struct, error)
GetStructsByFileIDAndEndLineID
SELECT id, value, url_id, start_line_id, end_line_id, file_id, context FROM structs WHERE file_id = ? AND end_line_id = ?
func (*Queries) GetStructsByFileIDAndStartLineID ¶
func (q *Queries) GetStructsByFileIDAndStartLineID(ctx context.Context, arg GetStructsByFileIDAndStartLineIDParams) ([]*Struct, error)
GetStructsByFileIDAndStartLineID
SELECT id, value, url_id, start_line_id, end_line_id, file_id, context FROM structs WHERE file_id = ? AND start_line_id = ?
func (*Queries) GetStructsByStartLineEndlineRange ¶
func (q *Queries) GetStructsByStartLineEndlineRange(ctx context.Context, arg GetStructsByStartLineEndlineRangeParams) ([]*GetStructsByStartLineEndlineRangeRow, error)
GetStructsByStartLineEndlineRange
SELECT structs.id, structs.value, url_id, start_line_id, end_line_id, structs.file_id, context, lines.id, lines.file_id, lines.value, lines.number, lines2.id, lines2.file_id, lines2.value, lines2.number FROM structs JOIN lines ON lines.id = structs.start_line_id JOIN lines AS lines2 ON lines2.id = structs.end_line_id WHERE lines.number <= ? AND lines2.number >= ?
func (*Queries) GetStructsByStartLineID ¶
func (q *Queries) GetStructsByStartLineID(ctx context.Context, arg GetStructsByStartLineIDParams) ([]*Struct, error)
GetStructsByStartLineID
SELECT id, value, url_id, start_line_id, end_line_id, file_id, context FROM structs WHERE start_line_id = ?
func (*Queries) GetStructsByValue ¶
func (q *Queries) GetStructsByValue(ctx context.Context, arg GetStructsByValueParams) ([]*Struct, error)
GetStructsByValue
SELECT id, value, url_id, start_line_id, end_line_id, file_id, context FROM structs WHERE value = ?
func (*Queries) GetTagByFieldIDAndValue ¶
func (q *Queries) GetTagByFieldIDAndValue(ctx context.Context, arg GetTagByFieldIDAndValueParams) (*Tag, error)
GetTagByFieldIDAndValue
SELECT id, value, start, "end", line_id, field_id FROM tags WHERE field_id = ? AND value = ?
func (*Queries) GetTagByID ¶
GetTagByID
SELECT id, value, start, "end", line_id, field_id FROM tags WHERE id = ?
func (*Queries) GetTagByValue ¶
GetTagByValue
SELECT id, value, start, "end", line_id, field_id FROM tags WHERE value = ?
func (*Queries) GetTagsByFieldID ¶
GetTagsByFieldID
SELECT id, value, start, "end", line_id, field_id FROM tags WHERE field_id = ?
func (*Queries) InsertFile ¶
InsertFile
INSERT INTO files (uri) VALUES (?) RETURNING id, uri, updated_at, created_at
func (*Queries) InsertHTML ¶
InsertHTML
INSERT OR IGNORE INTO htmls (value) VALUES (?) RETURNING id, value, updated_at, created_at
func (*Queries) InsertLine ¶
func (q *Queries) InsertLine(ctx context.Context, arg InsertLineParams) (*InsertLineRow, error)
InsertLine
INSERT INTO lines (value) VALUES (?) RETURNING id, value, number
func (*Queries) InsertSelector ¶
**************************************************************************** ****************************************************************************
/* ** selectors.sql ** Description: This file contains the SQLite queries for the selectors table ** Dialect: sqlite3 */ INSERT INTO selectors (value, url_id, context, occurances) VALUES (?, ?, ?, ?) RETURNING id, value, url_id, occurances, context
func (*Queries) InsertStruct ¶
InsertStruct
INSERT INTO structs (file_id, start_line_id, end_line_id, value) VALUES (?, ?, ?, ?) RETURNING id, value, url_id, start_line_id, end_line_id, file_id, context
func (*Queries) InsertTag ¶
func (q *Queries) InsertTag(ctx context.Context, arg InsertTagParams) error
InsertTag
INSERT INTO tags (value, start, end, line_id, field_id) VALUES (?, ?, ?, ?, ?)
func (*Queries) InsertURL ¶
InsertURL
INSERT OR IGNORE INTO urls (value, html_id) VALUES (?, ?) RETURNING id, value, html_id
func (*Queries) ListAll ¶
func (q *Queries) ListAll(ctx context.Context) ([]*ListAllRow, error)
ListAll
SELECT urls.id, urls.value, htmls.value as html, selectors.value as selector FROM urls JOIN htmls ON urls.html_id = htmls.id JOIN selectors ON urls.id = selectors.url_id
func (*Queries) ListFiles ¶
****************************************************************************
/* ** File: files.sql ** Description: This file contains the SQLite queries for the files table ** Dialect: sqlite3 */ SELECT id, uri, updated_at, created_at from files
func (*Queries) ListHTMLs ¶
**************************************************************************** ****************************************************************************
/* ** File: htmls.sql ** Description: This file contains the SQLite queries for the htmls table ** Dialect: sqlite3 */ SELECT id, value, updated_at, created_at from htmls
func (*Queries) ListLines ¶
**************************************************************************** ****************************************************************************
/* ** File: lines.sql ** Description: This file contains the SQLite queries for the lines table ** Dialect: sqlite3 */ SELECT id, file_id, value, number from lines
func (*Queries) ListStructs ¶
**************************************************************************** ****************************************************************************
/* ** File: structs.sql ** Description: This file contains the SQLite queries for the structs table ** Dialect: sqlite3 */ SELECT id, value, url_id, start_line_id, end_line_id, file_id, context from structs
func (*Queries) ListTags ¶
**************************************************************************** ****************************************************************************
/* ** File: tags.sql ** Description: This file contains the SQLite queries for the tags table ** Dialect: sqlite3 */ SELECT id, value, start, "end", line_id, field_id from tags
func (*Queries) ListURLs ¶
****************************************************************************
/* ** File: urls.sql ** Description: This file contains the SQLite queries for the urls table ** Dialect: sqlite3 */ SELECT id, value, html_id from urls
func (*Queries) UpdateFileByID ¶
UpdateFileByID
UPDATE files SET uri = ? WHERE id = ? RETURNING id, uri, updated_at, created_at
func (*Queries) UpdateHTMLByID ¶
UpdateHTMLByID
UPDATE htmls SET value = ? WHERE id = ? RETURNING id, value, updated_at, created_at
func (*Queries) UpdateLineByID ¶
func (q *Queries) UpdateLineByID(ctx context.Context, arg UpdateLineByIDParams) (*UpdateLineByIDRow, error)
UpdateLineByID
UPDATE lines SET value = ? WHERE id = ? RETURNING id, value, number
func (*Queries) UpdateSelectorByID ¶
func (q *Queries) UpdateSelectorByID(ctx context.Context, arg UpdateSelectorByIDParams) error
UpdateSelectorByID
UPDATE selectors SET value = ?, url_id = ?, context = ?, occurances = ? WHERE id = ?
func (*Queries) UpdateStructByID ¶
func (q *Queries) UpdateStructByID(ctx context.Context, arg UpdateStructByIDParams) (*Struct, error)
UpdateStructByID
UPDATE structs SET value = ?, start_line_id = ?, end_line_id = ? WHERE id = ? RETURNING id, value, url_id, start_line_id, end_line_id, file_id, context
func (*Queries) UpdateTagByID ¶
func (q *Queries) UpdateTagByID(ctx context.Context, arg UpdateTagByIDParams) error
UpdateTagByID
UPDATE tags SET value = ?, start = ?, end = ?, line_id = ?, field_id = ? WHERE id = ?
func (*Queries) UpdateURL ¶
func (q *Queries) UpdateURL(ctx context.Context, arg UpdateURLParams) error
UpdateURL
UPDATE urls SET value = ?, html_id = ? WHERE id = ?
type Struct ¶
type Struct struct { ID int64 `db:"id" json:"id"` Value string `db:"value" json:"value"` UrlID int64 `db:"url_id" json:"url_id"` StartLineID int64 `db:"start_line_id" json:"start_line_id"` EndLineID int64 `db:"end_line_id" json:"end_line_id"` FileID int64 `db:"file_id" json:"file_id"` Context string `db:"context" json:"context"` }