Use type aliasing to forward types from internal/jet.

This commit is contained in:
go-jet 2019-09-26 11:44:46 +02:00
parent 4309b59975
commit b646dd2c99
9 changed files with 49 additions and 67 deletions

View file

@ -85,9 +85,11 @@ func TestDeleteQueryContext(t *testing.T) {
func TestDeleteExecContext(t *testing.T) {
initForDeleteTest(t)
list := []Expression{String("Gmail"), String("Outlook")}
deleteStmt := Link.
DELETE().
WHERE(Link.Name.IN(String("Gmail"), String("Outlook")))
WHERE(Link.Name.IN(list...))
ctx, cancel := context.WithTimeout(context.Background(), 1*time.Microsecond)
defer cancel()