/*
 * au_summary_rebuild_dbio.h - au 모듈 DB 접근 계층 copybook (au_summary_rebuild_dbio, part of libaudbio.a).
 * ECPG functions; run on the caller's XA branch (no EXEC SQL CONNECT).
 * Return convention: >=0 ok, -1 = SQL error.
 * Shape: INSERT INTO au_summary SELECT ... FILTER ... GROUP BY ... ON CONFLICT DO UPDATE.
 */
#ifndef AU_SUMMARY_REBUILD_DBIO_H
#define AU_SUMMARY_REBUILD_DBIO_H

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

long audb_summary_rebuild_from_auth(const char *bizdate);

#endif /* AU_SUMMARY_REBUILD_DBIO_H */
