sqlite

package
v3.2.9 Latest Latest
Warning

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

Go to latest
Published: Jan 3, 2026 License: MIT Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CloseX

func CloseX()

func Count

func Count() int64

func CountFiltered added in v3.2.0

func CountFiltered(severity, keyword string) (int64, error)

func GetByID added in v3.2.0

func GetByID(id string, expandPoc, expandResult bool) (db2.ResultData, error)

新增:按ID查询报告详情,按需展开

func InitX

func InitX() error

func InsertResultAndReturnID added in v3.2.2

func InsertResultAndReturnID(r *result.Result) (int64, error)

InsertResultAndReturnID 同步写入一条结果并返回插入的主键 id(带锁冲突重试)

func InsertResultWithTaskID added in v3.2.7

func InsertResultWithTaskID(r *result.Result, taskID string) (int64, error)

func NewWebSqliteDB added in v3.0.6

func NewWebSqliteDB() error

func SelectPage added in v3.2.0

func SelectPage(severity, keyword string, page, pageSize int, expandPoc, expandResult bool) ([]db2.ResultData, error)

调整:分页查询(支持 page/pageSize、大小写不敏感的 severity;按需展开大字段)

func SelectX

func SelectX(severity, keyword, page string) ([]db2.ResultData, error)

func SetResultX

func SetResultX(result *result.Result)

Types

This section is empty.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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