GithubHelp home page GithubHelp logo

tango-controls-hdbpp / libhdbpp-timescale Goto Github PK

View Code? Open in Web Editor NEW
0.0 0.0 4.0 598 KB

HDB++ library for Timescale database back-end. Moved to https://gitlab.com/tango-controls/hdbpp/libhdbpp-timescale

CMake 3.50% C++ 96.50%

libhdbpp-timescale's People

Contributors

bourtemb avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

libhdbpp-timescale's Issues

DbConnection::storeParameterEvent shouls allow empty config parameters in debug mode

Many assert calls are done at the beginning of DbConnection::storeParameterEvent method:

assert(!label.empty());
assert(!unit.empty());
assert(!standard_unit.empty());
assert(!display_unit.empty());
assert(!format.empty());
assert(!archive_rel_change.empty());
assert(!archive_abs_change.empty());
assert(!archive_period.empty());
assert(!description.empty());

This will cause a crash of the hdbpp-es if it subscribes to attribute configuration events on attributes having some of their configuration parameters which are empty.
This crash will happen only when using the debug version of the library.

The library shall not crash in this use case.
There is nothing to impose our users to put something in every parameter of an attribute configuration and the HdbEventSubscriber should not have this role. We shouldn't make this assumption that every parameter composing an attribute configuration shall not be empty.

Branch Issues

The merge/revert of the enum support, which branched from the project-build2 branch has caused problems trying to roll all the project-build2 changes in (many are missing, since they were previously reverted).

This needs fixing and a PR raising for project-build2.

AttributeName::operator= compilation warning

When compiling libhdbpp-timescale on Debian Buster, gcc 8.3 is reporting the following compilation warning:

libhdbpp-timescale/src/AttributeName.cpp:293.1: warning: no return statement in function returning non-void [-Wreturn-type]
}
^

This method should return *this to be able to chain this operator.

connect_string not found

Hello.
I've installed timescale-based library and trying to start EventSubscriber.
With -v5 option I have output message:

FATAL sys/tools/hdb++es-srv PushThreadShared: error connecting DB: Configuration parsing error: mandatory configuration parameter: connect_string not found

I've also added desc and origin error output:

Configuration parsing error: mandatory configuration parameter: connect_string not found HdbppTimescaleDb.cpp:getConfigParam:78

There is a LibConfiguration property in ES server

libname=libhdb++timescale.so
host=localhost
port=5432
dbname=hdb
user=hdb_event_sub
password=hdbpp

DB and users was created from .sql files.

Is the way of configuring changed? How can I fix it?

Debian 10, Tango 9.3.4-rc1, everything else is latest version cloned from github.

Create log directory if it does not exist yet

If log_file_name LibConfiguration property parameter is set to /tmp/hdbpp/my_wonderful_log.log and /tmp/hdbpp directory does not exist yet, it would be convenient to try to create this directory instead of logging an error on the console as it is now.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.