-
Notifications
You must be signed in to change notification settings - Fork 15
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
YapDB.View public API missing the useful bits #67
Comments
Going further down the rabbit hole I'm finding |
Hi @aranasaurus - sorry just getting back to this. I can see that let fetch: YapDB.Fetch = .View(myView)
let database = YapDB.databaseNamed("MyApp.sqlite") { db in
// Ensure that nothing inside this block attempts to access `database`
// as it will cause a deadlock.
db.registerExtension(YapDatabaseRelationship(), withName: "relationships")
// Register default extensions
let views: [YapDB.Fetch] = [
Reminder.fetch,
Person.view,
Person.search
]
views.forEach { $0.registerInDatabase(db) }
} |
Thanks @danthorpe. I wrote an extension on |
Okay, thanks @aranasaurus - although my comment was more about the availability of the I'm going to circle back to address the |
I knew you were referring to the Anyway, long story short, I like the idea of adding the APIs to |
Okay, sounds good, we're on the same page. |
I may just be missing something and this is supposed to be used from elsewhere or something, but none of the pieces of the YapDB.View api that would let me register it with YapDatabase are marked public, they're all internal.
.object
on the enum is not publiccreateDatabaseView()
is not publicregisterInDatabase()
is not publicThe text was updated successfully, but these errors were encountered: