summaryrefslogtreecommitdiff
path: root/gentoobrowse-api/service/utils/splitEbuildProps.h
blob: c6ed14f4c0e0a8451e472885fb2c4e173a0f3eaf (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
#ifndef GENTOOBROWSE_API_SERVICE_MAINTENANCE_SPLITEBUILDPROPS_H
#define GENTOOBROWSE_API_SERVICE_MAINTENANCE_SPLITEBUILDPROPS_H

#include <sqlWriter.h>
#include <glibmm/ustring.h>
#include <optional>

namespace Gentoo {
	namespace Utils {
		class SplitEbuildProps : public DB::SqlWriter {
			public:
				SplitEbuildProps(const std::string & ce, int e, const std::string & cp, const std::optional<Glib::ustring> & p);

				void writeSql(AdHoc::Buffer & sql) override;
				void bindParams(DB::Command * c, unsigned int & offset) override;

				const int entityId;
				const std::string colEntityName, colPropName;
				const std::optional<Glib::ustring> props;
		};
	}
}

#endif