0

Sorry, but I'm new in Swift and I stuck

let timestamp = Table("time_stamps")
let t_tabelle = Expression<String>("tabelle")
let t_stamp = Expression<String>("TIME_STAMP")

let stmt = timestamp.filter(t_tabelle == "member")

print ("Stamp: \(stmt[t_stamp]) ")

Output is:

Stamp: Expression(template: "\"timestamp\".\"TIME_STAMP\"",bindings: [])

How will I get the items of filtered table?

thanks fro help chazon

Tomasz Jakub Rup
  • 10,502
  • 7
  • 48
  • 49
chazon
  • 1
  • 1

1 Answers1

0

Try adding this;

    for aTimeStampEntry in try db.prepare( timestamp.select(t_tabelle, t_stamp))
    {
        ....

    }
john elemans
  • 2,578
  • 2
  • 15
  • 26