{"id":16558888,"url":"https://github.com/gmazzo/gradle-sqlite-plugin","last_synced_at":"2026-04-18T07:36:10.749Z","repository":{"id":145163834,"uuid":"103277770","full_name":"gmazzo/gradle-sqlite-plugin","owner":"gmazzo","description":"A Gradle plugin to allow manipulating SQLite databases in the buildScript","archived":false,"fork":false,"pushed_at":"2018-02-20T18:34:53.000Z","size":58,"stargazers_count":2,"open_issues_count":2,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-01-15T12:10:21.798Z","etag":null,"topics":["gradle","gradle-plugin","sqlite","sqlite-database"],"latest_commit_sha":null,"homepage":"https://plugins.gradle.org/plugin/com.github.gmazzo.sqlite","language":"Groovy","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/gmazzo.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2017-09-12T13:58:53.000Z","updated_at":"2020-10-26T06:50:35.000Z","dependencies_parsed_at":null,"dependency_job_id":"1c3f58c5-ea91-4cc6-82ac-a4bea8910811","html_url":"https://github.com/gmazzo/gradle-sqlite-plugin","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gmazzo%2Fgradle-sqlite-plugin","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gmazzo%2Fgradle-sqlite-plugin/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gmazzo%2Fgradle-sqlite-plugin/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gmazzo%2Fgradle-sqlite-plugin/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/gmazzo","download_url":"https://codeload.github.com/gmazzo/gradle-sqlite-plugin/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":241950081,"owners_count":20047587,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["gradle","gradle-plugin","sqlite","sqlite-database"],"created_at":"2024-10-11T20:24:03.816Z","updated_at":"2026-04-18T07:36:05.719Z","avatar_url":"https://github.com/gmazzo.png","language":"Groovy","funding_links":[],"categories":[],"sub_categories":[],"readme":"# gradle-sqlite-plugin\nA Gradle plugin to allow manipulating SQLite databases in the buildScript\n\u003e Credits to [tim-yates](https://stackoverflow.com/users/6509/tim-yates) for the working code \u003cbr/\u003e https://stackoverflow.com/a/33904851/1007772\n\n## Usage\nOn your `build.gradle` add:\n```groovy\nplugins {\n    id 'com.github.gmazzo.sqlite'\n}\n```\nVisit [Gradle plugins](https://plugins.gradle.org/plugin/com.github.gmazzo.sqlite) for further details on how to apply it\n\nAfter applying, the standard `groovy.sql.Sql` can be used to open or create any SQLite database with:\n```groovy\nimport groovy.sql.Sql\n\nSql.newInstance('jdbc:sqlite:' + databaseFile, 'org.sqlite.JDBC')\n```\nOr you can use this shortcut function:\n```groovy\nopenSQLiteDatabase(databaseFile)\n```\n\n### Example\n```groovy\nplugins {\n    id 'com.github.gmazzo.sqlite'\n}\n\ntask createSampleDatabase {\n    def databaseFile = file(\"$buildDir/sample.db\")\n\n    outputs.file databaseFile\n\n    doLast {\n        def db = openSQLiteDatabase(databaseFile)\n        db.execute 'CREATE TABLE sample (name TEXT NOT NULL, value INTEGER NOT NULL)'\n        db.execute 'INSERT INTO sample VALUES (\\'AAA\\', 0)'\n        db.execute 'INSERT INTO sample VALUES (\\'BBB\\', 1)'\n    }\n}\n```\n\n## Configuration\nBy default, this plugins relies in the `org.xerial:sqlite-jdbc:3.20.0` SQLite driver.\nIf you want to change it or update its version, add:\n```groovy\nsqlite {\n    driverDependency 'org.xerial:sqlite-jdbc:\u003cnewVersion\u003e'\n}\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgmazzo%2Fgradle-sqlite-plugin","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fgmazzo%2Fgradle-sqlite-plugin","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgmazzo%2Fgradle-sqlite-plugin/lists"}