- Database processing with object without SQL.
- Download
MDObjectDatabaseand try run example app
- Installation with CocoaPods
source 'https://github.com/Modool/cocoapods-specs.git'
platform :ios, '8.0'
target 'TargetName' do
pod 'MDObjectDatabase', '~> 1.0.0'
end
- Installation with Carthage
github "Modool/MDObjectDatabase" ~> 1.0.0
- Manual Import
drag “MDObjectDatabase” directory into your project
- Requires ARC
- Depend on FMDB
-
MDDatabaseCenterTo distribute Database. -
MDDatabaseTo manage FMDB queue, table infos, configuratinos, compats and process SQL. -
MDDConfigurationObject configuration contained properties mapper, indexes and database key parameters. -
MDDCompatTo request an compat permission from outside for table column or index differences. -
MDDColumnConfigurationConfiguration of database column. -
MDDTableInfoTo manage properties of class and columns, indexes of database. -
MDDColumnDatabase column info contained key parameters. -
MDDIndexDatabase indexes info.
-
MDDAccessorTo process database operation with MDDProcessor instance in dispatch queue, support to asynchronize and synchronize. -
MDDatabase+MDDAccessorTo request an accessor from database. -
MDDProcessorNormal database operation, such as query, delete, insert, update, and so on. -
MDDCoreProcessorThe core processor for processing SQL
MDDDescriptorThe base class to describe property.-
MDDConditionDescriptor of database condition, to describe the relationship between key and value. -
MDDConditionSetDescriptor of multiple database conditions, support to nest with set. -
MDDCondition+MDDConditionSetCondition operations. -
MDDSetterDescriptor of database updating setter item, likekey1=value1,key2=value2and full description likeSET key1=value1, key2=value2. -
MDDInsertSetterDescriptor of database inserting setter item, full description like(key1, key2, key3) VALUES(value1, value2, value3). -
MDDSortDescriptor of database sort item, likekey1 ASC, sometime maybe multiple sorts likekey1 ASC, key2 DESC. -
MDDQueryDescriptor of database QUERY with keys, conditions and sorts, likeSELECT keys WHERE conditions ORDER BY sorts LIMIT range. -
MDDUpdaterDescriptor of database UPDATE with setters and conditions, likeUPDATE SET key1=value1, key2=value2 WHERE conditions. -
MDDInserterDescriptor of database INSERT with insert-setters and conditions, likeINSERT INTO (keys) VALUES(values) WHERE conditions. -
MDDDeleterDescriptor of database DELETE with conditions, likeDELETE FROM table_name WHERE conditions. -
MDDFunctionQueryDescriptor of database FUNCTION(such as SUM, MAX, MIN, COUNT, AVERAGE) with conditions, likeSELECT function(key) AS alias FROM table_name WHERE conditions.
-
MDDTokenDescriptionDescription with values and SQL using?to replace value.
- Demo FYI
- 2017.7.30 Add README and adjust project class name.
MDDatabase is released under the MIT license. See LICENSE for details.
Article support if you want to see more extension or demo. Go.


