You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Feb 11, 2022. It is now read-only.
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.
7
4
8
-
### Integration
9
-
The sqliteAnalyzer comes as a gradle plugin relying on the android gradle plugin.
5
+
## Description
10
6
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.
13
8
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:
15
18
16
19
```groovy
17
20
apply plugin: 'sqlite-access'
@@ -22,37 +25,18 @@ sqliteAccess {
22
25
}
23
26
```
24
27
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.
29
28
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
33
30
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.
46
33
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
50
34
51
-
http://www.apache.org/licenses/LICENSE-2.0
35
+
## Links
52
36
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:
58
38
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