SQLite.swift foreign_keys 问题

why foreign_keys not work.Cause you mother fuck need to add some code.

        db = try! Connection()
        try! db.execute("PRAGMA foreign_keys = ON;")

Link :https://github.com/stephencelis/SQLite.swift/issues/757

image.png

See it , it took me hours on.

你可能感兴趣的:(SQLite.swift foreign_keys 问题)