SwpFMDB Class Reference

Inherits from SwpFMDBBase : NSObject
Declared in SwpFMDB.h
SwpFMDB.m

Overview

———————- Tool ———————-

Other Methods

– swpFMDBExecuteVerifyThatTheTableExists:

swpFMDBExecuteVerifyThatTheTableExists: ( 验证数据库中 ‘表’ 是否存在 )

- (BOOL)swpFMDBExecuteVerifyThatTheTableExists:(Class)modelClass

Parameters

modelClass

modelClass

Return Value

BOOL

Discussion

@author swp_song

Declared In

SwpFMDB.h

– swpFMDBCreateTable:swpFMDBExecutionUpdateComplete:

swpFMDBCreateTable:swpFMDBExecutionUpdateComplete: ( 创建数据库中 ‘表’ )

- (void)swpFMDBCreateTable:(Class)modelClass swpFMDBExecutionUpdateComplete:(SwpFMDBExecutionUpdateComplete)swpFMDBExecutionUpdateComplete

Parameters

modelClass

modelClass modelClass

swpFMDBExecutionUpdateComplete

swpFMDBExecutionUpdateComplete

Discussion

@author swp_song

Declared In

SwpFMDB.h

– swpFMDBInsertModel:swpFMDBExecutionUpdateComplete:

swpFMDBInsertModel:swpFMDBExecutionUpdateComplete: ( 插入单条数据 )

- (void)swpFMDBInsertModel:(id)model swpFMDBExecutionUpdateComplete:(SwpFMDBExecutionUpdateComplete)swpFMDBExecutionUpdateComplete

Parameters

model

model

swpFMDBExecutionUpdateComplete

swpFMDBExecutionUpdateComplete

Discussion

@author swp_song

Declared In

SwpFMDB.h

– swpFMDBInsertModels:swpFMDBExecutionUpdateComplete:

swpFMDBInsertModels:swpFMDBExecutionUpdateComplete: ( 插入一组数据 )

- (void)swpFMDBInsertModels:(NSArray *)models swpFMDBExecutionUpdateComplete:(SwpFMDBExecutionUpdateComplete)swpFMDBExecutionUpdateComplete

Parameters

models

models

swpFMDBExecutionUpdateComplete

swpFMDBExecutionUpdateComplete

Discussion

@author swp_song

Declared In

SwpFMDB.h

– swpFMDBUpdateModel:swpFMDBExecutionUpdateComplete:

swpFMDBUpdateModel:swpFMDBExecutionUpdateComplete: ( 更新单条数据 )

- (void)swpFMDBUpdateModel:(id)model swpFMDBExecutionUpdateComplete:(SwpFMDBExecutionUpdateComplete)swpFMDBExecutionUpdateComplete

Parameters

model

model

swpFMDBExecutionUpdateComplete

swpFMDBExecutionUpdateComplete

Discussion

@author swp_song

Declared In

SwpFMDB.h

– swpFMDBUpdateModels:swpFMDBExecutionUpdateComplete:

swpFMDBUpdateModels:swpFMDBExecutionUpdateComplete: ( 更新一组数据 )

- (void)swpFMDBUpdateModels:(NSArray *)models swpFMDBExecutionUpdateComplete:(SwpFMDBExecutionUpdateComplete)swpFMDBExecutionUpdateComplete

Parameters

models

models

swpFMDBExecutionUpdateComplete

swpFMDBExecutionUpdateComplete

Discussion

@author swp_song

Declared In

SwpFMDB.h

– swpFMDBSelectModel:bySwpDBID:swpFMDBExecutionSelectModelComplete:

swpFMDBSelectModel:bySwpDBID:swpFMDBExecutionSelectModelComplete: ( 查询单条数据 )

- (void)swpFMDBSelectModel:(Class)modelClass bySwpDBID:(NSString *)swpDBID swpFMDBExecutionSelectModelComplete:(SwpFMDBExecutionSelectModelComplete)swpFMDBExecutionSelectModelComplete

Parameters

modelClass

modelClass

swpDBID

swpDBID

swpFMDBExecutionSelectModelComplete

swpFMDBExecutionSelectModelComplete

Discussion

@author swp_song

Declared In

SwpFMDB.h

– swpFMDBSelectModels:swpFMDBExecutionSelectModelsComplete:

swpFMDBSelectModels:swpFMDBExecutionSelectModelsComplete: ( 查询全部数据 )

- (void)swpFMDBSelectModels:(Class)modelClass swpFMDBExecutionSelectModelsComplete:(SwpFMDBExecutionSelectModelsComplete)swpFMDBExecutionSelectModelsComplete

Parameters

modelClass

modelClass

swpFMDBExecutionSelectModelsComplete

swpFMDBExecutionSelectModelsComplete

Discussion

@author swp_song

Declared In

SwpFMDB.h

– swpFMDBDelegateModel:swpFMDBExecutionUpdateComplete:

swpFMDBDelegateModel:swpFMDBExecutionUpdateComplete: ( 删除单条数据 )

- (void)swpFMDBDelegateModel:(id)model swpFMDBExecutionUpdateComplete:(SwpFMDBExecutionUpdateComplete _Nullable)swpFMDBExecutionUpdateComplete

Parameters

model

model

swpFMDBExecutionUpdateComplete

swpFMDBExecutionUpdateComplete

Discussion

@author swp_song

Declared In

SwpFMDB.h

– swpFMDBDelegateModels:swpFMDBExecutionUpdateComplete:

swpFMDBDelegateModels:swpFMDBExecutionUpdateComplete: ( 删除一组数据 )

- (void)swpFMDBDelegateModels:(NSArray *)models swpFMDBExecutionUpdateComplete:(SwpFMDBExecutionUpdateComplete _Nullable)swpFMDBExecutionUpdateComplete

Parameters

models

models

swpFMDBExecutionUpdateComplete

swpFMDBExecutionUpdateComplete

Discussion

@author swp_song

Declared In

SwpFMDB.h

– swpFMDBClearModel:swpFMDBExecutionUpdateComplete:

swpFMDBClearModel:swpFMDBExecutionUpdateComplete: ( 清空全部数据 )

- (void)swpFMDBClearModel:(Class)modelsClass swpFMDBExecutionUpdateComplete:(SwpFMDBExecutionUpdateComplete _Nullable)swpFMDBExecutionUpdateComplete

Parameters

modelsClass

modelsClass

swpFMDBExecutionUpdateComplete

swpFMDBExecutionUpdateComplete

Discussion

@author swp_song

Declared In

SwpFMDB.h

– swpFMDBDeleteTable:swpFMDBExecutionUpdateComplete:

swpFMDBDeleteTable:swpFMDBExecutionUpdateComplete: ( 删除表 )

- (void)swpFMDBDeleteTable:(Class)table swpFMDBExecutionUpdateComplete:(SwpFMDBExecutionUpdateComplete)swpFMDBExecutionUpdateComplete

Parameters

table

table

swpFMDBExecutionUpdateComplete

swpFMDBExecutionUpdateComplete

Discussion

@author swp_song

Declared In

SwpFMDB.h

– swpFMDBSelectTest

swpFMDBSelectTest: ( 测试方法 )

- (void)swpFMDBSelectTest

Discussion

@author swp_song

Declared In

SwpFMDB.h

Other Methods

– swpFMDBInTransaction:

swpFMDBInTransaction:block ( 开启事务 )

- (void)swpFMDBInTransaction:(void ( ^ ) ( SwpFMDB *swpFMDB , FMDatabase *dataBase , BOOL *rollback ))block

Parameters

block

block

Discussion

@author swp_song

Declared In

SwpFMDB.m