func (b *BatchInsert) Flush(ctx context.Context) ([]int64, error) {
	if len(b.query) == b.qStartLen {
		return nil, ErrNoRowsInserted
	}
	err := b.flush(ctx)
	if b.ids == nil {
		return nil, err
	}
	ids := b.ids
	b.ids = make([]int64, 0)
	return ids, err
}
// Flush sends up any remaining inserts and if requested by the Config, the
// inserted record ids.
Flush sends up any remaining inserts and if requested by the Config, the
inserted record ids.
// Flush sends up any remaining inserts and if requested by the Config the // inserted record ids .
func (b *BatchInsert) Flush(ctx context.Context) ([]int64, error) {
	if len(b.query) == b.qStartLen {
		return nil, ErrNoRowsInserted
	}
	err := b.flush(ctx)
	if b.ids == nil {
		return nil, err
	}
	ids := b.ids
	b.ids = make([]int64, 0)
	return ids, err
}
func ( b * BatchInsert ) Flush ( ctx context . Context ) ( [ ] int64 , error ) { if len ( b . query ) == b . qStartLen { return nil , ErrNoRowsInserted } err := b . flush ( ctx ) if b . ids == nil { return nil , err } ids := b . ids b . ids = make ( [ ] int64 , 0 ) return ids , err }
Flush sends up any remaining inserts and if requested by the Config, the
inserted record ids.
Flush sends up any remaining inserts and if requested by the Config the inserted record ids .