https://github.com/CryptDB/cryptdb
Tip revision: 7678bc98d3054f1418371779c6d1050cd1a88b2e authored by Raluca Ada Popa on 04 January 2014, 01:31:06 UTC
small changes to readme
small changes to readme
Tip revision: 7678bc9
procs.cc
#include <string>
#include <main/Analysis.hh>
#include <main/stored_procedures.hh>
#include <main/Connect.hh>
#include <main/metadata_tables.hh>
static void
dumpProcsAndFunctions()
{
auto procs = getStoredProcedures();
for (auto it : procs) {
std::cout << it << std::endl;
}
auto funcs = getAllUDFs();
for (auto it : funcs) {
std::cout << it << std::endl;
}
}
int main()
{
const std::string &prefix =
getenv("CRYPTDB_NAME") ? getenv("CRYPTDB_NAME")
: "generic_prefix_";
MetaData::Internal::initPrefix(prefix);
dumpProcsAndFunctions();
return 0;
}