summaryrefslogtreecommitdiff
path: root/gentoobrowse-api/service/utils/splitEbuildProps.h
blob: 9020c22cacb0e404aad42ca800f8b61013cf6cf3 (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
26
27
#pragma once

#include "wrap/ustring.h"
#include <cstdint>
#include <optional>
#include <sqlWriter.h>
#include <string>
namespace AdHoc {
	class Buffer;
}
namespace DB {
	class Command;
}

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

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

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