[ Index ] |
PHP Cross Reference of phpBB-3.1.12-deutsch |
[Source view] [Print] [Project Stats]
This file is part of the phpBB Forum Software package.
Copyright: | (c) phpBB Limited |
License: | GNU General Public License, version 2 (GPL-2.0) |
File Size: | 146 lines (4 kb) |
Included or required: | 0 times |
Referenced: | 0 times |
Includes or requires: | 0 files |
sql_insert_buffer:: (4 methods):
__construct()
insert()
insert_all()
flush()
Class: sql_insert_buffer - X-Ref
Collects rows for insert into a database until the buffer size is reached.__construct(\phpbb\db\driver\driver_interface $db, $table_name, $max_buffered_rows = 500) X-Ref |
param: \phpbb\db\driver\driver_interface $db param: string $table_name param: int $max_buffered_rows |
insert(array $row) X-Ref |
Inserts a single row into the buffer if multi insert is supported by the database (otherwise an insert query is sent immediately). Then flushes the buffer if the number of rows in the buffer is now greater than or equal to $max_buffered_rows. param: array $row return: bool True when some data was flushed to the database. |
insert_all(array $rows) X-Ref |
Inserts a row set, i.e. an array of rows, by calling insert(). Please note that it is in most cases better to use insert() instead of first building a huge rowset. Or at least sizeof($rows) should be kept small. param: array $rows return: bool True when some data was flushed to the database. |
flush() X-Ref |
Flushes the buffer content to the DB and clears the buffer. return: bool True when some data was flushed to the database. |
Generated: Thu Jan 11 00:25:41 2018 | Cross-referenced by PHPXref 0.7.1 |