Add Truncate method #2220

Merged
lunny merged 4 commits from KN4CK3R/xorm:feature-truncate into master 2023-02-19 23:17:36 +00:00
Contributor

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.
KN4CK3R added 2 commits 2023-02-19 15:13:42 +00:00
Add comment.
Some checks failed
continuous-integration/drone/pr Build is failing
da09ed8cb0
Owner

Lint failed

Lint failed
lunny added 1 commit 2023-02-19 16:08:21 +00:00
Fix lint
Some checks failed
continuous-integration/drone/pr Build is failing
3ddc3212cd
lunny approved these changes 2023-02-19 16:13:38 +00:00
lunny added 1 commit 2023-02-19 16:26:38 +00:00
Fix test
Some checks failed
continuous-integration/drone/pr Build is failing
b9fce74643
lunny added the
kind
enhancement
label 2023-02-19 16:26:52 +00:00
Author
Contributor

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 2023-02-19 23:17:36 +00:00
lunny referenced this issue from a commit 2023-02-19 23:17:36 +00:00
Sign in to join this conversation.
No description provided.