Skip to content

Commit

Permalink
README: Reorder and tweak transaction desc.
Browse files Browse the repository at this point in the history
  • Loading branch information
yangacer committed Jun 18, 2019
1 parent 3615949 commit 63c8ae0
Showing 1 changed file with 18 additions and 20 deletions.
38 changes: 18 additions & 20 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,24 +10,6 @@ A C++17 wrapper library for the awsome sqlite3.

https://github.com/yangacer/sqlite3cpp

## Get Started

### Requirements

- CMake 3.0+
- A C++17 compatible compiler (VS 2017, clang 6.0+, or gcc 7.0+)

### Install
```shell
git clone https://github.com/yangacer/sqlite3cpp
cd sqlite3cpp
mkdir build
cd build
cmake .. # -DCMAKE_BUILD_TYPE=Release
make
sudo make install
```

## Features

- Create SQL scalar function with C++ lambda
Expand Down Expand Up @@ -126,9 +108,25 @@ try {
cerr << e.what() << endl;
}
```
PRO: Save some lines
> Note: End transaction in destructor of the transaction object may trigger failures. It's error-prone to throw exceptions as of destruction. Current implementation just catch all exceptions then destruct silently.
CON: End transaction in destructor of the transaction object may trigger failures. There is no way to catch exceptions as of destruction
## Get Started
### Requirements
- CMake 3.0+
- A C++17 compatible compiler (VS 2017, clang 6.0+, or gcc 7.0+)
### Install
```shell
git clone https://github.com/yangacer/sqlite3cpp
cd sqlite3cpp
mkdir build
cd build
cmake .. # -DCMAKE_BUILD_TYPE=Release
make
sudo make install
```

### Hello, World!

Expand Down

0 comments on commit 63c8ae0

Please sign in to comment.