Skip to content

rainboyOJ/modern_cppdb

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

28 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Intro

rewirte CppDB: CppDB - SQL Connectivity Library use cpp++20( use Literals class as Template Parameters)

.
├── include
│   ├── backend.h
│   └── errors.hpp
├── src
│   └── backend.cpp
├── drivers
│   └── mysql_backend.cpp
└── tests

代码架构

query<static_str,Result<>>
       │
       │                         ┌───────────┐
       │                         │           │
       │                         │           │
       │       exec              │   pool    │
       └────────────────────────►│           │
                                 │           │
                                 └──┬────▲───┘
                                    │    │
                                    │    │
                                    │    │
                            shared_ptr   │
                                    │    │
                                    │  weak_ptr
                                    │    │                           ┌──────────────────────┐
                                    │    │                           │                      │
                                    ▼    │                           │ backend::connection  │
                                 connection_raii ───────────────────►│                      │
                                                    encapsulate      │                      │
                                                                     │ backend::result      │
                                                                     │                      │
                                                                     └──────────────────────┘

column->row(递归类)->schema(结果集)

query<command_str,schema>

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published