Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

how to acces db knex

const options = {
    client: 'mysql2',
    connection: {
        host: '127.0.0.1',
        user: 'user12',
        password: 's$cret',
        database: 'mydb'
    }
}
//These are the connection options for MySQL.
const knex = require('knex')(options);
Source by zetcode.com #
 
PREVIOUS NEXT
Tagged: #acces #db #knex
ADD COMMENT
Topic
Name
5+7 =