Tricks for namespaced and weird keywords

#:person{:first "Han"
         :last "Solo"
         :ship #:ship{:name "Millenium Falcon"
                      :model "YT-1300f light freighter"}}
is read as:
{:person/first "Han"
 :person/last "Solo"
 :person/ship {:ship/name "Millenium Falcon"
               :ship/model "YT-1300f light freighter"}}
Also you can use this syntax

(keyword :counters :fb) -> :counters/fb

And to use spatial characters like :last_insert_rowid() from return value of Korma insert sql statement, I've found that way

(keyword "last_insert_rowid()") -> :last_insert_rowid()

Комментарии

Популярные сообщения из этого блога

Это пять!