yahoo / squidb

SquiDB is a SQLite database library for Android and iOS
https://github.com/yahoo/squidb/wiki
Apache License 2.0
1.31k stars 132 forks source link

Who can provide a complete example of showing how to create a table and showing how to create and operate databases. #52

Closed yufengzungzhe closed 9 years ago

sbosley commented 9 years ago

The squidb-sample project is an example of a complete (albeit simple) app that uses squidb to create tables and read/write the sqlite database. I recommend taking a look at the TasksDatabase class which shows how to create tables in a new database by overriding getTables(), or create tables in a migration with tryCreateTable().

I also recommend you check out the wiki, especially the Setting up a database and Using DatabaseDao pages.

Hope that helps! Feel free to reopen the issue if you have any more specific questions.