tinyows 1.2.2
|
Go to the source code of this file.
Functions | |
ows_layer_storage * | ows_layer_storage_init () |
void | ows_layer_storage_free (ows_layer_storage *storage) |
static void | ows_storage_fill_not_null (ows *o, ows_layer *l) |
static void | ows_storage_fill_pkey (ows *o, ows_layer *l) |
static void | ows_storage_fill_attributes (ows *o, ows_layer *l) |
static void | ows_layer_storage_fill (ows *o, ows_layer *l, bool is_geom) |
void | ows_layers_storage_flush (ows *o, FILE *output) |
void | ows_layers_storage_fill (ows *o) |
Definition at line 387 of file ows_storage.c.
References Buffer::buf, buffer_add_str(), buffer_copy(), buffer_empty(), buffer_free(), buffer_init(), Ows_layer::exclude_items, Ows::exit, Ows_layer_storage::geom_columns, Ows_layer::include_items, Ows_layer_storage::is_geographic, list_add_str(), list_implode(), ows_psql_exec(), ows_storage_fill_attributes(), ows_storage_fill_not_null(), ows_storage_fill_pkey(), Ows_layer_storage::schema, Ows_layer_storage::srid, Ows_layer::storage, and Ows_layer_storage::table.
Referenced by ows_layers_storage_fill().
void ows_layer_storage_free | ( | ows_layer_storage * | storage | ) |
Definition at line 54 of file ows_storage.c.
References array_free(), Ows_layer_storage::attributes, buffer_free(), Ows_layer_storage::geom_columns, list_free(), Ows_layer_storage::not_null_columns, Ows_layer_storage::pkey, Ows_layer_storage::pkey_default, Ows_layer_storage::pkey_sequence, Ows_layer_storage::schema, and Ows_layer_storage::table.
Referenced by ows_layer_free(), and ows_layers_storage_fill().
ows_layer_storage * ows_layer_storage_init | ( | ) |
Definition at line 31 of file ows_storage.c.
References array_init(), Ows_layer_storage::attributes, buffer_init(), Ows_layer_storage::geom_columns, Ows_layer_storage::is_geographic, list_init(), Ows_layer_storage::not_null_columns, Ows_layer_storage::pkey, Ows_layer_storage::pkey_default, Ows_layer_storage::pkey_sequence, Ows_layer_storage::schema, Ows_layer_storage::srid, and Ows_layer_storage::table.
Referenced by ows_layer_init().
void ows_layers_storage_fill | ( | ows * | o | ) |
Definition at line 479 of file ows_storage.c.
References Buffer::buf, buffer_add_str(), buffer_cmp(), buffer_copy(), buffer_empty(), buffer_free(), buffer_init(), Ows::exit, Ows_layer_list::first, Ows_layer_node::layer, Ows::layers, Ows_layer_node::next, ows_layer_storage_fill(), ows_layer_storage_free(), ows_psql_exec(), Ows_layer_storage::schema, Ows_layer::storage, and Ows_layer_storage::table.
Referenced by main().
void ows_layers_storage_flush | ( | ows * | o, |
FILE * | output | ||
) |
Definition at line 456 of file ows_storage.c.
References Buffer::buf, Ows_layer_list::first, Ows_layer_node::layer, Ows::layers, Ows_layer::name_prefix, Ows_layer_node::next, Ows_layer::retrievable, Ows_layer_storage::schema, Ows_layer_storage::srid, Ows_layer::storage, Ows_layer_storage::table, and Ows_layer::writable.
Referenced by ows_usage().
Definition at line 299 of file ows_storage.c.
References array_add(), Ows_layer_storage::attributes, Buffer::buf, buffer_add_str(), buffer_cmp(), buffer_copy(), buffer_empty(), buffer_free(), buffer_init(), List::first, Ows_layer::include_items, List_node::next, ows_error(), OWS_ERROR_REQUEST_SQL_FAILED, ows_psql_exec(), Ows_layer_storage::pkey, Ows_layer_storage::schema, Ows_layer::storage, Ows_layer_storage::table, and List_node::value.
Referenced by ows_layer_storage_fill().
Definition at line 136 of file ows_storage.c.
References Buffer::buf, buffer_add_str(), buffer_copy(), buffer_free(), buffer_init(), list_add(), list_init(), Ows_layer_storage::not_null_columns, ows_error(), OWS_ERROR_REQUEST_SQL_FAILED, ows_psql_exec(), Ows_layer_storage::schema, Ows_layer::storage, and Ows_layer_storage::table.
Referenced by ows_layer_storage_fill().
Definition at line 180 of file ows_storage.c.
References Buffer::buf, buffer_add_str(), buffer_copy(), buffer_empty(), buffer_free(), buffer_init(), ows_error(), OWS_ERROR_REQUEST_SQL_FAILED, ows_psql_exec(), Ows_layer_storage::pkey, Ows_layer::pkey, Ows_layer_storage::pkey_default, Ows_layer_storage::pkey_sequence, Ows_layer::pkey_sequence, Ows_layer_storage::schema, Ows_layer::storage, and Ows_layer_storage::table.
Referenced by ows_layer_storage_fill().