Database with built-in Back-End

Asked

Viewed 26 times

0

Is there any kind of database that can process and store the data as if it were 2 in 1? Backend and Databank at the same time.

  • I don’t know if I understand what you want, but I think it’s something like "Embedded". In this case evaluate Sqlite https://sqlite.org/index.html

  • It is convenient that your data is well organized. Surely a "bunch" of data will not be very useful.

  • I don’t know if that’s what you wanted, but your doubt is unclear. In general the backend (services, business logic, Integrations) is separated from the DBMS, which can be either "standalone" (run on a separate server) or "Embedded" (built in), as is the question that Linkei. There may be stored procedures and triggers in the database to process data but as a rule it is more recommended for maintenance that one prefers to do separately.

1 answer

0

I didn’t quite understand your question, but you can connect to the database by your own application

example of a code in Java script (Node js) using mysql:

const mysql = require('mysql')// Aqui é uma dependência instalada e esta sendo chamada

const con = mysql.createConnection
({
    host: '', // O host do banco. Ex: localhost
    user: '', // Um usuário do banco. Ex: user 
    password: '', // A senha do usuário. Ex: user123
    database: '' // A base de dados a qual a aplicação irá se conectar
});

con.connect((err) => {
    
   if (err) {
        console.log('Erro connecting to database...', err)
        return
    }
   else {
   console.log('Connection established!')
   }
})

Here you have already connected to the database, just proceed with your application

Browser other questions tagged

You are not signed in. Login or sign up in order to post.