Tutorial n°3 : Acceder a una base de datos SQL

En este tutorial vamos a ver cómo acceder a cualquier base de datos SQL directamente en Studio, desde llamar a la base de datos hasta mostrarla en tu aplicación.

Etapa 1 : Crear un nuevo proyecto

The first two tutorials have already learnt you how to create a project, but this one is quite different : We will see here how to make a project that connects to a PostgreSQL database, makes a query and displays data in an application.

To do so, go to File -> New -> Project and search "SQL" in the search bar --> select SQL project, and name it "sql_database_back".

Then, you will have to fill the information to link the database you want : In this case we will take the "Public Postgres Database" from the RNAcentral website.(https://rnacentral.org/help/public-database)

In the first field, select org.postgresql.Driver.
In the JDBC URL field, replace <server_name> by hh-pgsql-public.ebi.ac.uk, <port(optional)> by 5432 and <database name> by pfmegrnargs.
In the Username field, type reader and paste NWDMCE5xdipIjRrp in the password field.
You can find all the connection information for the SQL Database on the link above.

Once you filled everything, click the "Test connection" button to see if it works. You should have a "connection parameters are correct" message.
Nota: No olvides que si nombras tu proyecto de otra manera, no podrás continuar correctamente el tutorial..
Paso 2 ᐅ
Éxito !

Ha completado con éxito este paso, por favor haga clic en el botón Siguiente Paso para ir al siguiente paso del tutorial
Cerrar
No ha completado todas las acciones requeridas en este paso, ¿está seguro de que desea ir al paso siguiente?