Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Readme.md: Fix typographical errors #1

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 5 additions & 5 deletions Readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,10 @@ Database access library for C++.
Why does C++ need another database access library? First, nothing has been standardized yet. Secondly, we did not found a library which satisfied our needs of abstraction:
1. Driver abstraction: the API should be the same regardless of the database vendor.
2. SQL syntax abstraction: the API user should be able to write portable SQL queries regardless of the underlying vendor.
3. Runtime driver selection: user code should be able to switch accross database vendors at runtime without any need to recompile.
3. Runtime driver selection: user code should be able to switch across database vendors at runtime without any need to recompile.
4. No data model definition: user code should be able to access the database without providing the data model to the API. ORM should be built on top of `CDBC` and not the other way around.

`CDBC` tries to answer those requirements by providing a common abstraction of sql execution accross databases and at the same time an abstraction of the SQL dialect used by database. It offers a low-level building block for applications and higher level frameworks alike.
`CDBC` tries to answer those requirements by providing a common abstraction of SQL execution across databases and at the same time an abstraction of the SQL dialect used by database. It offers a low-level building block for applications and higher level frameworks alike.

We have built upon the previous work of Johan Anhofer published as [N3886: A proposal to add a Database Access Layer to the Standard Library](http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2014/n3886.pdf "N3886 draft"), amended it on some parts and completed it mainly on SQL dialect abstraction.
We plan to write and submit a draft proposal to the C++ normalization committee.
Expand All @@ -21,7 +21,7 @@ We plan to write and submit a draft proposal to the C++ normalization committee.

## Documentation

Here a very simple bootstrap example to perform a simple select on a `SQLite` in-memory database.
Here is a very simple bootstrap example to perform a simple select on a `SQLite` in-memory database.
```cpp
#include <iostream>
#include <string>
Expand All @@ -35,7 +35,7 @@ int main(int argc, char** argv) {
cnx.open(":memory:");
statement stm("select * from EMPLOYEES", cnx);

for (result res(stm.execute()); !res.is_eof(); res.move_next() {
for (result res(stm.execute()); !res.is_eof(); res.move_next()) {
std::cout
<< "- " << res.get<std::string>("NAME")
<< ", age:" << res.get<int>("AGE")
Expand Down Expand Up @@ -63,7 +63,7 @@ int main(int argc, char** argv) {
.select("NAME", "AGE", "SALARY")
.to_statement());

for (result res(stm.execute()); !res.is_eof(); res.move_next() {
for (result res(stm.execute()); !res.is_eof(); res.move_next()) {
std::cout
<< "- " << res.get<std::string>("NAME")
<< ", age:" << res.get<int>("AGE")
Expand Down