postgres.go
func (s PostgresObjectStore) Before(id string, count int, skip int, store string) (prows ObjectRows, err error) {
	rows, err := s.db.Table(safeStoreName(store)).Select("raw").Where("id < ?", id).Limit(count).Offset(skip).Rows()
	if err != nil {
		if err == sql.ErrNoRows {
			return nil, ErrNotFound
		}
		return
	}
	prows = PostgresRows{rows}
	return
}
func (s PostgresObjectStore) Before(id string, count int, skip int, store string) (prows ObjectRows, err error) {
	rows, err := s.db.Table(safeStoreName(store)).Select("raw").Where("id < ?", id).Limit(count).Offset(skip).Rows()
	if err != nil {
		if err == sql.ErrNoRows {
			return nil, ErrNotFound
		}
		return
	}
	prows = PostgresRows{rows}
	return
}
func ( s PostgresObjectStore ) Before ( id string , count int , skip int , store string ) ( prows ObjectRows , err error ) { rows , err := s . db . Table ( safeStoreName ( store ) ) . Select ( " " ) . Where ( " " , id ) . Limit ( count ) . Offset ( skip ) . Rows ( ) if err != nil { if err == sql . ErrNoRows { return nil , ErrNotFound } return } prows = PostgresRows { rows } return }
//This will retrieve all old rows that were created before the row with id was created
// [1, 2, 3, 4], before 2 will return [3, 4]
This will retrieve all old rows that were created before the row with id was created [ 1 2 3 4 ] before 2 will return [ 3 4 ]