error: unsatisfiable
如果在執(zhí)行swift build 安裝新加的框架時,遇到這個錯誤,就說明你剛添加的框架版本已經(jīng)沒有了
可以直接到git 查找這個框架
vapor中主線程是不允許使用的,當(dāng)在vapor中使用Alamofire時,是永遠(yuǎn)也不會返回結(jié)果的
PostgreSQL Error: ERROR: column "id" does not exist\nLINE 1: ...me", "name") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING id\n ^\n\n\nIdentifier: PostgreSQL.PostgreSQLError.42703 (undefinedColumn)
上面那個錯誤是因為找不到相應(yīng)的id才會出錯的,檢查你的model里,在創(chuàng)建數(shù)據(jù)庫時,是否加了model.id()。
在添加上了以后還要把數(shù)據(jù)庫里的這個表給刪除`drop table mode表`,還要到表`fluent`里刪除相關(guān)數(shù)據(jù)--`delete from fluent where "name"='model';`