Search for truncate

  1. Search 9.5.x for truncate
  2. Search 8.9.x for truncate
  3. Search 10.3.x for truncate
  4. Search 11.x for truncate
  5. Other projects
Title Object type File name Summary
DatabaseConnection::truncate function includes/database/database.inc Prepares and returns a TRUNCATE query object.
DatabaseDeleteTruncateTestCase class modules/simpletest/tests/database_test.test Delete/Truncate tests.
DatabaseDeleteTruncateTestCase::getInfo function modules/simpletest/tests/database_test.test
DatabaseDeleteTruncateTestCase::testSimpleDelete function modules/simpletest/tests/database_test.test Confirm that we can delete a single record successfully.
DatabaseDeleteTruncateTestCase::testSubselectDelete function modules/simpletest/tests/database_test.test Confirm that we can use a subselect in a delete successfully.
DatabaseDeleteTruncateTestCase::testTruncate function modules/simpletest/tests/database_test.test Confirm that we can truncate a whole table successfully.
DatabaseReservedKeywordTestCase::testTruncateReservedWordTable function modules/simpletest/tests/database_test.test
db_truncate function includes/database/database.inc Returns a new TruncateQuery object for the active database.
DrupalLocalStreamWrapper::stream_truncate function includes/stream_wrappers.inc Truncate stream.
drupal_truncate_bytes function includes/unicode.inc Truncates a UTF-8-encoded string safely to a number of bytes.
PharStreamWrapper::stream_truncate function misc/typo3/phar-stream-wrapper/src/PharStreamWrapper.php
TruncateQuery class includes/database/query.inc General class for an abstracted TRUNCATE operation.
TruncateQuery::$table property includes/database/query.inc The table to truncate.
TruncateQuery::compile function includes/database/query.inc Implements QueryConditionInterface::compile().
TruncateQuery::compiled function includes/database/query.inc Implements QueryConditionInterface::compiled().
TruncateQuery::execute function includes/database/query.inc Executes the TRUNCATE query.
TruncateQuery::__construct function includes/database/query.inc Constructs a TruncateQuery object.
TruncateQuery::__toString function includes/database/query.inc Implements PHP magic __toString method to convert the query to a string.
TruncateQuery_mysql class includes/database/mysql/query.inc
TruncateQuery_sqlite class includes/database/sqlite/query.inc SQLite specific implementation of TruncateQuery.
TruncateQuery_sqlite::__toString function includes/database/sqlite/query.inc Implements PHP magic __toString method to convert the query to a string.
truncate_utf8 function includes/unicode.inc Truncates a UTF-8-encoded string safely to a number of characters.
UnicodeUnitTest::helperTestTruncate function modules/simpletest/tests/unicode.test Tests truncate_utf8().
UnicodeUnitTest::runTruncateTests function modules/simpletest/tests/unicode.test Runs test cases for helperTestTruncate().
_search_index_truncate function modules/search/search.module Helper function for array_walk in search_index_split.

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.