aRTconn-openDb              package:aRT              R Documentation

_O_p_e_n _a_n _e_x_i_s_t_e_n_t _d_a_t_a_b_a_s_e

_D_e_s_c_r_i_p_t_i_o_n:

     Open a database connection from a virtual connection.

_U_s_a_g_e:

     ## S4 method for signature 'aRTconn':
     openDb(object, dbname, update, views)

_A_r_g_u_m_e_n_t_s:

  object: Object of class 'aRTconn'.

  dbname: Database name.

  update: When the database version is older than the actual TerraLib
          version, set it 'TRUE' to update to the newest version. You
          can connect to a database older than the actual version
          without updating it, but you have to take into account that
          unexpected errors may occour.

   views: A string with a username. If used, aRT will load the views
          from that user instead of the views of the owner of the
          connection. Note that the permissions in the database are
          controlled by the user/password of the aRTconn, that still
          being used for the connection. This user is just for TerraLib
          purposes.

_A_u_t_h_o_r(_s):

     Pedro Ribeiro de Andrade

_S_e_e _A_l_s_o:

     'createDb' to create new databases. 'aRTconn-class' to show the
     description of this class.

_E_x_a_m_p_l_e_s:

     ## Not run: 
     con=openConn()
     db=openDb(con, "database")
     ## End(Not run)

