Merge branch 'main' into feat/9053-list-users-by-meta

This commit is contained in:
Marco A.
2025-08-08 11:18:34 +02:00
committed by GitHub
191 changed files with 18145 additions and 3294 deletions

View File

@@ -675,6 +675,9 @@ type TimestampQuery struct {
}
func NewTimestampQuery(c Column, value time.Time, compare TimestampComparison) (*TimestampQuery, error) {
if c.isZero() {
return nil, ErrMissingColumn
}
return &TimestampQuery{
Column: c,
Compare: compare,

View File

@@ -362,6 +362,10 @@ func NewCreationDateQuery(datetime time.Time, compare TimestampComparison) (Sear
return NewTimestampQuery(SessionColumnCreationDate, datetime, compare)
}
func NewExpirationDateQuery(datetime time.Time, compare TimestampComparison) (SearchQuery, error) {
return NewTimestampQuery(SessionColumnExpiration, datetime, compare)
}
func prepareSessionQuery() (sq.SelectBuilder, func(*sql.Row) (*Session, string, error)) {
return sq.Select(
SessionColumnID.identifier(),