stephencelis / SQLite.swift

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

How can I create nested table #1198

Open vakhileshwar opened 1 year ago

vakhileshwar commented 1 year ago

I have a Model like class Person: Identifiable { public var id: Int64 = 0 public var name: String = "" public var downline: [Person] = [Person]() }

How can I create table person where one of the column downline represents Persons table