aboutsummaryrefslogtreecommitdiff
path: root/src/backenddb
ModeNameSize
-rw-r--r--.gitignore15logplain
-rw-r--r--Makefile.am8068logplain
-rw-r--r--drop.sql1045logplain
-rw-r--r--merchant-0001.sql38526logplain
-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.sql1280logplain
-rw-r--r--merchant-0007.sql1205logplain
-rw-r--r--merchantdb-postgres.conf180logplain
-rw-r--r--merchantdb_helper.c2248logplain
-rw-r--r--merchantdb_plugin.c3449logplain
-rw-r--r--pg_account_kyc_get_status.c5627logplain
-rw-r--r--pg_account_kyc_get_status.h1872logplain
-rw-r--r--pg_account_kyc_set_status.c3209logplain
-rw-r--r--pg_account_kyc_set_status.h2440logplain
-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_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.c1898logplain
-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.c2040logplain
-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_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.c15031logplain
-rw-r--r--pg_increase_refund.h2249logplain
-rw-r--r--pg_insert_account.c2525logplain
-rw-r--r--pg_insert_account.h1386logplain
-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.c5353logplain
-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.sql4144logplain
-rw-r--r--pg_insert_exchange_account.c2382logplain
-rw-r--r--pg_insert_exchange_account.h1880logplain
-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.c3841logplain
-rw-r--r--pg_insert_instance.h1731logplain
-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.c2808logplain
-rw-r--r--pg_insert_product.h1504logplain
-rw-r--r--pg_insert_refund_proof.c2177logplain
-rw-r--r--pg_insert_refund_proof.h1626logplain
-rw-r--r--pg_insert_spent_token.c2797logplain
-rw-r--r--pg_insert_spent_token.h1804logplain
-rw-r--r--pg_insert_template.c2683logplain
-rw-r--r--pg_insert_template.h1631logplain
-rw-r--r--pg_insert_token_family.c2881logplain
-rw-r--r--pg_insert_token_family.h1536logplain
-rw-r--r--pg_insert_token_family_key.c3683logplain
-rw-r--r--pg_insert_token_family_key.h1830logplain
-rw-r--r--pg_insert_transfer.c2604logplain
-rw-r--r--pg_insert_transfer.h1861logplain
-rw-r--r--pg_insert_transfer_details.c5997logplain
-rw-r--r--pg_insert_transfer_details.h1896logplain
-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.c2297logplain
-rw-r--r--pg_lookup_account.h1496logplain
-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.c9974logplain
-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.c6639logplain
-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.c4086logplain
-rw-r--r--pg_lookup_product.h1577logplain
-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_template.c3933logplain
-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.c4370logplain
-rw-r--r--pg_lookup_token_family.h1675logplain
-rw-r--r--pg_lookup_token_family_key.c6444logplain
-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.c7988logplain
-rw-r--r--pg_lookup_transfers.h2552logplain
-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.c2905logplain
-rw-r--r--pg_select_account.h1491logplain
-rw-r--r--pg_select_account_by_uri.c3122logplain
-rw-r--r--pg_select_account_by_uri.h1521logplain
-rw-r--r--pg_select_accounts.c4601logplain
-rw-r--r--pg_select_accounts.h1456logplain
-rw-r--r--pg_select_accounts_by_exchange.c4132logplain
-rw-r--r--pg_select_accounts_by_exchange.h1511logplain
-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.c4781logplain
-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.c4164logplain
-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_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.c2719logplain
-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.c2785logplain
-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.c3216logplain
-rw-r--r--pg_update_product.h2131logplain
-rw-r--r--pg_update_template.c2985logplain
-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.c2089logplain
-rw-r--r--pg_update_wirewatch_progress.h1535logplain
-rw-r--r--plugin_merchantdb_postgres.c19282logplain
-rw-r--r--procedures.sql.in838logplain
-rw-r--r--test-merchantdb-postgres.conf226logplain
-rw-r--r--test.conf4162logplain
-rw-r--r--test_merchantdb.c238203logplain
-rw-r--r--versioning.sql11758logplain