<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: Kulogun Samuel</title>
    <description>The latest articles on DEV Community by Kulogun Samuel (@ayoola24).</description>
    <link>https://dev.to/ayoola24</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F867625%2Fb727229b-00ea-4eb3-b933-b3662a4b39ce.jpeg</url>
      <title>DEV Community: Kulogun Samuel</title>
      <link>https://dev.to/ayoola24</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/ayoola24"/>
    <language>en</language>
    <item>
      <title>STARTING WITH POSTGRESQL AND VALENTINA STUDIO THROUGH CLI</title>
      <dc:creator>Kulogun Samuel</dc:creator>
      <pubDate>Wed, 25 May 2022 12:48:08 +0000</pubDate>
      <link>https://dev.to/ayoola24/using-postgresql-and-valentina-studio-through-cli-1b5g</link>
      <guid>https://dev.to/ayoola24/using-postgresql-and-valentina-studio-through-cli-1b5g</guid>
      <description>&lt;h2&gt;
  
  
  &lt;strong&gt;POSTGRESQL is a Database Managing System DBMS while VALENTINA is a multi data-management-tool.&lt;/strong&gt;
&lt;/h2&gt;

&lt;p&gt;After complete and proper installation of PostgreSQL on &lt;a href="https://www.postgresql.org/download/"&gt;https://www.postgresql.org/download/&lt;/a&gt; and valentina Studio on &lt;a href="https://www.valentina-db.com/en/all-downloads/current"&gt;https://www.valentina-db.com/en/all-downloads/current&lt;/a&gt;, I have a database to work on.&lt;br&gt;
&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--rlM42H4v--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/kwg2p3m3kx2jw1t7grck.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--rlM42H4v--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/kwg2p3m3kx2jw1t7grck.png" alt="A picture of my available database" width="497" height="111"&gt;&lt;/a&gt;&lt;br&gt;
Extracting the zip file into a folder you have the following files:&lt;br&gt;
&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--ogEu2kRA--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/jot7832qsdgu589oxn7g.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--ogEu2kRA--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/jot7832qsdgu589oxn7g.png" alt="Content of the extracted folder right here" width="880" height="196"&gt;&lt;/a&gt;&lt;br&gt;
Next, databases are created for each file to work on Valentino Studio. First I create an Employee database for the employees SQL source file in  the extracted folder. This is done by clicking "create database" on valentina and titling it accordingly, in my case "Employee".&lt;br&gt;
&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--DFQBsSNr--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/5mh7dg2jvie4aygphh1c.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--DFQBsSNr--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/5mh7dg2jvie4aygphh1c.png" alt='A view of the "create database" on valentina' width="880" height="151"&gt;&lt;/a&gt;&lt;br&gt;
Click on create&lt;br&gt;
&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--PDkb6jPR--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/z9w8ryydxnbb3gsmytep.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--PDkb6jPR--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/z9w8ryydxnbb3gsmytep.png" alt="the pop up page for create" width="880" height="422"&gt;&lt;/a&gt;&lt;br&gt;
Next is to upload our 'employees' sql source present in our extracted database file to the created 'Employee' database on our valentina studio through the Command Line Interface CLI. You can easily reach your command line on windows pressing 'cmd' on your search. This is highlighted below:&lt;br&gt;
Step1: Locate the directory of the sql source file in my case 'employee' from the extracted folder. Copy the directory, &lt;br&gt;
&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--03Vjn_Au--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/iv8f4vbbmahmhxsq5fe9.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--03Vjn_Au--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/iv8f4vbbmahmhxsq5fe9.png" alt="View of my directory being copied" width="880" height="146"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;go to the CLI and press 'cd' meaning 'changing directory' then paste the copied directory,&lt;br&gt;
&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--WGYc5MnW--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/6pnhnh0md7t7likx998t.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--WGYc5MnW--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/6pnhnh0md7t7likx998t.png" alt="Changing directory of my command line" width="880" height="29"&gt;&lt;/a&gt;&lt;br&gt;
 tap enter and you have this:&lt;br&gt;
&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--zTeSkSjU--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/mzah95kesanlukw8cos8.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--zTeSkSjU--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/mzah95kesanlukw8cos8.png" alt="View of my command line in the employee folder" width="880" height="68"&gt;&lt;/a&gt;&lt;br&gt;
Step2: Locate your 'psql' file in your program files on your 'pgAdmin4' folder and copy the directory &lt;br&gt;
&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--Iw0QubQe--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/szge05745c8nn6hhebk5.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--Iw0QubQe--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/szge05745c8nn6hhebk5.png" alt="View of my directory being copied" width="880" height="132"&gt;&lt;/a&gt;&lt;br&gt;
 add psql.exe while having all the code in quote&lt;br&gt;
&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--x9IkhPIj--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/7sd17ithhzq3gb3vicph.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--x9IkhPIj--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/7sd17ithhzq3gb3vicph.png" alt="Image description" width="880" height="34"&gt;&lt;/a&gt;&lt;br&gt;
'add -U postgres -d Employee&amp;lt;employees.sql' to upload the employees.sql to the pgAdmin4 and the -d to upload to the database on valentina. You have something of this nature:&lt;br&gt;
&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--gi1tasd7--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/bq1x903px37gv9do4zfo.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--gi1tasd7--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/bq1x903px37gv9do4zfo.png" alt="View of how the code" width="880" height="39"&gt;&lt;/a&gt;&lt;br&gt;
tap enter and it demands for your postgres password &lt;br&gt;
&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--VvQ4zbLq--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/edivp3pn8xtl6k9moqg9.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--VvQ4zbLq--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/edivp3pn8xtl6k9moqg9.png" alt="Inputting your password" width="307" height="29"&gt;&lt;/a&gt;&lt;br&gt;
You input your password and schema is created in the Employee folder in your database. A Schema is what contains tables and the details in your valentino.&lt;/p&gt;

&lt;p&gt;We can now return to our valentina click on the public to see the tables present in our uploaded database.&lt;br&gt;
&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--ooBUIuSn--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/b8w09jponq2tigqlysj1.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--ooBUIuSn--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/b8w09jponq2tigqlysj1.png" alt="Schema in our valentina studio showing us the tables" width="880" height="305"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;To query your database, you click on the sql employee beside the Schema editor and the codes can be executed.&lt;br&gt;
&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--W10zpZ57--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/zw2t0djjxrapu5aw0z71.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--W10zpZ57--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/zw2t0djjxrapu5aw0z71.png" alt="Using the Schema editor for query" width="880" height="343"&gt;&lt;/a&gt;&lt;/p&gt;

</description>
      <category>sql</category>
      <category>tutorial</category>
      <category>writing</category>
      <category>postgres</category>
    </item>
  </channel>
</rss>
