top
(README.md)
### Store ###

This is extremely minimalistic CSV record store implementation, created just as part of [Clio](https://github.com/grsmv/clio) example, and used for storing simple data, gathered from web-face of example application.

It supports CRUD actions for records. Record is a single row in CSV table, which itself is a Store.

Please don't use this package anywhere, 'cause it is inefficient, dead-simple implementation of a stupid idea.

#### Usage

##### Opening a store (CSV file) for reading or modifications: 

``` go
s, _ := store.Open ("names.csv")
```

##### Retrieving record:

```go
results := s.Where ("last_name", "Johanson")
// or
results := s.WhereLike ("last_name", "joh")
```

##### Adding new record:

``` go
s.Add (map[string]string {
   "first_letter": "z",
   "first_name": "Zahria",
   "last_name": "Johnes" })
```

##### Updating record:

``` go
s.Update ("_id", "as9", map[string]string {
  "_id": "as9",
  "first_letter": "a",
  "first_name": "Adam",
  "last_name": "Zakaz" })

```

##### Removing record:

```go
s.Remove ("last_name", "Zibert")
```

Imports 1 package(s) ΒΆ

  1. launchpad.net/gocheck