diff --git a/doc/basics.html b/doc/connections.html similarity index 84% rename from doc/basics.html rename to doc/connections.html index 4da2077e4..9e02b3a27 100644 --- a/doc/basics.html +++ b/doc/connections.html @@ -3,7 +3,7 @@
-In many cases, the SQL query is intended to be executed only once,
-which means that statement parsing and execution can go together.
-The session
class provides a special once
-member, which triggers parsing and execution of such one-time
-statements:
-sql.once << "drop table persons"; -- -
For shorter syntax, the following form is also allowed:
- --sql << "drop table persons"; -- -
The IOStream-like interface is exactly what it looks like, so that
-the
-statement text can be composed of many parts, involving anything that
-is streamable (including custom classes, if they have
-appropriate operator<<
):
-string tableName = "persons"; -sql << "drop table " << tableName; - -int id = 123; -sql << "delete from companies where id = " << id; --
Previous (Errors) | - Next (Exchanging data) + Next (Queries) |
Copyright © 2013 Mateusz Loskot
Copyright © 2004-2008 Maciej Sobczak, Stephen Hutton
+