Navigation: Developing Apps > BINETIX® AGE™ API > Plugins > Database Drivers > TDS DB Driver > Functions
use/1
Description
use/1 is an Erlang function exported by "tds" module.
This function combines the DB registration with gathering a new DB handle.
References
•register/2
•open/1
Parameters
Name
Type
Database
atom()
Connection ID to the database.
Params
[]
List of tuples with all parameters required to establish a new connection.
Result
Value or Type
{db_handle, integer()}
On success returns the DB handle.
Code Sample
> tds:use(test_db, [
{server, "10.0.0.10"},
{table, "TEST_DB"},
{user, "sa"},
{password, "123456789"}
]).