What is the advantage of using SqLite vs java.SQL for Android

I was looking through a tutorial: http://www.vogella.de/articles/AndroidSQLite/article.html

and SQLite seems to have all the basic Java.SQL features

Is there an advantage to using SQLite instead of Java SQL for Android development?

+4
source share
2 answers

Check out this page: http://developer.android.com/reference/java/sql/package-summary.html

Second sentence:

The android.database and android.database.sqlite packages offer an alternative with higher performance when the source compatibility problem is not a problem.

SQLite has better performance.

java.sql has better source compatibility.

I would always use sqlite, because source compatibility is not a big problem for android

+6
source

java.sql is not a database provider as such. This is just a wrapper on top of JDBC. You will need to find a vendor with a JDBC driver before you can use it.

0
source

Source: https://habr.com/ru/post/1399473/


All Articles