Skip to content
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

swift工程下创建数据库异常 #33

Open
yujianfeikong opened this issue Nov 2, 2016 · 1 comment
Open

swift工程下创建数据库异常 #33

yujianfeikong opened this issue Nov 2, 2016 · 1 comment

Comments

@yujianfeikong
Copy link

yujianfeikong commented Nov 2, 2016

1,我的实体类继承了JKDBModel (为了截图方法删除了一些属性)
1
2.pch文件引入了JKDBModel和FMDB
2
3.从服务器获取到json并用字典生成对象,然后调用JKDBModel的save方法
3
4.但是后台就报错,说未知的数据库。XianZhi是我的工程名,为什么数据库未知?而且表名也是 工程名.实体名?该怎么解决?谢谢
4
5.插入数据当然也就报错了
5

@Haley-Wong
Copy link
Owner

swift 中没法使用runtime 动态创建表与字段,所以导致数据库、表都没创建吧。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants