stephencelis / SQLite.swift

A type-safe, Swift-language layer over SQLite3.
MIT License
9.67k stars 1.56k forks source link

Ambiguous reference to member '<-' #958

Closed Sannaraek closed 4 years ago

Sannaraek commented 4 years ago

I am getting the error "Ambiguous reference to member '<-' " when i try to add a data to a row in my databse

try db.run(scheduleDetail.insert(shour <- Int64(hourData), sday <- Int64(dayData)))

Sannaraek commented 4 years ago

solved by declaring the DB connection locally rather then globally wrapped.