MCPcopy Create free account
hub / github.com/DeNA/HandlerSocket-Plugin-for-MySQL / prep_stmt

Class prep_stmt

handlersocket/database.hpp:37–57  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

35};
36
37struct prep_stmt {
38 typedef std::vector<uint32_t> fields_type;
39 private:
40 dbcontext_i *dbctx; /* must be valid while *this is alive */
41 size_t table_id; /* a prep_stmt object holds a refcount of the table */
42 size_t idxnum;
43 fields_type ret_fields;
44 fields_type filter_fields;
45 public:
46 prep_stmt();
47 prep_stmt(dbcontext_i *c, size_t tbl, size_t idx, const fields_type& rf,
48 const fields_type& ff);
49 ~prep_stmt();
50 prep_stmt(const prep_stmt& x);
51 prep_stmt& operator =(const prep_stmt& x);
52 public:
53 size_t get_table_id() const { return table_id; }
54 size_t get_idxnum() const { return idxnum; }
55 const fields_type& get_ret_fields() const { return ret_fields; }
56 const fields_type& get_filter_fields() const { return filter_fields; }
57};
58
59struct dbcallback_i {
60 virtual ~dbcallback_i () { }

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected