func StoreFrom(to, from GenericStorer) {
	if to == nil || from == nil {
		return
	}
	to.SetGenericStore(from.GenericStore())
}
StoreFrom sets the generic store of `from` in `to`.
package kallax
import (
	"bytes"
	"database/sql"
	"errors"
	"fmt"
	"log"
	"time"
	"github.com/Masterminds/squirrel"
	"github.com/lann/builder"
)
var (
	ErrNonNewDocument = errors.New("kallax: cannot insert a non new document")
	ErrNewDocument = errors.New("kallax: cannot updated a new document")
	ErrEmptyID = errors.New("kallax: a record without id is not allowed")
	ErrNoRowUpdate = errors.New("kallax: update affected no rows")
	ErrNotWritable = errors.New("kallax: record is not writable")
	ErrStop = errors.New("kallax: stopped ForEach execution")
	ErrInvalidTxCallback = errors.New("kallax: invalid transaction callback given")
	ErrNotFound = errors.New("kallax: entity not found")
	ErrCantSetID = errors.New("kallax: model does not have an auto incrementable primary key, it needs to implement IDSetter interface")
	ErrNoColumns = errors.New("kallax: your model does not have any column besides its autoincrementable primary key and cannot be inserted")
)
type GenericStorer interface {
	GenericStore() *Store
	SetGenericStore(*Store)
}