/*
 * ac_purchase_rankpid_dbio.h - ac 모듈 DB 접근 계층 copybook (ac_purchase_rankpid_dbio, part of libacdbio.a).
 * ECPG functions; run on the caller's XA branch (no EXEC SQL CONNECT).
 * Return convention: >=0 ok, -1 = SQL error.
 * Shape: window rank() 로 특정 매입의 순위 산정.
 */
#ifndef AC_PURCHASE_RANKPID_DBIO_H
#define AC_PURCHASE_RANKPID_DBIO_H

typedef struct { long rk; long purchase_id; long amount; } ac_rankpid_rec_t;

long acdb_purchase_rank_of(const char *bizdate, long pid);

#endif /* AC_PURCHASE_RANKPID_DBIO_H */
