scidb-hquery-2.8.0.434: Haskell query for SciDB via shim

Safe HaskellNone
LanguageHaskell2010

UtilsUnsafe

Synopsis

Documentation

base64Sha512Hash :: [Char] -> String Source #

Given a string, return a Base64, SHA512 hash.

fetchPassword :: Maybe Char -> String -> IO String Source #

Fetch the password with prompt Password or prompt string s and masking character c otherwise *.

fetchUsername :: String -> IO String Source #

Fetch the user name with prompt Username or prompt string s.

isConnectable :: String -> String -> IO Bool Source #

Return true if one can connect to hostname h and port p, otherwise false with a message sent to stderr.

managerSettings :: CertificateStore -> ManagerSettings Source #

Given a certificate store, create manager settings for SSL/TLS connections.

putOrPageStrLn :: String -> IO ExitCode Source #

Put a string or page it if the environmental variable PAGER is set.

valid :: VALID -> String -> IO Bool Source #

Is the string a valid VALID?

  valid HOSTNAME "localhost"
  valid PORT "8080"
  valid PROTOCOL "http"
  valid READABLE "/path_to_query_file/file"
  -- Terminating semi-colon (;) optional
  valid PREFIX "set_namespace('sensor_data');"
  valid HISTORY "HOME/.hquery_history"

where HOME is replaced by the home directory of the user if it exists, otherwise /tmp.