You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
xorm/integrations
KN4CK3R 056cecc97e
continuous-integration/drone/push Build is failing Details
Add `Truncate` method (#2220)
This PR adds a `Truncate` method which allows to delete all existing rows in a table. The current `Delete` implementation enforces conditions to prevent accidental data deletion.

Co-authored-by: KN4CK3R <admin@oldschoolhack.me>
Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com>
Reviewed-on: #2220
Reviewed-by: Lunny Xiao <xiaolunwen@gmail.com>
Co-authored-by: KN4CK3R <kn4ck3r@noreply.gitea.io>
Co-committed-by: KN4CK3R <kn4ck3r@noreply.gitea.io>
1 month ago
..
testdata Fix import file bug (#2025) 2 years ago
cache_test.go Drop sync function and rename sync2 to sync (#2018) 2 years ago
engine_dm_test.go update go version to v1.17 in .drone.yml (#2219) 2 months ago
engine_group_test.go Move all integrations tests to a standalone sub package (#1635) 3 years ago
engine_test.go Change schemas.Column to use int64 (#2160) 9 months ago
main_test.go Move all integrations tests to a standalone sub package (#1635) 3 years ago
performance_test.go Some performance optimization for get (#2043) 2 years ago
processors_test.go Add README and fix some lints (#2079) 1 year ago
rows_test.go some improvement (#2136) 11 months ago
session_cols_test.go Drop sync function and rename sync2 to sync (#2018) 2 years ago
session_cond_test.go Drop sync function and rename sync2 to sync (#2018) 2 years ago
session_count_test.go Drop sync function and rename sync2 to sync (#2018) 2 years ago
session_delete_test.go Add `Truncate` method (#2220) 1 month ago
session_exist_test.go Drop sync function and rename sync2 to sync (#2018) 2 years ago
session_find_test.go join support condition (#2201) 4 months ago
session_get_test.go some improvement (#2136) 11 months ago
session_insert_test.go update go version to v1.17 in .drone.yml (#2219) 2 months ago
session_iterate_test.go Fix bug of Rows (#2048) 2 years ago
session_pk_test.go Add README and fix some lints (#2079) 1 year ago
session_query_test.go Drop sync function and rename sync2 to sync (#2018) 2 years ago
session_raw_test.go Drop sync function and rename sync2 to sync (#2018) 2 years ago
session_schema_test.go MySQL/MariaDB: return max length for text columns (#2133) 11 months ago
session_sum_test.go Drop sync function and rename sync2 to sync (#2018) 2 years ago
session_test.go Drop sync function and rename sync2 to sync (#2018) 2 years ago
session_tx_test.go Add dameng support (#2007) 2 years ago
session_update_test.go Add README and fix some lints (#2079) 1 year ago
tags_test.go Add interface to allow structs to provide specific index information (#2137) 11 months ago
tests.go Add README and fix some lints (#2079) 1 year ago
time_test.go Add dameng support (#2007) 2 years ago
types_null_test.go Add dameng support (#2007) 2 years ago
types_test.go return a clear error for set TEXT type as compare condition (#2062) 11 months ago