Add Truncate method #2220

Merged
lunny merged 4 commits from KN4CK3R/xorm:feature-truncate into master 1 month ago

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.

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.
lunny commented 1 month ago
Owner

Lint failed

Lint failed
lunny approved these changes 1 month ago
lunny added the
kind
enhancement
label 1 month ago
Poster

The current CI fail does not look related:

        	Error:      	Received unexpected error:

        	            	Error 1064: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ''2023-02-19 16:34:22')' at line 1

        	Test:       	TestDumpTables/import_dump_mysql-table.sql
The current CI fail does not look related: ``` Error: Received unexpected error: Error 1064: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ''2023-02-19 16:34:22')' at line 1 Test: TestDumpTables/import_dump_mysql-table.sql ```
lunny merged commit 056cecc97e into master 1 month ago
lunny referenced this issue from a commit 1 month ago

Reviewers

lunny approved these changes 1 month ago
continuous-integration/drone/pr Build is failing
The pull request has been merged as 056cecc97e.
Sign in to join this conversation.
Loading…
There is no content yet.