async fn run_merge(user_id: Uuid, into: Uuid, from: Uuid, finish: Finish) -> Result<i64, CmdError> {
async fn lock_accounts(conn: &mut PgConnection, into: Uuid, from: Uuid) -> Result<(), Attempt> {
async fn refuse_cycle(conn: &mut PgConnection, into: Uuid, from: Uuid) -> Result<(), Attempt> {
let conflicts = sqlx::query_file!("sql/select/budget_amounts/merge_conflicts.sql", into, from)
async fn move_references(conn: &mut PgConnection, into: Uuid, from: Uuid) -> Result<i64, Attempt> {
async fn account_tags(conn: &mut PgConnection, account: Uuid) -> Result<Vec<StoredTag>, Attempt> {
async fn lock_from_tags(conn: &mut PgConnection, from: Uuid) -> Result<Vec<StoredTag>, Attempt> {
pub(crate) fn tags_to_move(into: &[StoredTag], from: &[StoredTag]) -> Result<Vec<Uuid>, CmdError> {