push sets values for list stored in the bucket at given bucket, key, flag and values.
(bucket string, key []byte, flag uint16, values ...[]byte)
| 95 | |
| 96 | // push sets values for list stored in the bucket at given bucket, key, flag and values. |
| 97 | func (tx *Tx) push(bucket string, key []byte, flag uint16, values ...[]byte) error { |
| 98 | for _, value := range values { |
| 99 | err := tx.put(bucket, key, value, Persistent, flag, uint64(time.Now().Unix()), DataStructureList) |
| 100 | if err != nil { |
| 101 | return err |
| 102 | } |
| 103 | } |
| 104 | |
| 105 | return nil |
| 106 | } |
| 107 | |
| 108 | // getListWithDefault |
| 109 | // this function will get list, if list not exists, will create |
no test coverage detected