https://github.com/anjakammer/sqlitesync
Android Library to synchronize SQLite replicates
https://github.com/anjakammer/sqlitesync
android-app android-library sqlite-android
Last synced: 10 months ago
JSON representation
Android Library to synchronize SQLite replicates
- Host: GitHub
- URL: https://github.com/anjakammer/sqlitesync
- Owner: anjakammer
- Created: 2016-06-27T10:24:30.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2020-04-23T12:47:12.000Z (almost 6 years ago)
- Last Synced: 2023-02-26T17:16:55.309Z (almost 3 years ago)
- Topics: android-app, android-library, sqlite-android
- Language: Java
- Homepage:
- Size: 584 KB
- Stars: 2
- Watchers: 2
- Forks: 3
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# How to use SQLite3 on Android
- turn on the debug mode of your device
- connect your Android device via adb-usb-drivers of the manufactorer
- install and run your application on the device
- insert, update and delete data
- close the application, to close the database
- open the Android terminal emulator
#### run this, to get root permissions
```sh
$ su
```
#### go to the database directory
```sh
$ ls /data/data/com.example.app/databases
```
#### run sqlite3 and load the database
run all sql commands with (;) at the end
```sh
$ sqlite3 database.db
```
#### to get all attributes of a table, run:
```sh
$ PRAGMA table_info(tablename);
```
#### to get all tables in the database, run:
```sh
$ SELECT DISTINCT tbl_name from sqlite_master;
```