pgator

This module contain json<->sql table from db.

Loads on SIGHUP or on startup

License
Subject to the terms of the MIT license, as written in the included LICENSE file.
Authors
Zaramzan

struct  Entry;

Represent sql to json table line from database

Authors
Zaramzan

class  SqlJsonTable;

Contains methods descriptions, cache rules, etc

Authors
Zaramzan

shared void  add(in Entry entry);

Add entry to memory


shared bool  need_cache(string method);

Returns
 need_cache flag by method

shared bool  read_only(string method);

Returns  read_only flag by method


shared string[]  reset_caches(string method);

Returns
 reset_caches array by method

shared string[]  reset_by(string method);

Returns
 reset_by array by method

shared string[]  needDrop(string method);

Returns
array of needed drop methods by this method

shared bool  needAuth(string method);

Returns
set_username in json_rpc

shared bool  methodFound(string method, out Entry entry);

Returns
true if method found, and put entry

shared Entry  getEntry(string method);

Returns entry by method


shared bool  methodFound(string method);

Returns
true if method found

shared void  makeDropMap();

Makes drop map