dm_db_insert_node Function

public function dm_db_insert_node(db, node, validate) result(rc)

Uses

  • proc~~dm_db_insert_node~~UsesGraph proc~dm_db_insert_node dm_db_insert_node module~dm_node dm_node proc~dm_db_insert_node->module~dm_node module~dm_id dm_id module~dm_node->module~dm_id module~dm_kind dm_kind module~dm_node->module~dm_kind iso_fortran_env iso_fortran_env module~dm_kind->iso_fortran_env

Adds the given node to database. The node data is validated by default.

The function returns the following error codes:

  • E_DB_BIND if value binding failed.
  • E_DB_PREPARE if statement preparation failed.
  • E_DB_STEP if step execution failed or no write permission.
  • E_INVALID if argument node is invalid.
  • E_READ_ONLY if database is opened read-only.

Arguments

Type IntentOptional Attributes Name
type(db_type), intent(inout) :: db

Database type.

type(node_type), intent(inout) :: node

Node to insert.

logical, intent(in), optional :: validate

Validate node.

Return Value integer


Calls

proc~~dm_db_insert_node~~CallsGraph proc~dm_db_insert_node dm_db_insert_node proc~dm_node_is_valid dm_node_is_valid proc~dm_db_insert_node->proc~dm_node_is_valid sqlite3_bind_double sqlite3_bind_double proc~dm_db_insert_node->sqlite3_bind_double sqlite3_bind_text sqlite3_bind_text proc~dm_db_insert_node->sqlite3_bind_text sqlite3_finalize sqlite3_finalize proc~dm_db_insert_node->sqlite3_finalize sqlite3_prepare_v2 sqlite3_prepare_v2 proc~dm_db_insert_node->sqlite3_prepare_v2 sqlite3_step sqlite3_step proc~dm_db_insert_node->sqlite3_step proc~dm_id_is_valid dm_id_is_valid proc~dm_node_is_valid->proc~dm_id_is_valid

Called by

proc~~dm_db_insert_node~~CalledByGraph proc~dm_db_insert_node dm_db_insert_node interface~dm_db_insert dm_db_insert interface~dm_db_insert->proc~dm_db_insert_node