Stroika Library 3.0d23x
 
Loading...
Searching...
No Matches
Foundation/Database/Document/Connection.inl
1/*
2 * Copyright(c) Sophist Solutions, Inc. 1990-2026. All rights reserved
3 */
5
6namespace Stroika::Foundation::Database::Document::Connection {
7
8 /*
9 ********************************************************************************
10 ************************* Document::Connection::Ptr ****************************
11 ********************************************************************************
12 */
13 inline bool Ptr::operator== (const Ptr& rhs) const noexcept
14 {
15 return this->get () == rhs.get ();
16 }
17 inline bool Ptr::operator== (nullptr_t) const noexcept
18 {
19 return this->get () == nullptr;
20 }
21 inline auto Ptr::GetEngineProperties () const -> shared_ptr<const EngineProperties>
22 {
23 return this->get ()->GetEngineProperties ();
24 }
25 inline auto Ptr::GetOptions () const -> Options
26 {
27 return this->get ()->GetOptions ();
28 }
30 {
31 return this->get ()->GetCollections ();
32 }
33 inline Collection::Ptr Ptr::CreateCollection (const String& name) const
34 {
35 return this->get ()->CreateCollection (name);
36 }
37 inline void Ptr::DropCollection (const String& name) const
38 {
39 this->get ()->DropCollection (name);
40 }
41 inline Collection::Ptr Ptr::GetCollection (const String& name) const
42 {
43 return this->get ()->GetCollection (name);
44 }
45 inline String Ptr::ToString () const
46 {
47 using namespace Characters;
48 return Format ("{}"_f, static_cast<const void*> (this->get ()));
49 }
50
51}
String is like std::u32string, except it is much easier to use, often much more space efficient,...
Definition String.h:201
Set<T> is a container of T, where once an item is added, additionally adds () do nothing.
nonvirtual Set< String > GetCollections() const
return the names of all collections
nonvirtual Collection::Ptr CreateCollection(const String &name) const