
sqlite3_orm
MY CUP OF TEA
所谓的念念不忘,在自己眼中是爱,在对方眼中是烦,在旁人眼中是贱。
展开
专栏收录文章
- 默认排序
- 最新发布
- 最早发布
- 最多阅读
- 最少阅读
-
sqlite_orm sync_schema源码即翻译
源码 /** * This is a cute function used to replace migration up/down functionality. * It performs check storage schema with actual db schema and: * * if there are excess tables exist in db they are igno原创 2020-12-19 11:23:13 · 417 阅读 · 2 评论 -
数据库对象中get_all_pointer指令的详解
/** * SELECT * routine. * O is an object type to be extracted. Must be specified explicitly. * @return All objects of type O as `std::unique_ptr<O>` inside a `std::vector` stored in database at ...原创 2020-12-17 20:53:15 · 371 阅读 · 0 评论 -
sqliteorm的sync_schema介绍
迁移功能 在迁移过程中,没有明确的上下函数。取而代之的是sqlite_orm提供的sync_schema函数,它负责将实际的db文件模式和你在make_storage调用中指定的模式进行比较,如果有什么不一样,它就会改变或放弃/创建模式。 storage.sync_schema(); // or storage.sync_schema(true); 注意事项 请注意,sync_schema并不能保证数据会被保存。它只是试图保存数据。下面你可以看到sync_schema在调用时遵循的规则列表。 如原创 2020-12-17 15:42:49 · 988 阅读 · 4 评论