All Projects → novoda → sqlite-analyzer

novoda / sqlite-analyzer

Licence: other
Code generation for Java/Android database access.

Programming Languages

java
68154 projects - #9 most used programming language
ANTLR
299 projects
groovy
2714 projects

Projects that are alternatives of or similar to sqlite-analyzer

Sydes
Lightweight CMF for a simple sites with sqlite database
Stars: ✭ 6 (-90.48%)
Mutual labels:  sqlite-database
Sandman2
Automatically generate a RESTful API service for your legacy database. No code required!
Stars: ✭ 1,765 (+2701.59%)
Mutual labels:  sqlite-database
SeLite
Automated database-enabled navigation ✔️ of web applications
Stars: ✭ 34 (-46.03%)
Mutual labels:  sqlite-database
Avsqldebugger
A Simple Core Data Debugger that will look inside your apps DB
Stars: ✭ 30 (-52.38%)
Mutual labels:  sqlite-database
Pi Temp
Web server using a Raspberry Pi and DHT22 sensor to graph the humidity and temperature in my apartment over time.
Stars: ✭ 114 (+80.95%)
Mutual labels:  sqlite-database
Cachew
Transparent and persistent cache/serialization powered by type hints
Stars: ✭ 155 (+146.03%)
Mutual labels:  sqlite-database
Tuql
Automatically create a GraphQL server from a SQLite database or a SQL file
Stars: ✭ 526 (+734.92%)
Mutual labels:  sqlite-database
dojos
This is where the Novoda team do all their hacking
Stars: ✭ 74 (+17.46%)
Mutual labels:  novoda
Microservices With Lumen
A Lumen based microservice ready to deploy with guzzle for consumption of api and OAuth 2
Stars: ✭ 115 (+82.54%)
Mutual labels:  sqlite-database
Sqfentity
SqfEntity ORM for Flutter/Dart lets you build and execute SQL commands on SQLite database easily and quickly with the help of fluent methods similar to .Net Entity Framework. SqfEntity also generates add/edit forms with validations and special controls (DropDown List, DateTime pickers, Checkboxes.. etc) for your table.
Stars: ✭ 237 (+276.19%)
Mutual labels:  sqlite-database
Sqlitemanager
Sqlite Manager is a Dev Debug tool that helps to view/add/remove/edit data your android Sqlite Database in-app with ease. (supports Custom queries aswell)
Stars: ✭ 37 (-41.27%)
Mutual labels:  sqlite-database
Booklibrary
📚Simple Book library application written on flask with SQLite database.
Stars: ✭ 98 (+55.56%)
Mutual labels:  sqlite-database
Pssqlite
PowerShell module to query SQLite databases
Stars: ✭ 184 (+192.06%)
Mutual labels:  sqlite-database
Taskreminder
A Task Reminder/Scheduler App created using Sqlite database and Broadcast Receivers
Stars: ✭ 22 (-65.08%)
Mutual labels:  sqlite-database
DBFlowManager
A quick and easy database manager plugin library for your DBFlow databases.
Stars: ✭ 26 (-58.73%)
Mutual labels:  sqlite-database
Sqlitedb
Basic SQLite wrapper for Swift 4.x and lightweight ORM for accessing underlying tables in an SQLite database
Stars: ✭ 538 (+753.97%)
Mutual labels:  sqlite-database
Crystdb
CrystDB is a thread-safe and convenient Object Relational Mapping database that based on SQLite.
Stars: ✭ 146 (+131.75%)
Mutual labels:  sqlite-database
SQLiteHelper
🗄 This project comes in handy when you want to write a sql statement easily and smarter.
Stars: ✭ 57 (-9.52%)
Mutual labels:  sqlite-database
AndroidEasySQL-Library
An Easier & Lazier approach to SQL database for Android
Stars: ✭ 28 (-55.56%)
Mutual labels:  sqlite-database
Iosdebugdatabase
make it easy to debug databases in iOS applications iOS debug database
Stars: ✭ 219 (+247.62%)
Mutual labels:  sqlite-database

🛑 THIS REPOSITORY IS OFFICIALLY NO LONGER UNDER MAINTENANCE since 10/02/2022 🛑

sqlite-analyzer CI status Download from Bintray Apache 2.0 Licence

Code generation for Java/Android database access.

Description

Generates java/android database access code by analysing sqlite migration files or sqlite databases, keeping full control of what code is generated.

sqlite-analyzer creates an in-memory sqlite database, either from a given database file or by reading sql migrations, and analyzes its tables to construct a DatabaseModel. This model is then used to generate database access code.

This project uses sqlite-jdbc to create and analyze the database. Groovy is used to generate code, Gradle to hook the functionality into the android build system.

Adding to your project

To integrate sqlite-analyzer into your project, add the following at the beginning of the build.gradle of your project:

buildscript {
    repositories {
        jcenter()
    }
    dependencies {
        classpath 'com.novoda:sqlite-analyzer:0.3.2'
    }
}

To use the library with sqlite-provider, add these lines to the build.gradle of your project:

apply plugin: 'com.novoda.sqlite-analyzer'

sqliteAccess {
    migrationsDir 'src/main/assets/migrations'
    packageName 'com.novoda.sqliteprovider.demo.simple'
}

See the sample projects for setup with android-sqlite-asset-helper.

Simple usage

Try ./gradlew clean assembleDebug and observe the generated code under build/generated/source/sqlite/debug/.

By default, it contains one single class DB that defines constants for the names of the tables and columns and introduces static accessor methods as well as model classes for all tables data.

The project comes with 2 demo applications that create and use database access code, one uses sqlite-provider, the other uses android-sqlite-asset-helper.

Use column names

queryBuilder.appendWhere(DB.Columns.Shop.Name + " like 'A%'")

Simplified use with static import

projection = new String[] {Employees.Firstname, Employees.Lastname};

Use model classes

public void onLoadFinished(Loader<Cursor> cursorLoader, Cursor cursor) {
    DB.Shop shop = DB.Shop.fromCursor(cursor);
}

Use helpers for ContentValues

ContentValues values = new ContentValues(1);
DB.Shop.setName("New Shop", values);

Links

Here are a list of useful links:

  • We always welcome people to contribute new features or bug fixes, here is how
  • If you have a problem check the Issues Page first to see if we are working on it
  • For further usage or to delve more deeply checkout the Project Wiki
  • Looking for community help, browse the already asked Stack Overflow Questions or use the tag: support-sqlite-analyzer when posting a new question
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].