interface-insert.tpl 460 B

12345
  1. Insert(ctx context.Context, data *{{.upperStartCamelObject}}) (sql.Result,error)
  2. InsertWithTx(ctx context.Context, session sqlx.Session, data *{{.upperStartCamelObject}}) (sql.Result,error)
  3. BatchInsert(ctx context.Context, dataList []*{{.upperStartCamelObject}}) error
  4. BatchInsertWithTx(ctx context.Context, session sqlx.Session, dataList []*{{.upperStartCamelObject}}) error
  5. TransactCtx(ctx context.Context, fn func(context.Context, sqlx.Session) error) error