Install SeisComP and scanloc ARM64 nightly packages

This commit is contained in:
Enrico Ellguth
2025-10-29 12:34:04 +00:00
parent 2ff097f9d1
commit 165b829fb7
606 changed files with 24438 additions and 16358 deletions

View File

@ -24,8 +24,10 @@
#include <seiscomp/core/baseobject.h>
#include <seiscomp/core/interfacefactory.h>
#include <seiscomp/core/enumeration.h>
#include <seiscomp/core/datetime.h>
#include <seiscomp/core.h>
#include <vector>
#include <string>
#include <stdint.h>
@ -78,12 +80,33 @@ DEFINE_SMARTPOINTER(DatabaseInterface);
// Public types
// ------------------------------------------------------------------
public:
typedef uint64_t OID;
using OID = uint64_t;
static const OID INVALID_OID;
MAKEENUM(Backend,
EVALUES(
MySQL,
PostgreSQL,
SQLite3,
MSSQL,
Oracle,
ODBC,
Unknown
),
ENAMES(
"mysql",
"postgresql",
"sqlite3",
"mssql",
"orcale",
"odbc",
"unknown"
)
);
// ------------------------------------------------------------------
// Xstruction
// X'truction
// ------------------------------------------------------------------
protected:
//! Protected constructor
@ -112,6 +135,14 @@ DEFINE_SMARTPOINTER(DatabaseInterface);
//! caller!
static DatabaseInterface *Open(const char* uri);
/**
* @brief Returns the implemented backend from one of the supported
* enumerations.
* If an yet unknown backend is implemented, return Unknown.
* @return
*/
virtual Backend backend() const = 0;
/** Opens a connection to the database server
@param connection The string containing the connection
data. Its format is
@ -278,7 +309,7 @@ DEFINE_SMARTPOINTER(DatabaseInterface);
* @param from The input string.
* @return Success flag
*/
virtual bool escape(std::string &out, const std::string &in);
virtual bool escape(std::string &out, const std::string &in) const;
//! Returns the used column prefix
const std::string &columnPrefix() const;
@ -311,13 +342,14 @@ DEFINE_SMARTPOINTER(DatabaseInterface);
// Protected members
// ------------------------------------------------------------------
protected:
std::string _user;
std::string _password;
std::string _host;
int _port;
unsigned int _timeout;
std::string _database;
std::string _columnPrefix;
std::string _user;
std::string _password;
std::string _host;
int _port;
unsigned int _timeout;
std::string _database;
mutable std::string _columnPrefix;
mutable Backend _backend = Unknown;
};