pushtorefresh / storio

Reactive API for SQLiteDatabase and ContentResolver.
Apache License 2.0
2.55k stars 182 forks source link

Feature request: create / drop table API for Humans #471

Closed dmytrodanylyk closed 9 years ago

dmytrodanylyk commented 9 years ago

As I see in sample you are using string concatenation for create table query. Maybe storio need create / drop table query builder for Humans ? :)

artem-zinnatullin commented 9 years ago

Current position about this: StorIO is API for querying (Put, Get, Delete) DB and ContentResolver. We don't want to limit our users in creating and managing their databases, tables, constraints, schemas and so on :)

Also, we won't provide SQL generation.

Sorry if it makes you less happy, but we think that good library should do as little work as possible and respect SOLID principles (in particular Single Responsibility).

We like to manually manage our database schemas, via quick googling I've found this library which can help you with managing database schema: https://github.com/futuresimple/android-schema-utils

dmytrodanylyk commented 9 years ago

@artem-zinnatullin ok, fair enough.