6namespace Stroika::Foundation::Database::Document::Connection {
13 inline bool Ptr::operator== (
const Ptr& rhs)
const noexcept
15 return this->get () == rhs.get ();
17 inline bool Ptr::operator== (nullptr_t)
const noexcept
19 return this->get () ==
nullptr;
21 inline auto Ptr::GetEngineProperties () const -> shared_ptr<const EngineProperties>
23 return this->get ()->GetEngineProperties ();
25 inline auto Ptr::GetOptions () const -> Options
27 return this->get ()->GetOptions ();
31 return this->get ()->GetCollections ();
35 return this->get ()->CreateCollection (name);
39 this->get ()->DropCollection (name);
43 return this->get ()->GetCollection (name);
47 using namespace Characters;
48 return Format (
"{}"_f,
static_cast<const void*
> (this->get ()));
String is like std::u32string, except it is much easier to use, often much more space efficient,...
Set<T> is a container of T, where once an item is added, additionally adds () do nothing.
nonvirtual Collection::Ptr GetCollection(const String &name) const
nonvirtual Set< String > GetCollections() const
return the names of all collections
nonvirtual String ToString() const
nonvirtual void DropCollection(const String &name) const
nonvirtual Collection::Ptr CreateCollection(const String &name) const