From 219bdeab80c06ea4ffc4f5333b58d27d0e588b4b Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Thu, 3 Nov 2011 08:16:50 +0200 Subject: Add support for mapping std::vector to BLOB types --- doc/manual.xhtml | 21 ++++++++++++--------- 1 file changed, 12 insertions(+), 9 deletions(-) (limited to 'doc') diff --git a/doc/manual.xhtml b/doc/manual.xhtml index 57e7338..3925dea 100644 --- a/doc/manual.xhtml +++ b/doc/manual.xhtml @@ -9788,9 +9788,10 @@ aCC +W2161 ... it is mapped to TEXT.

The MySQL ODB runtime library also provides support for mapping the - std::vector<char> type to the MySQL BLOB types. - However, this mapping is not enabled by default (by default, - std::vector<char> will be treated as a container). + std::vector<char> and + std::vector<unsigned char> types to the MySQL + BLOB types. However, this mapping is not enabled by default (by + default, std::vector will be treated as a container). To enable the BLOB mapping for this type we need to specify the database type explicitly using the db type pragma (Section 11.4.3, "type"), @@ -10413,9 +10414,10 @@ namespace odb

The SQLite ODB runtime library also provides support for mapping the - std::vector<char> type to the SQLite BLOB type. - However, this mapping is not enabled by default (by default, - std::vector<char> will be treated as a container). + std::vector<char> and + std::vector<unsigned char> types to the SQLite + BLOB type. However, this mapping is not enabled by default (by default, + std::vector will be treated as a container). To enable the BLOB mapping for this type we need to specify the database type explicitly using the db type pragma (Section 11.4.3, "type"), @@ -11150,9 +11152,10 @@ CREATE TABLE Employee (

The PostgreSQL ODB runtime library also provides support for mapping the - std::vector<char> type to the PostgreSQL BYTEA - type. However, this mapping is not enabled by default (by default, - std::vector<char> will be treated as a container). + std::vector<char> and + std::vector<unsigned char> types to the PostgreSQL + BYTEA type. However, this mapping is not enabled by default + (by default, std::vector will be treated as a container). To enable the BYTEA mapping for this type we need to specify the database type explicitly using the db type pragma (Section 11.4.3, "type"), -- cgit v1.1