aboutsummaryrefslogtreecommitdiff
path: root/src/backenddb
ModeNameSize
-rw-r--r--.gitignore15logplain
-rw-r--r--Makefile.am8873logplain
-rw-r--r--drop.sql1045logplain
-rw-r--r--merchant-0001.sql38571logplain
-rw-r--r--merchant-0002.sql7414logplain
-rw-r--r--merchant-0003.sql1711logplain
-rw-r--r--merchant-0004.sql1035logplain
-rw-r--r--merchant-0005.sql1447logplain
-rw-r--r--merchant-0006.sql2274logplain
-rw-r--r--merchant-0007.sql1205logplain
-rw-r--r--merchant-0008.sql2111logplain
-rw-r--r--merchant-0009.sql1494logplain
-rw-r--r--merchant-0010.sql2403logplain
-rw-r--r--merchant-0011.sql1361logplain
-rw-r--r--merchant-0012.sql1139logplain
-rw-r--r--merchantdb-postgres.conf172logplain
-rw-r--r--merchantdb_helper.c2765logplain
-rw-r--r--merchantdb_plugin.c2433logplain
-rw-r--r--pg_account_kyc_get_status.c6170logplain
-rw-r--r--pg_account_kyc_get_status.h1872logplain
-rw-r--r--pg_account_kyc_set_failed.c3446logplain
-rw-r--r--pg_account_kyc_set_failed.h1762logplain
-rw-r--r--pg_account_kyc_set_failed.sql2237logplain
-rw-r--r--pg_account_kyc_set_status.c4001logplain
-rw-r--r--pg_account_kyc_set_status.h2197logplain
-rw-r--r--pg_account_kyc_set_status.sql2636logplain
-rw-r--r--pg_activate_account.c1931logplain
-rw-r--r--pg_activate_account.h1432logplain
-rw-r--r--pg_check_transfer_exists.c2233logplain
-rw-r--r--pg_check_transfer_exists.h1568logplain
-rw-r--r--pg_delete_category.c1912logplain
-rw-r--r--pg_delete_category.h1462logplain
-rw-r--r--pg_delete_contract_terms.c2320logplain
-rw-r--r--pg_delete_contract_terms.h1836logplain
-rw-r--r--pg_delete_exchange_accounts.c1704logplain
-rw-r--r--pg_delete_exchange_accounts.h1390logplain
-rw-r--r--pg_delete_instance_private_key.c1799logplain
-rw-r--r--pg_delete_instance_private_key.h1369logplain
-rw-r--r--pg_delete_login_token.c1874logplain
-rw-r--r--pg_delete_login_token.h1345logplain
-rw-r--r--pg_delete_order.c3302logplain
-rw-r--r--pg_delete_order.h1615logplain
-rw-r--r--pg_delete_otp.c1856logplain
-rw-r--r--pg_delete_otp.h1404logplain
-rw-r--r--pg_delete_pending_webhook.c1726logplain
-rw-r--r--pg_delete_pending_webhook.h1435logplain
-rw-r--r--pg_delete_product.c2156logplain
-rw-r--r--pg_delete_product.h1528logplain
-rw-r--r--pg_delete_template.c1945logplain
-rw-r--r--pg_delete_template.h1443logplain
-rw-r--r--pg_delete_token_family.c1974logplain
-rw-r--r--pg_delete_token_family.h1443logplain
-rw-r--r--pg_delete_transfer.c2041logplain
-rw-r--r--pg_delete_transfer.h1551logplain
-rw-r--r--pg_delete_webhook.c1925logplain
-rw-r--r--pg_delete_webhook.h1423logplain
-rw-r--r--pg_expire_locks.c2711logplain
-rw-r--r--pg_expire_locks.h1228logplain
-rw-r--r--pg_get_kyc_limits.c2635logplain
-rw-r--r--pg_get_kyc_limits.h1720logplain
-rw-r--r--pg_get_kyc_status.c3733logplain
-rw-r--r--pg_get_kyc_status.h2358logplain
-rw-r--r--pg_helper.c3973logplain
-rw-r--r--pg_helper.h4484logplain
-rw-r--r--pg_inactivate_account.c1949logplain
-rw-r--r--pg_inactivate_account.h1451logplain
-rw-r--r--pg_increase_refund.c19897logplain
-rw-r--r--pg_increase_refund.h2365logplain
-rw-r--r--pg_insert_account.c2831logplain
-rw-r--r--pg_insert_account.h1328logplain
-rw-r--r--pg_insert_category.c2380logplain
-rw-r--r--pg_insert_category.h1606logplain
-rw-r--r--pg_insert_contract_terms.c4552logplain
-rw-r--r--pg_insert_contract_terms.h1969logplain
-rw-r--r--pg_insert_deposit.c2897logplain
-rw-r--r--pg_insert_deposit.h1914logplain
-rw-r--r--pg_insert_deposit_confirmation.c5366logplain
-rw-r--r--pg_insert_deposit_confirmation.h2535logplain
-rw-r--r--pg_insert_deposit_to_transfer.c3063logplain
-rw-r--r--pg_insert_deposit_to_transfer.h1438logplain
-rw-r--r--pg_insert_deposit_to_transfer.sql4147logplain
-rw-r--r--pg_insert_exchange_account.c2410logplain
-rw-r--r--pg_insert_exchange_account.h1897logplain
-rw-r--r--pg_insert_exchange_keys.c2434logplain
-rw-r--r--pg_insert_exchange_keys.h1319logplain
-rw-r--r--pg_insert_exchange_signkey.c2408logplain
-rw-r--r--pg_insert_exchange_signkey.h2130logplain
-rw-r--r--pg_insert_instance.c3760logplain
-rw-r--r--pg_insert_instance.h1731logplain
-rw-r--r--pg_insert_issued_token.c2346logplain
-rw-r--r--pg_insert_issued_token.h1632logplain
-rw-r--r--pg_insert_login_token.c2241logplain
-rw-r--r--pg_insert_login_token.h1617logplain
-rw-r--r--pg_insert_order.c3637logplain
-rw-r--r--pg_insert_order.h2286logplain
-rw-r--r--pg_insert_order_lock.c3026logplain
-rw-r--r--pg_insert_order_lock.h1808logplain
-rw-r--r--pg_insert_otp.c2544logplain
-rw-r--r--pg_insert_otp.h1481logplain
-rw-r--r--pg_insert_pending_webhook.c2552logplain
-rw-r--r--pg_insert_pending_webhook.h1787logplain
-rw-r--r--pg_insert_product.c3571logplain
-rw-r--r--pg_insert_product.h2083logplain
-rw-r--r--pg_insert_product.sql3763logplain
-rw-r--r--pg_insert_refund_proof.c2177logplain
-rw-r--r--pg_insert_refund_proof.h1626logplain
-rw-r--r--pg_insert_spent_token.c2671logplain
-rw-r--r--pg_insert_spent_token.h1682logplain
-rw-r--r--pg_insert_template.c2515logplain
-rw-r--r--pg_insert_template.h1631logplain
-rw-r--r--pg_insert_token_family.c3022logplain
-rw-r--r--pg_insert_token_family.h1536logplain
-rw-r--r--pg_insert_token_family_key.c3733logplain
-rw-r--r--pg_insert_token_family_key.h1830logplain
-rw-r--r--pg_insert_transfer.c2626logplain
-rw-r--r--pg_insert_transfer.h1872logplain
-rw-r--r--pg_insert_transfer_details.c6019logplain
-rw-r--r--pg_insert_transfer_details.h1907logplain
-rw-r--r--pg_insert_transfer_details.sql6195logplain
-rw-r--r--pg_insert_webhook.c2492logplain
-rw-r--r--pg_insert_webhook.h1504logplain
-rw-r--r--pg_lock_product.c2951logplain
-rw-r--r--pg_lock_product.h1872logplain
-rw-r--r--pg_lookup_account.c2319logplain
-rw-r--r--pg_lookup_account.h1507logplain
-rw-r--r--pg_lookup_all_products.c6111logplain
-rw-r--r--pg_lookup_all_products.h1529logplain
-rw-r--r--pg_lookup_categories.c4567logplain
-rw-r--r--pg_lookup_categories.h1531logplain
-rw-r--r--pg_lookup_contract_terms.c2850logplain
-rw-r--r--pg_lookup_contract_terms.h1668logplain
-rw-r--r--pg_lookup_contract_terms2.c3441logplain
-rw-r--r--pg_lookup_contract_terms2.h1976logplain
-rw-r--r--pg_lookup_contract_terms3.c3838logplain
-rw-r--r--pg_lookup_contract_terms3.h2126logplain
-rw-r--r--pg_lookup_deposits.c5109logplain
-rw-r--r--pg_lookup_deposits.h1673logplain
-rw-r--r--pg_lookup_deposits_by_contract_and_coin.c11157logplain
-rw-r--r--pg_lookup_deposits_by_contract_and_coin.h1981logplain
-rw-r--r--pg_lookup_deposits_by_order.c5211logplain
-rw-r--r--pg_lookup_deposits_by_order.h1560logplain
-rw-r--r--pg_lookup_instance_auth.c2127logplain
-rw-r--r--pg_lookup_instance_auth.h1399logplain
-rw-r--r--pg_lookup_instances.c9788logplain
-rw-r--r--pg_lookup_instances.h1976logplain
-rw-r--r--pg_lookup_order.c3281logplain
-rw-r--r--pg_lookup_order.h1887logplain
-rw-r--r--pg_lookup_order_by_fulfillment.c2999logplain
-rw-r--r--pg_lookup_order_by_fulfillment.h1971logplain
-rw-r--r--pg_lookup_order_status.c2553logplain
-rw-r--r--pg_lookup_order_status.h1648logplain
-rw-r--r--pg_lookup_order_status_by_serial.c2972logplain
-rw-r--r--pg_lookup_order_status_by_serial.h1893logplain
-rw-r--r--pg_lookup_order_summary.c2879logplain
-rw-r--r--pg_lookup_order_summary.h1687logplain
-rw-r--r--pg_lookup_orders.c9543logplain
-rw-r--r--pg_lookup_orders.h1578logplain
-rw-r--r--pg_lookup_otp_devices.c3964logplain
-rw-r--r--pg_lookup_otp_devices.h1534logplain
-rw-r--r--pg_lookup_pending_deposits.c6565logplain
-rw-r--r--pg_lookup_pending_deposits.h1652logplain
-rw-r--r--pg_lookup_pending_webhooks.c7845logplain
-rw-r--r--pg_lookup_pending_webhooks.h2824logplain
-rw-r--r--pg_lookup_product.c4701logplain
-rw-r--r--pg_lookup_product.h1837logplain
-rw-r--r--pg_lookup_products.c4516logplain
-rw-r--r--pg_lookup_products.h1763logplain
-rw-r--r--pg_lookup_refund_proof.c2394logplain
-rw-r--r--pg_lookup_refund_proof.h1572logplain
-rw-r--r--pg_lookup_refunds.c4326logplain
-rw-r--r--pg_lookup_refunds.h1568logplain
-rw-r--r--pg_lookup_refunds_detailed.c6022logplain
-rw-r--r--pg_lookup_refunds_detailed.h1632logplain
-rw-r--r--pg_lookup_spent_tokens_by_order.c5041logplain
-rw-r--r--pg_lookup_spent_tokens_by_order.h1587logplain
-rw-r--r--pg_lookup_template.c3720logplain
-rw-r--r--pg_lookup_template.h1599logplain
-rw-r--r--pg_lookup_templates.c3932logplain
-rw-r--r--pg_lookup_templates.h1509logplain
-rw-r--r--pg_lookup_token_families.c4560logplain
-rw-r--r--pg_lookup_token_families.h1569logplain
-rw-r--r--pg_lookup_token_family.c4357logplain
-rw-r--r--pg_lookup_token_family.h1675logplain
-rw-r--r--pg_lookup_token_family_key.c6293logplain
-rw-r--r--pg_lookup_token_family_key.h2186logplain
-rw-r--r--pg_lookup_transfer.c4484logplain
-rw-r--r--pg_lookup_transfer.h2524logplain
-rw-r--r--pg_lookup_transfer_details.c4832logplain
-rw-r--r--pg_lookup_transfer_details.h1659logplain
-rw-r--r--pg_lookup_transfer_details_by_order.c5581logplain
-rw-r--r--pg_lookup_transfer_details_by_order.h1665logplain
-rw-r--r--pg_lookup_transfer_summary.c4518logplain
-rw-r--r--pg_lookup_transfer_summary.h1659logplain
-rw-r--r--pg_lookup_transfers.c8049logplain
-rw-r--r--pg_lookup_transfers.h2563logplain
-rw-r--r--pg_lookup_webhook.c3257logplain
-rw-r--r--pg_lookup_webhook.h1576logplain
-rw-r--r--pg_lookup_webhook_by_event.c4836logplain
-rw-r--r--pg_lookup_webhook_by_event.h1670logplain
-rw-r--r--pg_lookup_webhooks.c3849logplain
-rw-r--r--pg_lookup_webhooks.h1491logplain
-rw-r--r--pg_lookup_wire_fee.c3255logplain
-rw-r--r--pg_lookup_wire_fee.h2042logplain
-rw-r--r--pg_mark_contract_paid.c4396logplain
-rw-r--r--pg_mark_contract_paid.h1727logplain
-rw-r--r--pg_mark_order_wired.c1662logplain
-rw-r--r--pg_mark_order_wired.h1285logplain
-rw-r--r--pg_purge_instance.c1888logplain
-rw-r--r--pg_purge_instance.h1371logplain
-rw-r--r--pg_refund_coin.c2913logplain
-rw-r--r--pg_refund_coin.h2002logplain
-rw-r--r--pg_select_account.c2939logplain
-rw-r--r--pg_select_account.h1491logplain
-rw-r--r--pg_select_account_by_uri.c3119logplain
-rw-r--r--pg_select_account_by_uri.h1532logplain
-rw-r--r--pg_select_accounts.c5452logplain
-rw-r--r--pg_select_accounts.h1456logplain
-rw-r--r--pg_select_accounts_by_exchange.c4160logplain
-rw-r--r--pg_select_accounts_by_exchange.h1511logplain
-rw-r--r--pg_select_category.c3322logplain
-rw-r--r--pg_select_category.h1865logplain
-rw-r--r--pg_select_category_by_name.c2317logplain
-rw-r--r--pg_select_category_by_name.h1651logplain
-rw-r--r--pg_select_exchange_keys.c2254logplain
-rw-r--r--pg_select_exchange_keys.h1441logplain
-rw-r--r--pg_select_login_token.c2384logplain
-rw-r--r--pg_select_login_token.h1552logplain
-rw-r--r--pg_select_open_transfers.c4809logplain
-rw-r--r--pg_select_open_transfers.h1626logplain
-rw-r--r--pg_select_otp.c3125logplain
-rw-r--r--pg_select_otp.h1545logplain
-rw-r--r--pg_select_otp_serial.c2204logplain
-rw-r--r--pg_select_otp_serial.h1488logplain
-rw-r--r--pg_select_wirewatch_accounts.c4192logplain
-rw-r--r--pg_select_wirewatch_accounts.h1406logplain
-rw-r--r--pg_set_transfer_status_to_confirmed.c2385logplain
-rw-r--r--pg_set_transfer_status_to_confirmed.h1622logplain
-rw-r--r--pg_store_wire_fee_by_exchange.c2893logplain
-rw-r--r--pg_store_wire_fee_by_exchange.h1861logplain
-rw-r--r--pg_template.c1005logplain
-rw-r--r--pg_template.h987logplain
-rwxr-xr-xpg_template.sh716logplain
-rw-r--r--pg_unlock_inventory.c1657logplain
-rw-r--r--pg_unlock_inventory.h1475logplain
-rw-r--r--pg_update_account.c2288logplain
-rw-r--r--pg_update_account.h1583logplain
-rw-r--r--pg_update_category.c2168logplain
-rw-r--r--pg_update_category.h1684logplain
-rw-r--r--pg_update_contract_terms.c3668logplain
-rw-r--r--pg_update_contract_terms.h1965logplain
-rw-r--r--pg_update_deposit_confirmation_status.c2336logplain
-rw-r--r--pg_update_deposit_confirmation_status.h1781logplain
-rw-r--r--pg_update_instance.c2612logplain
-rw-r--r--pg_update_instance.h1313logplain
-rw-r--r--pg_update_instance_auth.c1864logplain
-rw-r--r--pg_update_instance_auth.h1521logplain
-rw-r--r--pg_update_otp.c2346logplain
-rw-r--r--pg_update_otp.h1647logplain
-rw-r--r--pg_update_pending_webhook.c1903logplain
-rw-r--r--pg_update_pending_webhook.h1505logplain
-rw-r--r--pg_update_product.c4469logplain
-rw-r--r--pg_update_product.h2949logplain
-rw-r--r--pg_update_product.sql3256logplain
-rw-r--r--pg_update_template.c2818logplain
-rw-r--r--pg_update_template.h1687logplain
-rw-r--r--pg_update_token_family.c2538logplain
-rw-r--r--pg_update_token_family.h1688logplain
-rw-r--r--pg_update_transfer_status.c2142logplain
-rw-r--r--pg_update_transfer_status.h1731logplain
-rw-r--r--pg_update_webhook.c2483logplain
-rw-r--r--pg_update_webhook.h1665logplain
-rw-r--r--pg_update_wirewatch_progress.c2111logplain
-rw-r--r--pg_update_wirewatch_progress.h1546logplain
-rw-r--r--plugin_merchantdb_postgres.c20779logplain
-rw-r--r--procedures.sql.in986logplain
-rw-r--r--test-merchantdb-postgres.conf217logplain
-rw-r--r--test.conf4162logplain
-rw-r--r--test_merchantdb.c244736logplain
-rw-r--r--versioning.sql11758logplain