This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| func DeleteCreatedEntities(db *gorm.DB) func() { | |
| hookName := "cleanupHook" | |
| type entity struct { | |
| table string | |
| key string | |
| value interface{} | |
| } | |
| var entries []entity |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| package main | |
| import ( | |
| "context" | |
| "database/sql" | |
| "fmt" | |
| "log" | |
| "sort" | |
| "github.com/jmoiron/sqlx" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| This application is used only by its owner, to read the owner's own | |
| bank accounts. No service is offered to other people. | |
| - Data: account details, balances and transactions from the owner's banks. | |
| - Purpose: personal bookkeeping. | |
| - Storage: only on the owner's own computer. | |
| - Sharing: no data is shared with third parties. | |
| - Warranty: none. |