{"id":13942134,"url":"https://github.com/croc-code/sql-boot","last_synced_at":"2025-04-14T19:40:39.350Z","repository":{"id":37263704,"uuid":"74375296","full_name":"croc-code/sql-boot","owner":"croc-code","description":"Advanced REST-wrapper for your SQL-queries (actually not only SQL)","archived":false,"fork":false,"pushed_at":"2022-06-20T22:41:03.000Z","size":3130,"stargazers_count":59,"open_issues_count":19,"forks_count":4,"subscribers_count":4,"default_branch":"master","last_synced_at":"2024-05-21T18:12:13.681Z","etag":null,"topics":["code-generator","db","db-generator","db-ide","db-manager","db-migration","db-swiss-knife","db-tool","dba","ddl","devops","java","nosql","rdbms","schema","sql","sql-generation"],"latest_commit_sha":null,"homepage":"","language":"Kotlin","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"bsd-3-clause","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/croc-code.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":"CODE_OF_CONDUCT.md","threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2016-11-21T15:05:08.000Z","updated_at":"2024-03-02T15:47:05.000Z","dependencies_parsed_at":"2022-08-24T16:20:32.089Z","dependency_job_id":null,"html_url":"https://github.com/croc-code/sql-boot","commit_stats":null,"previous_names":["crocinc/sql-boot"],"tags_count":5,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/croc-code%2Fsql-boot","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/croc-code%2Fsql-boot/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/croc-code%2Fsql-boot/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/croc-code%2Fsql-boot/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/croc-code","download_url":"https://codeload.github.com/croc-code/sql-boot/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248948067,"owners_count":21187800,"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":["code-generator","db","db-generator","db-ide","db-manager","db-migration","db-swiss-knife","db-tool","dba","ddl","devops","java","nosql","rdbms","schema","sql","sql-generation"],"created_at":"2024-08-08T02:01:42.896Z","updated_at":"2025-04-14T19:40:39.329Z","avatar_url":"https://github.com/croc-code.png","language":"Kotlin","readme":"[![Build Status](https://travis-ci.org/crocinc/sql-boot.svg?branch=master)](https://travis-ci.org/crocinc/sql-boot)\n[![Build status](https://ci.appveyor.com/api/projects/status/jrpy23nvd03hcocb?svg=true)](https://ci.appveyor.com/project/mgramin/sql-boot)\n[![codecov](https://codecov.io/gh/CrocInc/sql-boot/branch/master/graph/badge.svg)](https://codecov.io/gh/CrocInc/sql-boot)\n[![License](https://img.shields.io/badge/License-BSD%203--Clause-blue.svg)](https://github.com/sql-boot/sql-boot/blob/master/LICENSE)\n[![codebeat badge](https://codebeat.co/badges/da168874-4940-41f4-a6e2-ae1ddc0f3873)](https://codebeat.co/projects/github-com-mgramin-sql-boot-master)\n[![Codacy Badge](https://api.codacy.com/project/badge/Grade/dff14223d4e94de58f2b6a3ac1c24036)](https://www.codacy.com/manual/mgramin/sql-boot?utm_source=github.com\u0026amp;utm_medium=referral\u0026amp;utm_content=CrocInc/sql-boot\u0026amp;utm_campaign=Badge_Grade)\n[![Docker Pulls](https://img.shields.io/docker/pulls/mgramin/sql-boot.svg)](https://hub.docker.com/r/mgramin/sql-boot/)\n[![Main distribution](https://img.shields.io/badge/zip-download-brightgreen.svg)](https://github.com/sql-boot/sql-boot/releases/latest)\n[![Join the chat at https://gitter.im/sqlboot/Lobby](https://badges.gitter.im/sqlboot/Lobby.svg)](https://gitter.im/sqlboot/Lobby?utm_source=badge\u0026utm_medium=badge\u0026utm_campaign=pr-badge\u0026utm_content=badge)\n[![EO badge](https://www.elegantobjects.org/badge.svg)](https://www.elegantobjects.org/)\n[![DevOps By Rultor.com](http://www.rultor.com/b/CrocInc/sql-boot)](http://www.rultor.com/p/CrocInc/sql-boot)\n[![Hits-of-Code](https://hitsofcode.com/github/CrocInc/sql-boot)](https://hitsofcode.com/view/github/CrocInc/sql-boot)\n[![Scc Count Badge](https://sloc.xyz/github/CrocInc/sql-boot/)](https://github.com/CrocInc/sql-boot/)\n[![Mentioned in Awesome database tools](https://awesome.re/mentioned-badge-flat.svg)](https://github.com/mgramin/awesome-db-tools)\n\n# Treat your database as Code\n\nThere are many awesome REST-wrappers for your Databases (e.g. [PostgREST](https://github.com/PostgREST/postgrest), [pREST](https://github.com/prest/prest), [sandman2](https://github.com/jeffknupp/sandman2) and many others), but how about REST-wrapper for your own SQL-queries?\n\nThe `sql-boot` tool is a REST-like wrapper for your own SQL-queries.\nNo ETLs, no generated SQL, no \"automagic\" - sql-boot simply transform your own SQL-query to Web resources.\n\n`sql-boot` recursively finds every *.sql files in your folders and start REST-like service and runs scripts against live databases in response to http requests.\n\n\nExample\n-------\nSave you SQL-query to `big_cities.sql`:\n````sql\nselect a.airport_code as code\n     , a.airport_name\n     , a.city\n     , a.coordinates\n     , a.timezone\n  from bookings.airports a\n where a.city in (select aa.city\n                    from bookings.airports aa\n                   group by aa.city\n                  having count(*) \u003e 1)\n order by\n       a.city\n     , a.airport_code\n````\n\nNow `sql-boot` is ready to receive http requests (without restarting and other actions).\n\n[Execute](http://81.23.10.106:8008/api/master_db/big_cities.sql) query on \"master_db\" database:\n````bash\nmaster_db/big_cities.sql\n````\n\n[Execute](http://81.23.10.106:8008/api/.*/big_cities.sql) query against all registered databases:\n````bash\n.*/big_cities.sql\n````\n\n[Execute](http://81.23.10.106:8008/api/.*/big_cities.sql?select=code,endpoint) query against all registered databases with specified columns:\n````bash\n.*/big_cities.sql?select=code,endpoint\n````\n\n[Execute](http://81.23.10.106:8008/api/master_db/big_cities.sql?select=code\u0026orderby=code-desc) query with ordering:\n````bash\nmaster_db/big_cities.sql?select=code\u0026orderby=code-desc\n````\n\n[Execute](http://81.23.10.106:8008/api/master_db/big_cities.sql?select=code\u0026orderby=code-desc\u0026page=1,3) query with pagination:\n````bash\nmaster_db/big_cities.sql?select=code\u0026orderby=code-desc\u0026page=1,3\n````\n\n\nSelf-documentation\n------------------\nsql-boot uses the [OpenAPI](https://github.com/OAI/OpenAPI-Specification) standard to generate up-to-date documentation for APIs based your SQL-queries metadata.\nYou can use a tool like [Swagger-UI](https://github.com/swagger-api/swagger-ui) or [Swagger-Editor](https://github.com/swagger-api/swagger-editor) to render interactive documentation (for demo requests) or [generate client API](https://github.com/swagger-api/swagger-codegen) against the live API server.\n\n\nHow to pronounce\n----------------\nIt is pronounced \"sequelboot\" - https://translate.google.com/?source=osdd#en/en/sequelboot\n\n\nTry with Docker and embedded (H2) demo db:\n------------------------------------------\n```\ndocker run -t -p 8007:8007 mgramin/sql-boot\n```\n\n\nBuild from source:\n------------------\n```\ngit clone https://github.com/mgramin/sql-boot\ncd sql-boot\nmvn package\n```\n","funding_links":[],"categories":["Kotlin"],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcroc-code%2Fsql-boot","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcroc-code%2Fsql-boot","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcroc-code%2Fsql-boot/lists"}