akring / ObjectSQLite

基于SQLite.swift封装的数据库存储组件
1 stars 1 forks source link

i get nil for let buff = class_copyPropertyList(object_getClass(self), count) #4

Open al1020119 opened 5 years ago

al1020119 commented 5 years ago

数据库路径: /Users/iCocos/Library/Developer/CoreSimulator/Devices/49A48B9E-A5C4-4757-AEBC-367AC6EB82B8/data/Containers/Data/Application/C7369011-E483-4F8E-AD23-C04FFA5B6E85/Documents/DefaultDB.sqlite3 Create Table failed 数据插入操作结果:false Insert value failed fetch data failed fetch data failed

al1020119 commented 5 years ago

it`s done

class TestModel: NSObject {

@objc var name: String = ""
@objc var age: String = ""
@objc var gender: String = ""
@objc var job: Array<String> = Array()
@objc var infomation: Dictionary<String,Any> = Dictionary()

}