# CG/SQL - SQLite용 Stored Procedure 코드 생성기

> Clean Markdown view of GeekNews topic #2998. Use the original source for factual precision when an external source URL is present.

## Metadata

- GeekNews HTML: [https://news.hada.io/topic?id=2998](https://news.hada.io/topic?id=2998)
- GeekNews Markdown: [https://news.hada.io/topic/2998.md](https://news.hada.io/topic/2998.md)
- Type: news
- Author: [xguru](https://news.hada.io/@xguru)
- Published: 2020-10-09T13:55:54+09:00
- Updated: 2020-10-09T13:55:54+09:00
- Original source: [engineering.fb.com](https://engineering.fb.com/open-source/cg-sql/)
- Points: 3
- Comments: 1

## Topic Body

- Stored Procedure 가 없는 SQLite 를 위해

ㅤT-SQL로 작성된 스토어드 프로시져를 SQLite C API를 사용하는 C 코드로 변환하는 컴파일러

- 큰 쿼리로 구성된 아주 복잡한 스토어드 프로시져도 잘 처리하며, 타입 및 메소드 검사를 수행

- 스키마 관리/업그레이드, 테스트코드 작성, Java 및 Obj-C 연계코드등을 지원

- MIT 라이센스 오픈소스

## Comments



### Comment 3127

- Author: xguru
- Created: 2020-10-09T13:56:20+09:00
- Points: 1

SQLite 에 Stored Procedure 는 어떻게 쓰나요 라는 질문은 검색해 보면 정말 많이 나오는데요.

맨 처음에 나오는 게 10년전 스택오버플로우 답변 글인데 그때부터 이미 "SQLite 는 그런거 지원 안함" 이라고 써있거든요.

어찌보면 라이브러리 처럼 동작하는 SQLite 구조상 당연한건데, 있으면 편하긴 하니까요.

그걸 페이스북이 이런식으로 해결해 줬네요. 정확한 방식은 아니지만 나름 깔끔한 대안인 것 같습니다.
