Versions in this module Expand all Collapse all v0 v0.3.0 May 28, 2025 Changes in this version + type DbParams struct + DatabaseFilePath string + DoMigration bool + Logger *log.Logger + type DbRow struct + Component string + Message string + Original string + RowId int + Time rfc3339.DateTime + Version int + type InsertTuple struct + ParsedLog *v0.LineEnvelope + Source string + type LogsDatabase struct + Connection *sql.DB + DatabaseFile string + func New(params DbParams) (*LogsDatabase, error) + func (l *LogsDatabase) BatchInsert(tuples []InsertTuple) error + func (l *LogsDatabase) Close() + func (l *LogsDatabase) GetAllLogs() (*SelectResult, error) + func (l *LogsDatabase) Insert(tuple InsertTuple) error + func (l *LogsDatabase) MigrateUp() error + func (l *LogsDatabase) Search(term string) (*SelectResult, error) + func (l *LogsDatabase) Select(limit int, clause string) (*SelectResult, error) + type SelectResult struct + EndRowId int + Rows []SelectedRow + StartRowId int + func (s *SelectResult) ToLines() []common.Envelope + type SelectedRow struct + Original string + RowId int