Project

General

Profile

Actions

Feature #3646

open

Implement comment field in Wt::Dbo

Added by Eivind Midtgård over 9 years ago.

Status:
New
Priority:
Low
Assignee:
-
Target version:
-
Start date:
11/05/2014
Due date:
% Done:

0%

Estimated time:

Description

I think that Wt::Dbo should allow us to write comments in the tables. Comments would make database tables more self-documented even when they are created from Wt::Dbo. Something like

   Wt::Dbo::field(a, m_name, "name", "-- capitalized name");

or

   Wt::Dbo::comment(a, m_name, "-- capitalized name");  
   Wt::Dbo::comment(a, m_name, "-- for reading pleasure");

This would make the sql for the table in question into something like

CREATE TABLE ...
(
...
  "name" text, -- capitalized name 
               -- for reading pleasure

No data to display

Actions

Also available in: Atom PDF