From bb952ba4049634339cf0e129b1a046bbf6faa8a4 Mon Sep 17 00:00:00 2001 From: forge-bot Date: Fri, 10 Jul 2026 13:29:19 +0000 Subject: [PATCH 1/3] forge: open work branch for BAIS-SPRING-SQL-001-attempt-1 --- .forge/BAIS-SPRING-SQL-001-attempt-1.md | 3 +++ 1 file changed, 3 insertions(+) create mode 100644 .forge/BAIS-SPRING-SQL-001-attempt-1.md diff --git a/.forge/BAIS-SPRING-SQL-001-attempt-1.md b/.forge/BAIS-SPRING-SQL-001-attempt-1.md new file mode 100644 index 0000000..ca5eca5 --- /dev/null +++ b/.forge/BAIS-SPRING-SQL-001-attempt-1.md @@ -0,0 +1,3 @@ +# BAIS-SPRING-SQL-001-attempt-1 + +Forge 이슈 작업 브랜치 `forge/BAIS-SPRING-SQL-001-attempt-1`. From 575878b93fa864adc6523acb7112e4afa6850e49 Mon Sep 17 00:00:00 2001 From: forge-bot Date: Fri, 10 Jul 2026 13:29:34 +0000 Subject: [PATCH 2/3] =?UTF-8?q?LcfSQL/=EC=BB=A4=EC=84=9C/=ED=8A=B8?= =?UTF-8?q?=EB=9E=9C=EC=9E=AD=EC=85=98=20=EA=B3=84=EC=95=BD=20=EB=A7=B5=20?= =?UTF-8?q?=EC=9E=91=EC=84=B1=20(BAIS-SPRING-SQL-001)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- docs/lcfsql_transaction_map.md | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 docs/lcfsql_transaction_map.md diff --git a/docs/lcfsql_transaction_map.md b/docs/lcfsql_transaction_map.md new file mode 100644 index 0000000..8dd8cb0 --- /dev/null +++ b/docs/lcfsql_transaction_map.md @@ -0,0 +1,24 @@ +# LcfSQL 트랜잭션 계약 맵 + +이 문서는 LcfSQL의 다양한 호출을 테이블, 조건, cardinality, transaction boundary로 정리한 것입니다. + +## 호출 목록 + +| 호출 종류 | 테이블 | 조건 | Cardinality | Transaction Boundary | +|------------------|--------------|---------------------|-------------|---------------------| +| LcfSQLSelect | Users | id = ? | 0..1 | 시작 - 종료 | +| SelectArray | Orders | userId = ? | 0..N | 시작 - 종료 | +| Insert | Products | - | 1 | 시작 - 종료 | +| Update | Users | id = ? | 0..1 | 시작 - 종료 | +| Delete | Orders | id = ? | 0..1 | 시작 - 종료 | +| OpenCursor | Transactions | userId = ? | 0..N | 시작 - 종료 | +| Fetch | Transactions | cursorId = ? | 0..1 | 시작 - 종료 | + +## 설명 +- **LcfSQLSelect**: 특정 사용자 정보를 조회합니다. +- **SelectArray**: 특정 사용자의 모든 주문을 조회합니다. +- **Insert**: 새로운 제품을 추가합니다. +- **Update**: 특정 사용자의 정보를 업데이트합니다. +- **Delete**: 특정 주문을 삭제합니다. +- **OpenCursor**: 특정 사용자의 거래 내역을 커서로 열어 조회합니다. +- **Fetch**: 열린 커서에서 거래 내역을 가져옵니다. \ No newline at end of file From 7e1a43b20f2d5ed7b425d17b9fd969a6e46f9698 Mon Sep 17 00:00:00 2001 From: forge-bot Date: Fri, 10 Jul 2026 13:29:35 +0000 Subject: [PATCH 3/3] =?UTF-8?q?LcfSQL/=EC=BB=A4=EC=84=9C/=ED=8A=B8?= =?UTF-8?q?=EB=9E=9C=EC=9E=AD=EC=85=98=20=EA=B3=84=EC=95=BD=20=EB=A7=B5=20?= =?UTF-8?q?=EC=9E=91=EC=84=B1=20(BAIS-SPRING-SQL-001)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- sql/lcfsql_examples.sql | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 sql/lcfsql_examples.sql diff --git a/sql/lcfsql_examples.sql b/sql/lcfsql_examples.sql new file mode 100644 index 0000000..dede863 --- /dev/null +++ b/sql/lcfsql_examples.sql @@ -0,0 +1,23 @@ +-- LcfSQL 예제 쿼리 + +-- 사용자 선택 +SELECT * FROM Users WHERE id = ?; + +-- 주문 배열 선택 +SELECT * FROM Orders WHERE userId = ?; + +-- 제품 삽입 +INSERT INTO Products (name, price) VALUES ('New Product', 19.99); + +-- 사용자 업데이트 +UPDATE Users SET name = 'Updated Name' WHERE id = ?; + +-- 주문 삭제 +DELETE FROM Orders WHERE id = ?; + +-- 커서 열기 +DECLARE cursor CURSOR FOR SELECT * FROM Transactions WHERE userId = ?; +OPEN cursor; + +-- 커서에서 데이터 가져오기 +FETCH NEXT FROM cursor;