mirror of
https://github.com/ash-project/ash_sqlite.git
synced 2024-09-19 21:03:01 +12:00
15 lines
324 B
Elixir
15 lines
324 B
Elixir
|
defmodule AshSqlite.Test.TypeTest do
|
||
|
use AshSqlite.RepoCase, async: false
|
||
|
alias AshSqlite.Test.{Api, Post}
|
||
|
|
||
|
require Ash.Query
|
||
|
|
||
|
test "uuids can be used as strings in fragments" do
|
||
|
uuid = Ash.UUID.generate()
|
||
|
|
||
|
Post
|
||
|
|> Ash.Query.filter(fragment("? = ?", id, type(^uuid, :uuid)))
|
||
|
|> Api.read!()
|
||
|
end
|
||
|
end
|