Stroika Library 3.0d18
 
Loading...
Searching...
No Matches
Foundation/Database/Document/Connection.inl
1/*
2 * Copyright(c) Sophist Solutions, Inc. 1990-2025. 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 Set<String> Ptr::GetCollections ()
22 {
23 return this->get ()->GetCollections ();
24 }
25 inline void Ptr::CreateCollection (const String& name)
26 {
27 this->get ()->CreateCollection (name);
28 }
29 inline void Ptr::DropCollection (const String& name)
30 {
31 this->get ()->DropCollection (name);
32 }
33 inline Collection::Ptr Ptr::GetCollection (const String& name)
34 {
35 return this->get ()->GetCollection (name);
36 }
37 inline String Ptr::ToString () const
38 {
39 using namespace Characters;
40 return Format ("{}"_f, static_cast<const void*> (this->get ()));
41 }
42
43}
String is like std::u32string, except it is much easier to use, often much more space efficient,...
Definition String.h:201