This repository has been archived on 2026-04-03. You can view files and clone it. You cannot open issues or pull requests or push a commit.
Files
core/server/store/id.go
2026-02-28 01:40:31 +00:00

11 lines
282 B
Go

package store
import "github.com/google/uuid"
// NewID generates a new UUID string.
// Used by SQLite stores where gen_random_uuid() is not available.
// Also usable by Postgres stores — application-side IDs are always valid.
func NewID() string {
return uuid.New().String()
}