🎉 Replace current uuidv1 with custom v8

This commit is contained in:
Andrey Antukh 2022-08-01 13:07:00 +02:00
parent abfca5c89a
commit fbfcb827ed
11 changed files with 212 additions and 105 deletions

View file

@ -34,7 +34,9 @@
[mockery.core :as mk]
[promesa.core :as p]
[yetti.request :as yrq])
(:import org.postgresql.ds.PGSimpleDataSource))
(:import
java.util.UUID
org.postgresql.ds.PGSimpleDataSource))
(def ^:dynamic *system* nil)
(def ^:dynamic *pool* nil)
@ -128,8 +130,8 @@
(defn mk-uuid
[prefix & args]
(uuid/namespaced uuid/zero (apply str prefix args)))
(UUID/nameUUIDFromBytes (-> (apply str prefix args)
(.getBytes "UTF-8"))))
;; --- FACTORIES
(defn create-profile*