2
* Drizzle Client & Protocol Library
4
* Copyright (C) 2008 Eric Day (eday@oddments.org)
7
* Use and distribution licensed under the BSD license. See
8
* the COPYING file in this directory for full text.
13
* @brief Column Declarations for Servers
16
#ifndef __DRIZZLE_COLUMN_SERVER_H
17
#define __DRIZZLE_COLUMN_SERVER_H
24
* @addtogroup drizzle_column_server Column Declarations for Servers
25
* @ingroup drizzle_server_interface
27
* These functions allow you to send column information over a connection.
32
* Write column information.
35
drizzle_return_t drizzle_column_write(drizzle_result_st *result,
36
drizzle_column_st *column);
39
* Set catalog name for a column.
42
void drizzle_column_set_catalog(drizzle_column_st *column, const char *catalog);
45
* Set database name for a column.
48
void drizzle_column_set_db(drizzle_column_st *column, const char *db);
51
* Set table name for a column.
54
void drizzle_column_set_table(drizzle_column_st *column, const char *table);
57
* Set original table name for a column.
60
void drizzle_column_set_orig_table(drizzle_column_st *column,
61
const char *orig_table);
64
* Set column name for a column.
67
void drizzle_column_set_name(drizzle_column_st *column, const char *name);
70
* Set original column name for a column.
73
void drizzle_column_set_orig_name(drizzle_column_st *column,
74
const char *orig_name);
77
* Set charset for a column.
80
void drizzle_column_set_charset(drizzle_column_st *column,
81
drizzle_charset_t charset);
84
* Set size of a column.
87
void drizzle_column_set_size(drizzle_column_st *column, uint32_t size);
90
* Set the type of a column.
93
void drizzle_column_set_type(drizzle_column_st *column,
94
drizzle_column_type_t type);
97
* Set flags for a column.
100
void drizzle_column_set_flags(drizzle_column_st *column,
101
drizzle_column_flags_t flags);
104
* Set the number of decimals for numeric columns.
107
void drizzle_column_set_decimals(drizzle_column_st *column, uint8_t decimals);
110
* Set default value for a column.
113
void drizzle_column_set_default_value(drizzle_column_st *column,
114
const uint8_t *default_value,
123
#endif /* __DRIZZLE_COLUMN_SERVER_H */