GnuCash 7574033+
Loading...
Searching...
No Matches
GncSqlColumnInfo Struct Reference

information required to create a column in a table. More...

#include <gnc-sql-column-table-entry.hpp>

Public Member Functions

 GncSqlColumnInfo (std::string &&name, GncSqlBasicColumnType type, unsigned int size=0, bool unicode=false, bool autoinc=false, bool primary=false, bool not_null=false)
 GncSqlColumnInfo (const GncSqlColumnTableEntry &e, GncSqlBasicColumnType t, unsigned int size=0, bool unicode=true)

Data Fields

std::string m_name
 Column name.
GncSqlBasicColumnType m_type
 Column basic type.
unsigned int m_size
 Column size (string types).
bool m_unicode
 Column is unicode (string types).
bool m_autoinc
 Column is autoinc (int type).
bool m_primary_key
 Column is the primary key.
bool m_not_null
 Column forbids NULL values.

Detailed Description

information required to create a column in a table.

Definition at line 478 of file gnc-sql-column-table-entry.hpp.

Constructor & Destructor Documentation

◆ GncSqlColumnInfo() [1/2]

GncSqlColumnInfo::GncSqlColumnInfo ( std::string && name,
GncSqlBasicColumnType type,
unsigned int size = 0,
bool unicode = false,
bool autoinc = false,
bool primary = false,
bool not_null = false )
inline

Definition at line 480 of file gnc-sql-column-table-entry.hpp.

483 :
484 m_name{name}, m_type{type}, m_size{size}, m_unicode{unicode},
485 m_autoinc{autoinc}, m_primary_key{primary}, m_not_null{not_null}
486 {}
GncSqlBasicColumnType m_type
Column basic type.
unsigned int m_size
Column size (string types).
bool m_not_null
Column forbids NULL values.
bool m_unicode
Column is unicode (string types).
bool m_autoinc
Column is autoinc (int type).
bool m_primary_key
Column is the primary key.
std::string m_name
Column name.

◆ GncSqlColumnInfo() [2/2]

GncSqlColumnInfo::GncSqlColumnInfo ( const GncSqlColumnTableEntry & e,
GncSqlBasicColumnType t,
unsigned int size = 0,
bool unicode = true )
inline

Definition at line 487 of file gnc-sql-column-table-entry.hpp.

488 :
489 m_name{e.m_col_name}, m_type{t}, m_size{size}, m_unicode{unicode},
490 m_autoinc(e.m_flags & COL_AUTOINC),
491 m_primary_key(e.m_flags & COL_PKEY),
492 m_not_null(e.m_flags & COL_NNUL) {}

Field Documentation

◆ m_autoinc

bool GncSqlColumnInfo::m_autoinc

Column is autoinc (int type).

Definition at line 497 of file gnc-sql-column-table-entry.hpp.

◆ m_name

std::string GncSqlColumnInfo::m_name

Column name.

Definition at line 493 of file gnc-sql-column-table-entry.hpp.

◆ m_not_null

bool GncSqlColumnInfo::m_not_null

Column forbids NULL values.

Definition at line 499 of file gnc-sql-column-table-entry.hpp.

◆ m_primary_key

bool GncSqlColumnInfo::m_primary_key

Column is the primary key.

Definition at line 498 of file gnc-sql-column-table-entry.hpp.

◆ m_size

unsigned int GncSqlColumnInfo::m_size

Column size (string types).

Definition at line 495 of file gnc-sql-column-table-entry.hpp.

◆ m_type

GncSqlBasicColumnType GncSqlColumnInfo::m_type

Column basic type.

Definition at line 494 of file gnc-sql-column-table-entry.hpp.

◆ m_unicode

bool GncSqlColumnInfo::m_unicode

Column is unicode (string types).

Definition at line 496 of file gnc-sql-column-table-entry.hpp.


The documentation for this struct was generated from the following file: