OXY API 1.0
OXY API Library Documentation
Loading...
Searching...
No Matches
oxy::core::make_index_fn Struct Reference

Function object to create an index from a connection and an index item. More...

#include <index.hpp>

Public Member Functions

oid_t operator() (connection_ptr const &conn, index_t const &index) const

Detailed Description

Function object to create an index from a connection and an index item.

This functor provides an operator() that takes a connection pointer and an index item , creates a stream from the index, generates an object of type index, and pushes the object and stream to the connection. It returns the OID of the created object.

Member Function Documentation

◆ operator()()

oid_t oxy::core::make_index_fn::operator() ( connection_ptr const & conn,
index_t const & index ) const
inline
Parameters
conn- A pointer to the database (container) connection where the index will be created.
index- The index item to be created.
Returns
The OID of the created object.

References oxy::get_oid, oxy::index, oxy::make_object, oxy::core::make_stream, and oxy::core::object::push.