Skip to content
This repository was archived by the owner on Feb 11, 2022. It is now read-only.

Commit f7992a6

Browse files
committed
Merge pull request #8 from novoda/new_readme_structure
Uses the new README structure
2 parents 304441d + 95aeac5 commit f7992a6

1 file changed

Lines changed: 22 additions & 38 deletions

File tree

README.md

Lines changed: 22 additions & 38 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,20 @@
1-
# SQLiteAnalyzer
2-
Caution: This project is still in an early alpha stage.
1+
# sqlite-analyzer [![](https://raw.githubusercontent.com/novoda/novoda/master/assets/btn_apache_lisence.png)](LICENSE.txt)
32

4-
### Purpose
5-
Generate java/android database access code by analyzing sqlite migration files or sqlite databases, keeping full control of what
6-
code is generated.
3+
Code generation for Java/Android database access.
74

8-
### Integration
9-
The sqliteAnalyzer comes as a gradle plugin relying on the android gradle plugin.
5+
## Description
106

11-
To integrate sqliteAnalyzer into your project, we currently recommend depending directly on the sources.
12-
See the setup under the `buildSrc` sub-directory for an example.
7+
Generates java/android database access code by analyzing sqlite migration files or sqlite databases, keeping full control of what code is generated.
138

14-
The code generation is then integrated with the gradle build via:
9+
sqlite-analyzer creates an in-memory sqlite database, either from a given database file or by running sql migrations, and analyzes its tables to construct a DatabaseModel. This model is then used to generate code.
10+
11+
This project uses [sqlite-jdbc](https://bitbucket.org/xerial/sqlite-jdbc) to create and analyze the database. [Groovy](http://groovy.codehaus.org/) is used to generate code, [Gradle](http://www.gradle.org/) to hook the functionality into the [android build system](http://tools.android.com/tech-docs/new-build-system).
12+
13+
## Adding to your project
14+
15+
To integrate sqliteAnalyzer into your project, it is recommended for now that you depend directly on the sources. See the setup under the `buildSrc` sub-directory for an example.
16+
17+
After you've added the sources to `buildSrc`, you can start using this library, add these lines to the `build.gradle` of your project:
1518

1619
```groovy
1720
apply plugin: 'sqlite-access'
@@ -22,37 +25,18 @@ sqliteAccess {
2225
}
2326
```
2427

25-
Try `./gradlew clean assembleDebug` and observe the generated code under `build/source/sqlite/debug/`.
26-
27-
### Demos
28-
The project provides 3 demo applications that create and use database access code, using SqliteProvider, android-asset-helper and Google Auto resp.
2928

30-
### Mechanics
31-
We create an in-memory sqlite database, either from a given database file or by running sql migrations, and analyze its tables to construct a DatabaseModel.
32-
This model is then used to generate code.
29+
## Simple usage
3330

34-
### Libraries
35-
We use [sqlite-jdbc](https://bitbucket.org/xerial/sqlite-jdbc) to create and analyze the database.
36-
[Groovy](http://groovy.codehaus.org/) is used to generate code, [Gradle](http://www.gradle.org/) to hook the functionality into the [android build system](http://tools.android.com/tech-docs/new-build-system).
37-
38-
### Releases
39-
There are no releases yet.
40-
41-
42-
License
43-
-------
44-
45-
(c) Copyright 2014 Novoda
31+
Try `./gradlew clean assembleDebug` and observe the generated code under `build/source/sqlite/debug/`.
32+
The project provides 3 demo applications that create and use database access code, using SqliteProvider, android-asset-helper and Google Auto resp.
4633

47-
Licensed under the Apache License, Version 2.0 (the "License");
48-
you may not use this file except in compliance with the License.
49-
You may obtain a copy of the License at
5034

51-
http://www.apache.org/licenses/LICENSE-2.0
35+
## Links
5236

53-
Unless required by applicable law or agreed to in writing, software
54-
distributed under the License is distributed on an "AS IS" BASIS,
55-
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
56-
See the License for the specific language governing permissions and
57-
limitations under the License.
37+
Here are a list of useful links:
5838

39+
* We always welcome people to contribute new features or bug fixes, [here is how](https://github.com/novoda/novoda/blob/master/CONTRIBUTING.md)
40+
* If you have a problem check the [Issues Page](https://github.com/novoda/sqlite-analyzer/issues) first to see if we are working on it
41+
* For further usage or to delve more deeply checkout the [Project Wiki](https://github.com/novoda/sqlite-analyzer/wiki)
42+
* Looking for community help, browse the already asked [Stack Overflow Questions](http://stackoverflow.com/questions/tagged/support-sqlite-analyzer) or use the tag: `support-sqlite-analyzer` when posting a new question

0 commit comments

Comments
 (0)