mirror of
https://github.com/gofiber/storage.git
synced 2025-10-05 16:48:25 +08:00
📦 add dynamodb
This commit is contained in:
@@ -99,6 +99,9 @@ var noRows = "sql: no rows in result set"
|
||||
|
||||
// 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
|
||||
|
Reference in New Issue
Block a user