SQLDelight Android Gradle Plugin

Gradle plugin for generating kotlin interfaces for sqlite files

License

License

Categories

Categories

Gradle Build Tools Square Business Logic Libraries Financial
GroupId

GroupId

com.squareup.sqldelight
ArtifactId

ArtifactId

android-gradle-plugin
Last Version

Last Version

1.0.0-alpha5
Release Date

Release Date

Type

Type

jar
Description

Description

SQLDelight Android Gradle Plugin
Gradle plugin for generating kotlin interfaces for sqlite files
Project URL

Project URL

https://github.com/square/sqldelight/
Source Code Management

Source Code Management

https://github.com/square/sqldelight/

Download android-gradle-plugin

How to add to project

<!-- https://jarcasting.com/artifacts/com.squareup.sqldelight/android-gradle-plugin/ -->
<dependency>
    <groupId>com.squareup.sqldelight</groupId>
    <artifactId>android-gradle-plugin</artifactId>
    <version>1.0.0-alpha5</version>
</dependency>
// https://jarcasting.com/artifacts/com.squareup.sqldelight/android-gradle-plugin/
implementation 'com.squareup.sqldelight:android-gradle-plugin:1.0.0-alpha5'
// https://jarcasting.com/artifacts/com.squareup.sqldelight/android-gradle-plugin/
implementation ("com.squareup.sqldelight:android-gradle-plugin:1.0.0-alpha5")
'com.squareup.sqldelight:android-gradle-plugin:jar:1.0.0-alpha5'
<dependency org="com.squareup.sqldelight" name="android-gradle-plugin" rev="1.0.0-alpha5">
  <artifact name="android-gradle-plugin" type="jar" />
</dependency>
@Grapes(
@Grab(group='com.squareup.sqldelight', module='android-gradle-plugin', version='1.0.0-alpha5')
)
libraryDependencies += "com.squareup.sqldelight" % "android-gradle-plugin" % "1.0.0-alpha5"
[com.squareup.sqldelight/android-gradle-plugin "1.0.0-alpha5"]

Dependencies

runtime (3)

Group / Artifact Type Version
com.squareup.sqldelight : core jar 1.0.0-alpha5
com.squareup.sqldelight : gradle-plugin jar 1.0.0-alpha5
org.jetbrains.kotlin : kotlin-stdlib-jdk7 jar 1.2.50

test (2)

Group / Artifact Type Version
junit : junit jar 4.12
com.google.truth : truth jar 0.30

Project Modules

There are no modules declared in this project.

SQLDelight

See the project website for documentation and APIs

SQLDelight generates typesafe kotlin APIs from your SQL statements. It verifies your schema, statements, and migrations at compile-time and provides IDE features like autocomplete and refactoring which make writing and maintaining SQL simple.

SQLDelight understands your existing SQL schema.

CREATE TABLE hockey_player (
  id INTEGER NOT NULL PRIMARY KEY AUTOINCREMENT,
  name TEXT NOT NULL,
  number INTEGER NOT NULL
);

It generates typesafe code for any labeled SQL statements.

intro.gif


SQLDelight supports a variety of dialects and platforms:

SQLite

MySQL (JVM)

PostgreSQL (JVM) (Experimental)

HSQL/H2 (JVM) (Experimental)

Snapshots

Snapshots of the development version (including the IDE plugin zip) are available in Sonatype's snapshots repository.

License

Copyright 2016 Square, Inc.

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

   http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
com.squareup.sqldelight

Square

Versions

Version
1.0.0-alpha5
1.0.0-alpha4
1.0.0-alpha3
1.0.0-alpha2
1.0.0-alpha1