3 Parses Pgbouncer ini configuration files.
5 Author: Andrew Colin Kissa <andrew@topdog.za.net>
6 Baruwa Enterprise Edition http://www.baruwa.com
9 This file is licensed under the LGPL v2+.
11 About: Configuration files
12 This lens applies to /etc/pgbouncer.ini See <filter>.
15 Create a tree for the database options
21 (************************************************************************
22 * Group: USEFUL PRIMITIVES
23 ************************************************************************)
25 let comment = IniFile.comment IniFile.comment_re IniFile.comment_default
27 let sep = IniFile.sep "=" "="
31 let entry_re = ( /[A-Za-z][:#A-Za-z0-9._-]+|\*/)
33 (************************************************************************
35 *************************************************************************)
37 let non_db_line = [ key entry_re . sep . IniFile.sto_to_eol? . eol ]
39 let entry = non_db_line|comment
41 let title = IniFile.title IniFile.record_re
43 let record = IniFile.record title entry
45 (******************************************************************
46 * Group: LENS AND FILTER
47 ******************************************************************)
49 let lns = IniFile.lns record comment
51 (* Variable: filter *)
52 let filter = incl "/etc/pgbouncer.ini"
54 let xfm = transform lns filter