-
Notifications
You must be signed in to change notification settings - Fork 365
Custom Extensions
Robbie Hanson edited this page Aug 23, 2014
·
9 revisions
It's extensible.
The key/value architecture of YapDatabase is just the foundation for an advanced plugin system. These plugins are called "extensions". YapDatabase ships with a number of helpful extensions. And, naturally, you can write your own.
Extensions are integrated deep into the architecture:
- they have access to sqlite internals
- they can create their own dedicated sqlite tables
- they take part in transactions
- they implement hook methods which are called whenever items are inserted, modified, removed, etc
In order to implement your own custom extension, you'll be overriding 3 base classes:
All the methods that you need to override are private / internal. So they are listed & documented in the implementation files (.m not .h).