MCPcopy Create free account
hub / github.com/devaccuracy/ledgerforge / CreateAccount

Method CreateAccount

database/repository.go:115–115  ·  view source on GitHub ↗
(account model.Account)

Source from the content-addressed store, hash-verified

113// account defines methods for handling accounts.
114type account interface {
115 CreateAccount(account model.Account) (model.Account, error) // Creates a new account
116 GetAccountByID(id string, include []string) (*model.Account, error) // Retrieves an account by ID with additional data
117 GetAllAccounts() ([]model.Account, error) // Retrieves all accounts (legacy)
118 GetAccountByNumber(number string) (*model.Account, error) // Retrieves an account by its number

Callers 3

CreateAccountMethod · 0.65
TestGetAccountFunction · 0.65
CreateAccountMethod · 0.65

Implementers 2

Datasourcedatabase/db.go
MockDataSourcedatabase/mocks/repo_mocks.go

Calls

no outgoing calls

Tested by 1

TestGetAccountFunction · 0.52