summaryrefslogtreecommitdiff
path: root/gentoobrowse-api/service/utils/splitEbuildProps.h
blob: 00ce910f1d2dab7727a18bba75b55a5286ab1b90 (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 <glibmm/ustring.h>
#include <optional>
#include <sqlWriter.h>

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