Switch to: V12V11V10V9V8V7V6V5

select_db()

Parameters

Name Description
dbNameDatabase name to be opened.

Description

Selects default database for the future work with the given (or default) connection

Return Values

Returns TRUE on success or FALSE on failure.

Examples

Example 1.

require 'Valentina'
 
begin
    conn = Valentina.connect( "localhost:15432", "sa", "sa" )
 
    selectSucc = conn.select_db( 'Test_database' )
 
rescue ValentinaError => e
    print e.errno(), "\t", e.error(), "\n"
end
 
conn.close( )

Notes

Note For downward compatibility, the following deprecated alias may be used: create_db()

See Also