view src/lib-dict/dict-sql-settings.h @ 9575:0a00dcc4f0ea HEAD

lib-storage: Allow shared namespace prefix to use %variable modifiers.
author Timo Sirainen <>
date Wed, 26 May 2010 17:07:51 +0100
parents 2d3e942a4cde
line wrap: on
line source


struct dict_sql_map {
	/* pattern is in simplified form: all variables are stored as simple
	   '$' character. fields array is sorted by the variable index. */
	const char *pattern;
	const char *table;
	const char *username_field;
	const char *value_field;

	ARRAY_TYPE(const_string) sql_fields;

struct dict_sql_settings {
	const char *connect;

	unsigned int max_field_count;
	ARRAY_DEFINE(maps, struct dict_sql_map);

struct dict_sql_settings *dict_sql_settings_read(pool_t pool, const char *path);