We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
我不确定这些点修改后,可以让 qmgo 变的更好,如果可以,我很乐意修改并 pr。
修改前:
修改后:
func SplitSortField(field string) (key string, sort int32) { key = field sort = 1 if len(field) == 0 { return key, sort } switch field[0] { case '+': key = strings.TrimPrefix(field, "+") sort = 1 case '-': key = strings.TrimPrefix(field, "-") sort = -1 } return }
func (c *Cursor) Next(result interface{}) bool { if c.err != nil { return false } if c.cursor.Next(c.ctx) { if err := c.cursor.Decode(result); err != nil { c.err = err return false } return true } return false }
func (s *Session) StartTransaction(ctx context.Context, cb func(sessCtx context.Context) (interface{}, error), opts ...*opts.TransactionOptions) (interface{}, error) { transactionOpts := options.Transaction() if len(opts) > 0 && opts[0].TransactionOptions != nil { transactionOpts = opts[0].TransactionOptions } return s.session.WithTransaction(ctx, wrapperCustomCb(cb), transactionOpts) }
期待您的回复 :-)
The text was updated successfully, but these errors were encountered:
StartTransaction
Sorry, something went wrong.
No branches or pull requests
我不确定这些点修改后,可以让 qmgo 变的更好,如果可以,我很乐意修改并 pr。
修改前:
修改后:
修改前:
修改后:
修改前:
修改后:
期待您的回复 :-)
The text was updated successfully, but these errors were encountered: