PostgreSQL 의존성 및 내부 유틸리티 추가:
Some checks failed
Build Push and Restart Compose / deploy (push) Failing after 1m47s
Some checks failed
Build Push and Restart Compose / deploy (push) Failing after 1m47s
- `github.com/lib/pq` PostgreSQL 드라이버 vendor 디렉토리에 추가. - PostgreSQL 관련 내부 패키지(`pqsql`, `proto`, `pqtime`, `pgpass`, `pgservice`, `pqutil`) 구현: - SQL 어휘 처리, 프로토콜 상수 및 구조 정의, 시간 파서/포맷터(`Parse`, `Format`). - `.pgpass` 파일 및 `pg_service.conf` 관리 기능 추가. - 파일/사용자 권한 검증 및 플랫폼별 사용자 정보 조회 기능 포함. - 데이터베이스 초기화 로직 추가 (`services/db.go`): - PostgreSQL 연결 설정 및 초기 스키마 생성. - 자동매매 관련 DB 레포지토리(`services/autotrade_repo.go`) 구현: - 자동매매 규칙 및 포지션 관리 로직 추가 (`dbInsertRule`, `dbLoadRules` 등).
This commit is contained in:
89
vendor/github.com/lib/pq/compose.yaml
generated
vendored
Normal file
89
vendor/github.com/lib/pq/compose.yaml
generated
vendored
Normal file
@@ -0,0 +1,89 @@
|
||||
name: 'pqgo'
|
||||
|
||||
services:
|
||||
pgbouncer:
|
||||
profiles: ['pgbouncer']
|
||||
image: 'cleanstart/pgbouncer:latest'
|
||||
ports: ['127.0.0.1:6432:6432']
|
||||
command: ['/init/pgbouncer.ini']
|
||||
volumes: ['./testdata/pgbouncer:/init', './testdata/ssl:/ssl']
|
||||
environment:
|
||||
'PGBOUNCER_DATABASE': 'pqgo'
|
||||
|
||||
pgpool:
|
||||
profiles: ['pgpool']
|
||||
image: 'pgpool/pgpool:4.4.3'
|
||||
ports: ['127.0.0.1:7432:7432']
|
||||
volumes: ['./testdata/pgpool:/init', './testdata/ssl:/ssl']
|
||||
entrypoint: '/init/entry.sh'
|
||||
environment:
|
||||
'PGPOOL_PARAMS_PORT': '7432'
|
||||
'PGPOOL_PARAMS_BACKEND_HOSTNAME0': 'pg18'
|
||||
|
||||
cockroach:
|
||||
profiles: ['cockroach']
|
||||
image: 'cockroachdb/cockroach:latest-v26.1'
|
||||
ports: ['127.0.0.1:26257:26257']
|
||||
volumes: ['./testdata/cockroach:/docker-entrypoint-initdb.d', './testdata/ssl:/ssl']
|
||||
command: ['start-single-node', '--accept-sql-without-tls', '--certs-dir=/ssl2']
|
||||
healthcheck: {test: ['CMD-SHELL', '/cockroach/cockroach node status --insecure --user=pqgo'], start_period: '30s', start_interval: '1s'}
|
||||
|
||||
pg18:
|
||||
image: 'postgres:18'
|
||||
ports: ['127.0.0.1:5432:5432']
|
||||
entrypoint: '/init/entry.sh'
|
||||
volumes: ['./testdata/postgres:/init', './testdata/ssl:/ssl']
|
||||
shm_size: '128mb'
|
||||
healthcheck: {test: ['CMD-SHELL', 'pg_isready -U pqgo -d pqgo'], start_period: '30s', start_interval: '1s'}
|
||||
environment:
|
||||
'POSTGRES_DATABASE': 'pqgo'
|
||||
'POSTGRES_USER': 'pqgo'
|
||||
'POSTGRES_PASSWORD': 'unused'
|
||||
pg17:
|
||||
profiles: ['pg17']
|
||||
image: 'postgres:17'
|
||||
ports: ['127.0.0.1:5432:5432']
|
||||
entrypoint: '/init/entry.sh'
|
||||
volumes: ['./testdata/postgres:/init', './testdata/ssl:/ssl']
|
||||
shm_size: '128mb'
|
||||
healthcheck: {test: ['CMD-SHELL', 'pg_isready -U pqgo -d pqgo'], start_period: '30s', start_interval: '1s'}
|
||||
environment:
|
||||
'POSTGRES_DATABASE': 'pqgo'
|
||||
'POSTGRES_USER': 'pqgo'
|
||||
'POSTGRES_PASSWORD': 'unused'
|
||||
pg16:
|
||||
profiles: ['pg16']
|
||||
image: 'postgres:16'
|
||||
ports: ['127.0.0.1:5432:5432']
|
||||
entrypoint: '/init/entry.sh'
|
||||
volumes: ['./testdata/postgres:/init', './testdata/ssl:/ssl']
|
||||
shm_size: '128mb'
|
||||
healthcheck: {test: ['CMD-SHELL', 'pg_isready -U pqgo -d pqgo'], start_period: '30s', start_interval: '1s'}
|
||||
environment:
|
||||
'POSTGRES_DATABASE': 'pqgo'
|
||||
'POSTGRES_USER': 'pqgo'
|
||||
'POSTGRES_PASSWORD': 'unused'
|
||||
pg15:
|
||||
profiles: ['pg15']
|
||||
image: 'postgres:15'
|
||||
ports: ['127.0.0.1:5432:5432']
|
||||
entrypoint: '/init/entry.sh'
|
||||
volumes: ['./testdata/postgres:/init', './testdata/ssl:/ssl']
|
||||
shm_size: '128mb'
|
||||
healthcheck: {test: ['CMD-SHELL', 'pg_isready -U pqgo -d pqgo'], start_period: '30s', start_interval: '1s'}
|
||||
environment:
|
||||
'POSTGRES_DATABASE': 'pqgo'
|
||||
'POSTGRES_USER': 'pqgo'
|
||||
'POSTGRES_PASSWORD': 'unused'
|
||||
pg14:
|
||||
profiles: ['pg14']
|
||||
image: 'postgres:14'
|
||||
ports: ['127.0.0.1:5432:5432']
|
||||
entrypoint: '/init/entry.sh'
|
||||
volumes: ['./testdata/postgres:/init', './testdata/ssl:/ssl']
|
||||
shm_size: '128mb'
|
||||
healthcheck: {test: ['CMD-SHELL', 'pg_isready -U pqgo -d pqgo'], start_period: '30s', start_interval: '1s'}
|
||||
environment:
|
||||
'POSTGRES_DATABASE': 'pqgo'
|
||||
'POSTGRES_USER': 'pqgo'
|
||||
'POSTGRES_PASSWORD': 'unused'
|
||||
Reference in New Issue
Block a user