Skip to content

Commit

Permalink
Update README with the INSERT syntax
Browse files Browse the repository at this point in the history
  • Loading branch information
amantia committed Apr 10, 2017
1 parent cc65965 commit c03ae64
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -35,10 +35,12 @@ qb.whereCondition().addValueCondition( Presenters.company, SqlCondition::Equals,
QSqlQuery query = qb.exec();
```

#### Natural SQL syntax in C++ for SELECT (more to follow)
#### Natural SQL syntax in C++ for SELECT, INSERT (more to follow)

```c++
QSqlQuery query = select(Presenters.name).from(Presenters).where(Presenters.age == 42 && Presenters.company == “KDAB”);
...
QSqlQuery insertQuery = insert().into(Presenters).columns(Presenters.age << 22 & Presenters.company << "KDAB");
```

### Other features
Expand Down

0 comments on commit c03ae64

Please sign in to comment.