Autonomy Software C++ 24.5.1
Welcome to the Autonomy Software repository of the Mars Rover Design Team (MRDT) at Missouri University of Science and Technology (Missouri S&T)! API reference contains the source code and other resources for the development of the autonomy software for our Mars rover. The Autonomy Software project aims to compete in the University Rover Challenge (URC) by demonstrating advanced autonomous capabilities and robust navigation algorithms.
Loading...
Searching...
No Matches
duckdb::PragmaTableInfoHelper Struct Reference

Static Public Member Functions

static void GetSchema (vector< LogicalType > &return_types, vector< string > &names)
static void GetTableColumns (const ColumnDefinition &column, ColumnConstraintInfo constraint_info, DataChunk &output, idx_t index)
static void GetViewColumns (idx_t i, const string &name, const LogicalType &type, DataChunk &output, idx_t index)

Member Function Documentation

◆ GetSchema()

void duckdb::PragmaTableInfoHelper::GetSchema ( vector< LogicalType > & return_types,
vector< string > & names )
inlinestatic
249893 {
249894 names.emplace_back("cid");
249895 return_types.emplace_back(LogicalType::INTEGER);
249896
249897 names.emplace_back("name");
249898 return_types.emplace_back(LogicalType::VARCHAR);
249899
249900 names.emplace_back("type");
249901 return_types.emplace_back(LogicalType::VARCHAR);
249902
249903 names.emplace_back("notnull");
249904 return_types.emplace_back(LogicalType::BOOLEAN);
249905
249906 names.emplace_back("dflt_value");
249907 return_types.emplace_back(LogicalType::VARCHAR);
249908
249909 names.emplace_back("pk");
249910 return_types.emplace_back(LogicalType::BOOLEAN);
249911 }

◆ GetTableColumns()

void duckdb::PragmaTableInfoHelper::GetTableColumns ( const ColumnDefinition & column,
ColumnConstraintInfo constraint_info,
DataChunk & output,
idx_t index )
inlinestatic
249914 {
249915 // return values:
249916 // "cid", PhysicalType::INT32
249917 output.SetValue(0, index, Value::INTEGER((int32_t)column.Oid()));
249918 // "name", PhysicalType::VARCHAR
249919 output.SetValue(1, index, Value(column.Name()));
249920 // "type", PhysicalType::VARCHAR
249921 output.SetValue(2, index, Value(column.Type().ToString()));
249922 // "notnull", PhysicalType::BOOL
249923 output.SetValue(3, index, Value::BOOLEAN(constraint_info.not_null));
249924 // "dflt_value", PhysicalType::VARCHAR
249925 output.SetValue(4, index, DefaultValue(column));
249926 // "pk", PhysicalType::BOOL
249927 output.SetValue(5, index, Value::BOOLEAN(constraint_info.pk));
249928 }
static DUCKDB_API Value INTEGER(int32_t value)
Create an integer Value from a specified value.
Definition duckdb.cpp:132139
static DUCKDB_API Value BOOLEAN(bool value)
Create a boolean Value from a specified value.
Definition duckdb.cpp:132118

◆ GetViewColumns()

void duckdb::PragmaTableInfoHelper::GetViewColumns ( idx_t i,
const string & name,
const LogicalType & type,
DataChunk & output,
idx_t index )
inlinestatic
249930 {
249931 // return values:
249932 // "cid", PhysicalType::INT32
249933 output.SetValue(0, index, Value::INTEGER((int32_t)i));
249934 // "name", PhysicalType::VARCHAR
249935 output.SetValue(1, index, Value(name));
249936 // "type", PhysicalType::VARCHAR
249937 output.SetValue(2, index, Value(type.ToString()));
249938 // "notnull", PhysicalType::BOOL
249939 output.SetValue(3, index, Value::BOOLEAN(false));
249940 // "dflt_value", PhysicalType::VARCHAR
249941 output.SetValue(4, index, Value());
249942 // "pk", PhysicalType::BOOL
249943 output.SetValue(5, index, Value::BOOLEAN(false));
249944 }

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