mirror of https://github.com/usememos/memos
You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
Replace the custom now() function with an idiomatic `now` timestamp variable (host-injected, frozen once per compile) and retype created_ts/updated_ts/create_time to CEL timestamp. Filters now use standard timestamp/duration arithmetic, e.g. `created_ts >= now - duration("24h")` and `timestamp("2025-01-01T00:00:00Z")`.
Add standard CEL surface that compiles to SQL across SQLite/MySQL/Postgres: timestamp accessors (getFullYear/getMonth/getDate/getDayOfWeek/..., with 0-based month and weekday normalized), ext.Sets() (sets.contains/intersects/equivalent over tags), tags.exists_one(), size() on string fields, and division/modulo folding. A frozen clock is injectable for deterministic tests.
BREAKING CHANGE: now() is removed (use the `now` variable) and time fields are timestamps, so bare-epoch comparisons need timestamp(<epoch>). Existing saved shortcuts using the old syntax must be updated.
|
3 weeks ago | |
|---|---|---|
| .. | ||
| cache | 6 months ago | |
| db | 4 weeks ago | |
| migration | 1 month ago | |
| seed/sqlite | 3 weeks ago | |
| test | 3 weeks ago | |
| attachment.go | 2 months ago | |
| cache.go | ||
| common.go | ||
| driver.go | 2 months ago | |
| idp.go | 4 months ago | |
| inbox.go | 4 months ago | |
| instance_setting.go | 3 months ago | |
| memo.go | 6 months ago | |
| memo_relation.go | 3 months ago | |
| memo_share.go | 3 months ago | |
| migrator.go | 3 months ago | |
| reaction.go | ||
| store.go | 3 months ago | |
| user.go | 2 months ago | |
| user_delete.go | 2 months ago | |
| user_identity.go | 3 months ago | |
| user_setting.go | 1 month ago | |