1
0
mirror of https://github.com/aclindsa/moneygo.git synced 2024-12-28 00:02:29 -05:00
Commit Graph

9 Commits

Author SHA1 Message Date
8ba6a3dbf2 testing: Add initial account transactions test
Update one SQL query to do an 'INNER JOIN' instead of an 'IN' with a
subquery. This avoids error messages like:
  Error 1235: This version of MariaDB doesn't yet support 'LIMIT & IN/ALL/ANY/SOME subquery'
2017-10-30 21:14:19 -04:00
3869f3a3b2 Get all current tests to pass with MySQL
This is done by requiring 'parseTime=true' in the MySQL DSN's (required
by github.com/go-sql-driver/mysql when Scan()ing to time.Time's), and
not forcing update counts to match if rows were updated to what they
already were.
2017-10-24 20:57:55 -04:00
09a5cf9a99 testing: Test fetching all transactions 2017-10-23 21:14:19 -04:00
41fb459680 testing: Add tests for updating transactions/splits 2017-10-21 06:50:31 -04:00
cdba839c66 testing: Add transaction-creation test 2017-10-16 05:39:41 -04:00
85a58c3ff8 go vet, go fmt 2017-10-14 20:38:40 -04:00
2ff1f47432 Remove duplicate *Tx versions of database access methods
Simplify naming to remove "Tx" now that all handlers only have access to
transactions anyway, and always use "tx" as the name of the variable
representing the SQL transactions (to make it less likely to cause
confusion with monetary transactions).
2017-10-14 19:41:13 -04:00
4e53a5e59c Use SQL transactions for the entirety of every request 2017-10-14 14:20:50 -04:00
d0a5980b85 First pass at reorganizing go code into sub-packages 2017-10-04 19:35:59 -04:00