GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - wsjcpp/wsjcpp-storages: Abstract classes for work with different databases

BranchesTags
Open more actions menu

Latest commit

 

History

10 Commits
10 Commits

Folders and files

NameName
Last commit message
Last commit date
src.wsjcpp
src.wsjcpp
 
 
src
src
 
 
unit-tests.wsjcpp
unit-tests.wsjcpp
 
 
.gitignore
.gitignore
 
 
.travis.yml
.travis.yml
 
 
CMakeLists.txt
CMakeLists.txt
 
 
LICENSE
LICENSE
 
 
README.md
README.md
 
 
build_simple.sh
build_simple.sh
 
 
wsjcpp.yml
wsjcpp.yml
 
 

Repository files navigation

wsjcpp-storages

Build Status Github Stars Github Stars Github Forks Total alerts Language grade: C/C++

Abstraction Model for work with different databases

Integrate to your project

$ wsjcpp install https://github.com/wsjcpp/wsjcpp-storages:master

Or include this files:

  • src.wsjcpp/wsjcpp_core/wsjcpp_core.h
  • src.wsjcpp/wsjcpp_core/wsjcpp_core.cpp
  • src/wsjcpp_storages.h
  • src/wsjcpp_storages.cpp

For working with this abstruct modeles you need install subpackage for *-mysql or create yourself support database

Lits of supports

  • will be soon

How to use

Cheche the supporting database implementation

if (WsjcppStorages::support("mysql")) {
    // will support mysql database
}

List of implemented databases:

std::vector<std::string> vDbList = WsjcppStorages::list();
for (int i = 0; i < vDbList.size(); i++) {
    std::cout << vDbList[i] << std::endl;
}

Create instance of storage for work with database:

WsjcppStorage* pStorage = nullptr;
std::string sDatabaseType = "mysql";
if (WsjcppStorages::support(sDatabaseType)) {
    pStorage = WsjcppStorages::create(sDatabaseType);
    pStorage->applyConfigFromFile(sDatabaseType + ".conf"); // apply connection config
}

// now you can create a connection to database:
if (pStorage != nullptr) {
    WsjcppStorageConnection *pConnect = pStorage->connect();
}

Soon will be more information

About

Abstract classes for work with different databases

Topics

cppdatabasesstorageswsjcpp-package

Resources

Readme
MIT license
Activity
Custom properties

Stars

1 star

Watchers

1 watching

Forks

0 forks
Report repository

Releases

Packages

Contributors

Languages

You are visitor 01402503 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.