storj/satellite/satellitedb
Yingrong Zhao 954ca3c6ee
add db implementation for user_credits table (#2169)
* add dbx queries

* add migration file

* start service

* Add TotalReferredCountByUserId and availableCreditsByUserID

* implement UserCredits interface and UserCredit struct type

* add UserCredits into consoledb

* add setupData helper function

* add test for update

* update lock file

* fix lint error

* add invalidUserCredits tests

* rename method

* adds comments

* add checks for erros in setupData

* change update method to only execute one query per request

* rename vairable

* should return a signal from Update method if the charge is not fully complete

* changes for readability

* prevent sql injection

* rename

* improve readability
2019-06-18 11:55:47 -04:00
..
dbx nodes db - adds alpha and beta reputation fields (#2215) 2019-06-18 09:45:02 -04:00
pbold Remove bwagreement leftovers (#2140) 2019-06-06 18:16:14 +03:00
satellitedbtest Optimize KnownUnreliableOrOffline SQL query (#1968) 2019-05-19 17:10:46 +02:00
testdata nodes db - adds alpha and beta reputation fields (#2215) 2019-06-18 09:45:02 -04:00
apikeys.go satellite: add monkit task to missing places (#2108) 2019-06-04 13:55:37 +02:00
bucketusage.go satellite: add monkit task to missing places (#2108) 2019-06-04 13:55:37 +02:00
certdb.go satellite: add monkit task to missing places (#2108) 2019-06-04 13:55:37 +02:00
consoledb_test.go Console postgres tests (#1188) 2019-01-31 15:01:13 +02:00
consoledb.go add db implementation for user_credits table (#2169) 2019-06-18 11:55:47 -04:00
containment.go satellite: add monkit task to missing places (#2108) 2019-06-04 13:55:37 +02:00
database.go value attribution DB interface Insert & Get method support (#2200) 2019-06-18 09:06:33 -04:00
irreparabledb.go satellite: add monkit task to missing places (#2108) 2019-06-04 13:55:37 +02:00
locked.go add db implementation for user_credits table (#2169) 2019-06-18 11:55:47 -04:00
lockedtx.go ConsoleDB merge and buckets table creation (#1066) 2019-01-16 15:23:28 -05:00
marketingdb.go create db implementation for offer table (#2031) 2019-06-04 15:17:01 -04:00
migrate_postgres_test.go Enable Scopelint Linter (#2049) 2019-05-29 09:30:16 -04:00
migrate.go nodes db - adds alpha and beta reputation fields (#2215) 2019-06-18 09:45:02 -04:00
offers.go split update methods into two for offer data (#2133) 2019-06-12 11:53:19 -04:00
orders.go satellite/orders: batch update storage node allocations (#2146) 2019-06-10 17:58:28 +03:00
overlaycache.go nodes db - adds alpha and beta reputation fields (#2215) 2019-06-18 09:45:02 -04:00
projectaccounting.go satellite: add monkit task to missing places (#2108) 2019-06-04 13:55:37 +02:00
projectinvoicestamps.go Console add payments to service (#2100) 2019-06-06 19:07:14 +03:00
projectmembers_test.go V3-1307 combine first and last name to full name (#1569) 2019-03-27 14:33:32 +02:00
projectmembers.go satellite: add monkit task to missing places (#2108) 2019-06-04 13:55:37 +02:00
projectpaymentinfos.go Console add payments to service (#2100) 2019-06-06 19:07:14 +03:00
projects_test.go satellite: add monkit task to missing places (#2108) 2019-06-04 13:55:37 +02:00
projects.go Console add payments to service (#2100) 2019-06-06 19:07:14 +03:00
regtokens.go satellite: add monkit task to missing places (#2108) 2019-06-04 13:55:37 +02:00
repairqueue.go satellite: add monkit task to missing places (#2108) 2019-06-04 13:55:37 +02:00
resetpasstokens.go satellite: add monkit task to missing places (#2108) 2019-06-04 13:55:37 +02:00
storagenodeaccounting.go satellite: add monkit task to missing places (#2108) 2019-06-04 13:55:37 +02:00
usagerollups.go satellite: add monkit task to missing places (#2108) 2019-06-04 13:55:37 +02:00
usercredits_test.go add db implementation for user_credits table (#2169) 2019-06-18 11:55:47 -04:00
usercredits.go add db implementation for user_credits table (#2169) 2019-06-18 11:55:47 -04:00
userpayments.go Console add payments to service (#2100) 2019-06-06 19:07:14 +03:00
users_test.go Use mail.test as domain in emails (#2224) 2019-06-18 02:28:40 +02:00
users.go Console add payments to service (#2100) 2019-06-06 19:07:14 +03:00
utils_test.go Optimize KnownUnreliableOrOffline SQL query (#1968) 2019-05-19 17:10:46 +02:00
utils.go Optimize KnownUnreliableOrOffline SQL query (#1968) 2019-05-19 17:10:46 +02:00
valueattribution.go value attribution DB interface Insert & Get method support (#2200) 2019-06-18 09:06:33 -04:00