You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
RRDB는 Rust로 작성된 PostgreSQL 호환 관계형 데이터베이스입니다. "Rust RDB"의 약자로, 한국 개발자(myyrakle)가 주도합니다. PostgreSQL wire protocol을 구현하여 표준 psql 클라이언트 및 PostgreSQL 라이브러리와 호환됩니다.
// env_logger 기본값 info 레벨// 실행 시: RUST_LOG=debug cargo run -- run
log::info!("data path: {}", config.data_directory);
log::debug!("AST echo: {:?}", statement);
테스트
// mockall로 외부 의존성 모킹#[mockall::automock]pubtraitFileSystem{ ... }// 비동기 테스트#[tokio::test]asyncfntest_process_query(){ ...}
빌드/테스트
# 전체 빌드
cargo build
# 테스트 실행
cargo test# 서버 실행 (기본 설정)
cargo run -- run
# 서버 실행 (커스텀 경로)
cargo run -- run --base-path /path/to/data
# debug 로깅
RUST_LOG=debug cargo run -- run
# 초기화
cargo run -- init
Features
feature
설명
rrdb (default)
메인 바이너리 빌드, cli 포함
cli
atty, structopt 의존성 활성화
PR 규칙
브랜치 패턴
용도
feat/#issue-short-description
기능 개발
fix/#issue-short-description
버그 수정
test/#issue-short-description
테스트 추가
refactor/#issue-short-description
리팩토링
chore/#issue-short-description
빌드/설정/CI 변경
PR은 master 브랜치로 머지
clippy 린트 통과 필수 (lint to_string_trait_impl 허용됨)
주의사항
PathBuf 처리
config.data_directory는 String 타입 → 사용 시 PathBuf::from()으로 변환