The common code used by all sqlectron clients.
Requires node v10 or higher. For ed25519 ssh support it requires node v12.
It is pronounced "sequelectron" - https://translate.google.com/?source=osdd#en/en/sequelectron
- PostgreSQL
- Redshift
- MySQL
- MariaDB
- Microsoft SQL Server
- Cassandra (NoSQL; Exceptions about this client)
- SQLite
Do you want to support another SQL database? Please follow these steps.
Install via npm:
npm install sqlectron-db-core
const serverSession = db.createServer(serverInfo);
const dbConn = serverSession.createConnection(serverInfo.database);
dbConn.connect().then(() => {
console.log(dbConn.executeQuery('SELECT 1'));
});
Where serverInfo is an array with the following fields:
id
: in case including a new server manually there is no need setting an id field because SQLECTRON will do it for youname
client
:postgresql
,mysql
orsqlserver
host
port
user
password
database
ssh
host
user
port
privateKey
passphrase
useAgent
ssl
Please check out it here.
Copyright (c) 2015 The SQLECTRON Team. This software is licensed under the MIT License.