mirror of
https://gitea.invidious.io/iv-org/shard-crystal-db.git
synced 2024-08-15 00:53:32 +00:00
Allow passing named arguments to DB.mapping
This commit is contained in:
parent
8a913d1ef2
commit
1a4622ee59
1 changed files with 3 additions and 0 deletions
|
@ -138,4 +138,7 @@ module DB
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
macro mapping(**properties)
|
||||||
|
::DB.mapping({{properties}})
|
||||||
|
end
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in a new issue