/*
 * ac_purchase_topn_dbio.h - ac 모듈 DB 접근 계층 copybook (ac_purchase_topn_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 row_number() 상위 N 매입 누적.
 */
#ifndef AC_PURCHASE_TOPN_DBIO_H
#define AC_PURCHASE_TOPN_DBIO_H

typedef struct { long rn; long purchase_id; long amount; } ac_topn_rec_t;

long acdb_topn_amount_sum(const char *bizdate, long topn);

#endif /* AC_PURCHASE_TOPN_DBIO_H */
