Changeset 0.17.1 (#76)
This commit is contained in:
10
server/store/id.go
Normal file
10
server/store/id.go
Normal file
@@ -0,0 +1,10 @@
|
||||
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()
|
||||
}
|
||||
Reference in New Issue
Block a user