|
OXY API 1.0
OXY API Library Documentation
|
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 |
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.
|
inline |
| conn | - A pointer to the database (container) connection where the index will be created. |
| index | - The index item to be created. |
References oxy::get_oid, oxy::index, oxy::make_object, oxy::core::make_stream, and oxy::core::object::push.