Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CostDataInsert ¶
type CostDataStorage ¶
type CostDataStorage struct { }
func (*CostDataStorage) CreateFile ¶
func (c *CostDataStorage) CreateFile(dbName string) (int, error)
return 0 if creation was a success, return 1 if file already exists or return -1 if an error occurred
func (*CostDataStorage) Insert ¶
func (c *CostDataStorage) Insert(data CostDataInsert) (int, error)
return error and -1 if insert was not successful, return 0 if insert was successful
func (*CostDataStorage) New ¶
func (c *CostDataStorage) New(dbName string) error
func (*CostDataStorage) Set ¶
func (c *CostDataStorage) Set(s string) error
create a database with named provided as arg
type Persistent ¶
type Persistent interface { NewPersistentStorage() CreateCostDataTable() InsertCustomer() }
Click to show internal directories.
Click to hide internal directories.