mirror of
https://github.com/gofiber/storage.git
synced 2025-10-16 13:41:26 +08:00
📦 add dynamodb
This commit is contained in:
@@ -97,6 +97,9 @@ func New(config ...Config) *Storage {
|
||||
|
||||
// Get value by key
|
||||
func (s *Storage) Get(key string) ([]byte, error) {
|
||||
if len(key) <= 0 {
|
||||
return nil, ErrNotExist
|
||||
}
|
||||
row := s.db.QueryRow(s.sqlSelect, key)
|
||||
// Add db response to data
|
||||
var (
|
||||
|
||||
Reference in New Issue
Block a user