fog/internal/store/postgres/postgres.go

21 lines
300 B
Go
Raw Permalink Normal View History

2024-12-30 10:02:01 +00:00
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
}