aboutsummaryrefslogtreecommitdiff
path: root/doc/vmod-dbrw.3
AgeCommit message (Collapse)AuthorFiles
2022-08-21Version 2.8: Support for Varnish 7.1HEADv2.8masterSergey Poznyakoff1
2020-04-09Version 2.7v2.7Sergey Poznyakoff1
2020-03-03Support for Varnish 6.3.1v2.6Sergey Poznyakoff1
2019-02-15Version 2.5release-2.5Sergey Poznyakoff1
2019-02-13Implement two new flags and a special req.http header to indicate errorsSergey Poznyakoff1
* NEWS: Document changes. * doc/vmod-dbrw.3: Likewise. * doc/vmod-dbrw.texi: Likewise. * configure.ac: Version 2.4.90 * src/dbrw.h (dbrw_config): New member: match_type * src/vmod_dbrw.c (parse_flags): Handle "eq" and "regex" flags. (findmatch): Handle the "eq" flag. (do_rewrite): Return error code. (vmod_rewrite): Set the X-VMOD-DBRW-Error header on errors. * tests/atlocal.in (at_vcl_backend): Special handling for X-VMOD-DBRW-Error. * tests/initdb.at: Test the 'eq' flag. * tests/rewrite07.at: New testcase. * tests/Makefile.am: Add new testcase. * tests/testsuite.at: Likewise.
2018-12-10Fix section number in doc/vmod-dbrw.3Sergey Poznyakoff1
2018-12-10Version 2.4; Support for varnish 6.0.2release-2.4Sergey Poznyakoff1
2018-12-08Version 2.3release-2.3Sergey Poznyakoff1
* configure.ac: Bump version number. * NEWS: Describe new version. * doc/vmod-dbrw.3: Update version number. * doc/vmod-dbrw.texi: Document expansions.
2018-12-08Implement the $(urlprefixes) built-in function.Sergey Poznyakoff1
* NEWS: Update. * README: Update. * configure.ac: Version 2.2.91 * doc/vmod-dbrw.3: Document the use of $(urlprefixes) built-in * doc/vmod-dbrw.texi: Likewise. * src/vmod_dbrw.c (parse_flags): Make sure status string is null-terminated. (do_rewrite): Expand built-in functions in $(). Support urlprefixes. On debug_level=100, produce detailed trace of expansions. * src/wordsplit.c: Pull from grecs commit 9097d529. * src/wordsplit.h: Likewise. * tests/initdb.at (rewrite): Change the url column. * tests/rewrite01.at: Use $(urlprefixes) in the SQL templates. * tests/rewrite02.at: Likewise. * tests/rewrite03.at: Likewise. * tests/rewrite04.at: Likewise. * tests/rewrite05.at: Likewise. * tests/rewrite06.at: Likewise.
2018-01-30Introduce connection idle timeout.Sergey Poznyakoff1
* NEWS: Updated. * configure.ac: Version 2.2.90 * doc/vmod-dbrw.3: Document connection idle timeout. * doc/vmod-dbrw.texi: Likewise. * src/dbrw.h (dbrw_backend) <sql_idle_timeout>: New method. (dbrw_config)<idle_timeout>: New member. (dbrw_connection)<timestamp>: New member. (sql_idle_timeout): New proto. * src/mysql.c (vmod_mysql_data) <mysql>: Change storage. All uses changed. (s_mysql_idle_timeout): New function. * src/sql.c (sql_idle_timeout): New function. (sql_query): Update connection timestamp. (sql_idle_timeout): New function. * src/vmod_dbrw.c (dbrw_connection_get): Force disconnect if connection remained idle for too long. Initialize cfg->idle_timeout. (vmod_config): New parameter 'timeout='
2017-08-05Switch to new acvmod. Remove the --with-varnish-source option. Fix the ↵Sergey Poznyakoff1
testsuite.
2016-04-21Rewrite SQL configuration support.Sergey Poznyakoff1
Multiple configurations can be provided, by calling dbrw.config from branches of a conditional VCL statement. The only requirement is that exactly one dbrw.config is executed within a single HTTP session. This allows the user to select rewrite data from various databases depending on some conditions. Open SQL connections are stored in a pool and reused as needed. So far no limit on the number of connections is imposed. This is a TODO. Connections remain open during the lifetime of the module (i.e. for as long as varnish is not restarted). * src/dbrw.h (dbrw_config): New members: param_str, magic and list. (dbrw_connection): New members: magic, busy, list. * src/vmod_dbrw.c (dbrw_connection_get) (dbrw_connection_release): New functions. (dbrw_event): Install atexit function. (vmod_config): Keep a pool of configurations. (dbrw_sethdr) [VARNISHVERSION]: Remove leftover code. (vmod_rewrite): Rewrite. * src/vmod_dbrw.vcc (config, rewrite): Mark as PRIV_TASK. * doc/vmod-dbrw.3: Update docs. * doc/vmod-dbrw.texi: Update docs. * configure.ac: Raise version number
2014-11-12Update the docs for VCL 4.0Sergey Poznyakoff1
2014-11-01Update copyright yearsSergey Poznyakoff1
2014-10-31Update copyright yearsSergey Poznyakoff1
2013-07-29Use EX/EE for examples in the manpage.Sergey Poznyakoff1
2013-07-27Improve manpage.Sergey Poznyakoff1
2013-07-26Changes in documentationSergey Poznyakoff1
* doc/gendocs_template: Add a link to man page * doc/vmod-dbrw.3: Add optional download section.
2013-07-20Use vmod-dbrw (with a dash) as the canonical project name.Sergey Poznyakoff1

Return to:

Send suggestions and report system problems to the System administrator.