// Insert insert a RecordConvertible, choose collection automatically
Insert insert a RecordConvertible, choose collection automatically
// Insert insert a RecordConvertible choose collection automatically
func (d *MongoDB) Insert(rc xlog.RecordConvertible) (err error) {
	var r xlog.Record
	if r, err = rc.ToRecord(); err != nil {
		return
	}
	return d.Collection(r.Timestamp).Insert(&r)
}
func ( d * MongoDB ) Insert ( rc xlog . RecordConvertible ) ( err error ) { var r xlog . Record if r , err = rc . ToRecord ( ) ; err != nil { return } return d . Collection ( r . Timestamp ) . Insert ( & r ) }
Insert insert a RecordConvertible, choose collection automatically
Insert insert a RecordConvertible choose collection automatically