https://github.com/dentrax/easysqlite
An EASY and ADVANCED way to handle [SQLITE] Simple!, Lifesaver!, Friendly! ...
https://github.com/dentrax/easysqlite
android-sqlite-database sqlite sqlite-database
Last synced: about 1 year ago
JSON representation
An EASY and ADVANCED way to handle [SQLITE] Simple!, Lifesaver!, Friendly! ...
- Host: GitHub
- URL: https://github.com/dentrax/easysqlite
- Owner: Dentrax
- License: gpl-3.0
- Created: 2017-04-22T19:02:54.000Z (almost 9 years ago)
- Default Branch: master
- Last Pushed: 2018-11-17T10:39:25.000Z (over 7 years ago)
- Last Synced: 2025-01-03T01:40:37.511Z (about 1 year ago)
- Topics: android-sqlite-database, sqlite, sqlite-database
- Language: Java
- Homepage:
- Size: 37.1 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- Contributing: CONTRIBUTING.md
- License: LICENSE
Awesome Lists containing this project
README
EasySQLite Source Repository
### EasySQLITE: An EASY and ADVANCED way to handle SQLITE!
[What It Is](#what-it-is)
[How To Use](#how-to-use)
[About](#about)
[Copyright & Licensing](#copyright--licensing)
[Contributing](#contributing)
[Contact](#contact)
## What It Is
EasySQLITE for SQLite is a high quality, simple, open source tool to
create, design, and edit database files compatible with SQLite.
Controls and wizards are available for users to:
* Create and compact SQLITE controller singleton classes
* Create, define, modify, update and delete tables
* Easy way to create and control SQLITE instance insted of class inheritance for every SQLITE DB.
## How To Use
* Single Line Initializer
```java
SQLITE sql = new SQLITE(CONTEXT, new SQLITESetting(DB_NAME, VERSION, SQLITECreateInfos, SQLITEUpgradeInfos));
```
```java
final List sql_createList = new ArrayList(){{
//Create (initialize) a new TABLE with these queries (if not exist)
add(new SQLITECreateInfo("TABLE1_NAME", new ArrayList(){{
add("QUERY1");
add("QUERY2");
}}));
//Create (initialize) a new TABLE with these queries (if not exist)
add(new SQLITECreateInfo("TABLE2_NAME", new ArrayList(){{
add("QUERY1");
add("QUERY2");
}}));
}};
final List sql_upgradeList = new ArrayList(){{
//Run this queries when upgrade version 0 to 1
add(new SQLITEUpgradeInfo(0, 1, new ArrayList(){{
add("QUERY1");
add("QUERY2");
}}));
//Run this queries when upgrade version 1 to 2
add(new SQLITEUpgradeInfo(1, 2, new ArrayList(){{
add("QUERY1");
add("QUERY2");
}}));
}};
//SQLITESetting class. Parameters : (DB_NAME, VERSION, List, List)
final SQLITESetting sql_setting = new SQLITESetting("DB_NAME", 1, sql_createList, sql_upgradeList);
//Main initializer
SQLITE sql = new SQLITE(CONTEXT, sql_setting);
```
## About
EasySQLITE was created to serve three purposes:
1. To act as a library to handle SQLITE.
2. To provide a basic SQLITE Library for any project that requires a SQL database with uses SQLITE.
3. Instead of writing long and complex code, it provides the simplest and easiest way.
**However, our true ultimate goal is to produce easy and life-saver libraries in any language!**
EasySQLITE was created by Furkan 'Dentrax' Türkal
*
## Copyright & Licensing
The base project code is copyrighted by Furkan 'Dentrax' Türkal and
is covered by single licence.
All program code (i.e. C#, Java) is licensed under GPL v3.0 unless otherwise
specified. Please see the "LICENSE" file for more information.
## Contributing
Please check the [CONTRIBUTING.md](CONTRIBUTING.md) file for contribution instructions and guidelines.
## Contact
You can contact Dentrax by email:
furkan.turkal@hotmail.com