Skip to content

Commit

Permalink
Test AllColumnsExcluding and Table
Browse files Browse the repository at this point in the history
  • Loading branch information
groue committed Jan 19, 2025
1 parent 96c9eb5 commit 37ea21e
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions Tests/GRDBTests/TableTests.swift
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,12 @@ class TableTests: GRDBTestCase {
try assertEqualSQL(db, t.select([Column("id"), Column("name")]), """
SELECT "id", "name" FROM "player"
""")
try assertEqualSQL(db, t.select(.allColumns), """
SELECT * FROM "player"
""")
try assertEqualSQL(db, t.select(.allColumns(excluding: ["name"])), """
SELECT "id" FROM "player"
""")
try assertEqualSQL(db, t.select(sql: "id, ?", arguments: ["O'Brien"]), """
SELECT id, 'O''Brien' FROM "player"
""")
Expand Down

0 comments on commit 37ea21e

Please sign in to comment.