Documentation ¶
Index ¶
Constants ¶
View Source
const (
SELECTACCOUNTINFO = "SELECT a.id, a.number, u.name, u.email FROM accounts a INNER JOIN users u ON a.user_id=u.id WHERE a.number = $1"
)
Variables ¶
This section is empty.
Functions ¶
func OpenDataBaseConnection ¶
Types ¶
type PostgresRepository ¶
type PostgresRepository struct {
// contains filtered or unexported fields
}
func NewPostgreRepository ¶
func NewPostgreRepository(dbConn *sql.DB) PostgresRepository
func (PostgresRepository) GetAccountInfo ¶
func (p PostgresRepository) GetAccountInfo(accountNumber string) (accounts.Account, error)
func (PostgresRepository) Save ¶
func (p PostgresRepository) Save(transactions []accounts.AccountTransaction) error
Click to show internal directories.
Click to hide internal directories.