AbsaOSS / AbsaOSS/balta

Make it possible to run a custome SQL command from within a test

Đang mở
#84 0 bình luận 1 reaction 0 người được giao Xem trên GitHub
enhancement
Ngôn ngữ chính
Scala
Star
3
Fork
2
Merge trung bình
14 giờ 48 phút
Pull request đã merge (30 ngày)
1

Mô tả

### Feature Description

Add (a) method(s) to `DBTestSuite` that will allow to execute a custom SQL code as part of the test.

(no need for parametrized queries support, at least yet)

### Problem / Opportunity

Sometimes a database test needs to run a different SQL than just interaction with table or calling a function.

### Acceptance Criteria

1. User of the library can run a custom SQL

### Proposed Solution

Add methods:
* `sql` that returns a result set, similar to table query or function call
* `ddl` that returns no results
* (possible) `dml`, that allows to modify data, returning the rows modified
* auto-adding RETURNING, if not present
* possible to call with verification as table query, or without

### Dependencies / Related

_No response_

### Additional Context

_No response_

Hướng dẫn đóng góp

Chưa lập chỉ mục được hướng dẫn đóng góp cho kho mã nguồn này

Đánh giá

Issue này chưa được đánh giá.

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.