/*
 * ac_summary_rebuild_dbio.h - ac 모듈 DB 접근 계층 copybook (ac_summary_rebuild_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: INSERT INTO ... SELECT ... GROUP BY ... ON CONFLICT DO UPDATE (재집계 upsert).
 */
#ifndef AC_SUMMARY_REBUILD_DBIO_H
#define AC_SUMMARY_REBUILD_DBIO_H

typedef struct { char biz_date[16]; long merchants; } ac_summary_rebuild_rec_t;

long acdb_summary_rebuild_from_purchase(const char *bizdate);

#endif /* AC_SUMMARY_REBUILD_DBIO_H */
