20 lines
300 B
Go
20 lines
300 B
Go
package postgres
|
|
|
|
import (
|
|
"database/sql"
|
|
"time"
|
|
|
|
"midnadimple.com/fog/internal/store"
|
|
)
|
|
|
|
func NewPostgresStorage(db *sql.DB) store.Storage {
|
|
return store.Storage{
|
|
Posts: &PostsStore{db},
|
|
Users: &UsersStore{db},
|
|
}
|
|
}
|
|
|
|
func parseTimestamp(valPtr *time.Time, str string) error {
|
|
|
|
return nil
|
|
}
|