xorm/integrations
Lunny Xiao 40a135948b New Prepare useage (#2061)
Fix #2060, Three ways to use the `Prepare`.

The first

```go
engine.Prepare().Where().Get()
```

The second

```go
sess := engine.NewSession()
defer sess.Close()

sess.Prepare().Where().Get()

sess.Prepare().Where().Get()
```

The third
```go
sess := engine.NewSession()
defer sess.Close()

sess.Begin()

sess.Prepare().Where().Get()

sess.Prepare().Where().Get()

sess.Commit()
```

Or

```go
sess := engine.NewSession()
defer sess.Close()

sess.Begin()

sess.Prepare().Insert()

sess.Prepare().Insert()

sess.Commit()
```

Reviewed-on: xorm/xorm#2061
Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com>
Co-committed-by: Lunny Xiao <xiaolunwen@gmail.com>
2021-10-20 08:53:30 +08:00
..
testdata Fix import file bug (#2025) 2021-08-06 11:26:22 +08:00
cache_test.go Drop sync function and rename sync2 to sync (#2018) 2021-08-24 17:13:17 +08:00
engine_dm_test.go Add dameng support (#2007) 2021-08-24 13:46:08 +08:00
engine_group_test.go Move all integrations tests to a standalone sub package (#1635) 2020-03-27 07:13:04 +00:00
engine_test.go Drop sync function and rename sync2 to sync (#2018) 2021-08-24 17:13:17 +08:00
main_test.go Move all integrations tests to a standalone sub package (#1635) 2020-03-27 07:13:04 +00:00
performance_test.go Some performance optimization for get (#2043) 2021-09-07 16:03:08 +08:00
processors_test.go Drop sync function and rename sync2 to sync (#2018) 2021-08-24 17:13:17 +08:00
rows_test.go Drop sync function and rename sync2 to sync (#2018) 2021-08-24 17:13:17 +08:00
session_cols_test.go Drop sync function and rename sync2 to sync (#2018) 2021-08-24 17:13:17 +08:00
session_cond_test.go Drop sync function and rename sync2 to sync (#2018) 2021-08-24 17:13:17 +08:00
session_count_test.go Drop sync function and rename sync2 to sync (#2018) 2021-08-24 17:13:17 +08:00
session_delete_test.go Some performance optimization for get (#2043) 2021-09-07 16:03:08 +08:00
session_exist_test.go Drop sync function and rename sync2 to sync (#2018) 2021-08-24 17:13:17 +08:00
session_find_test.go Drop sync function and rename sync2 to sync (#2018) 2021-08-24 17:13:17 +08:00
session_get_test.go New Prepare useage (#2061) 2021-10-20 08:53:30 +08:00
session_insert_test.go Fix bug of dameng scan (#2056) 2021-09-24 21:45:47 +08:00
session_iterate_test.go Fix bug of Rows (#2048) 2021-09-16 23:59:36 +08:00
session_pk_test.go Drop sync function and rename sync2 to sync (#2018) 2021-08-24 17:13:17 +08:00
session_query_test.go Drop sync function and rename sync2 to sync (#2018) 2021-08-24 17:13:17 +08:00
session_raw_test.go Drop sync function and rename sync2 to sync (#2018) 2021-08-24 17:13:17 +08:00
session_schema_test.go Drop sync function and rename sync2 to sync (#2018) 2021-08-24 17:13:17 +08:00
session_sum_test.go Drop sync function and rename sync2 to sync (#2018) 2021-08-24 17:13:17 +08:00
session_test.go Drop sync function and rename sync2 to sync (#2018) 2021-08-24 17:13:17 +08:00
session_tx_test.go Add dameng support (#2007) 2021-08-24 13:46:08 +08:00
session_update_test.go Drop sync function and rename sync2 to sync (#2018) 2021-08-24 17:13:17 +08:00
tags_test.go Drop sync function and rename sync2 to sync (#2018) 2021-08-24 17:13:17 +08:00
tests.go Fix comments (#1893) 2021-04-12 09:19:08 +08:00
time_test.go Add dameng support (#2007) 2021-08-24 13:46:08 +08:00
types_null_test.go Add dameng support (#2007) 2021-08-24 13:46:08 +08:00
types_test.go Drop sync function and rename sync2 to sync (#2018) 2021-08-24 17:13:17 +08:00