Comparing version 0.1.13 to 0.1.14
19
mql.js
@@ -365,3 +365,3 @@ import { | ||
async function CONNECT(connection_info) { | ||
function CONNECT(connection_info) { | ||
const pool = create_pool(connection_info); | ||
@@ -391,7 +391,12 @@ const pool_query = query_fn(pool); | ||
const ljoin = use_ljoin ? await load_ljoin({ | ||
ready_sqls, add_column, tag, MQL_DEBUG, | ||
connection_info, QUERY, VALUES, IN, NOT_IN, EQ, SET, COLUMN, CL, TABLE, TB, SQL, SQLS | ||
}) : _ => _; | ||
var ljoin = null; | ||
async function LOAD_LJOIN(QUERY) { | ||
if (!ljoin) ljoin = await load_ljoin({ | ||
ready_sqls, add_column, tag, MQL_DEBUG, | ||
connection_info, QUERY, VALUES, IN, NOT_IN, EQ, SET, COLUMN, CL, TABLE, TB, SQL, SQLS | ||
}); | ||
return ljoin(QUERY); | ||
} | ||
return { | ||
@@ -403,3 +408,3 @@ VALUES, IN, NOT_IN, EQ, SET, COLUMN, CL, TABLE, TB, SQL, SQLS, MQL_DEBUG, | ||
ASSOCIATE1, | ||
LJOIN: ljoin(QUERY), | ||
LOAD_LJOIN: use_ljoin ? LOAD_LJOIN : null, | ||
async TRANSACTION() { | ||
@@ -422,3 +427,3 @@ try { | ||
ASSOCIATE1, | ||
LJOIN: ljoin(QUERY), | ||
LJOIN: use_ljoin && ljoin ? await ljoin(QUERY) : null, | ||
COMMIT: _ => COMMIT(client), | ||
@@ -425,0 +430,0 @@ ROLLBACK: _ => ROLLBACK(client) |
{ | ||
"name": "mql2", | ||
"version": "0.1.13", | ||
"version": "0.1.14", | ||
"description": "query builder", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
@@ -57,3 +57,3 @@ # MQL - Node.js Functional SQL Query Builder & ORM | ||
const { CONNECT } = PostgreSQL; | ||
const POOL = await CONNECT({ | ||
const POOL = CONNECT({ | ||
host: 'localhost', | ||
@@ -75,3 +75,3 @@ user: 'username', | ||
const { CONNECT } = MySQL; | ||
const POOL = await CONNECT({ | ||
const POOL = CONNECT({ | ||
host: 'localhost', | ||
@@ -126,3 +126,3 @@ user: 'username', | ||
```javascript | ||
const POOL = await CONNECT(); | ||
const POOL = CONNECT(); | ||
const { | ||
@@ -459,3 +459,3 @@ VALUES, IN, NOT_IN, EQ, SET, COLUMN, CL, TABLE, TB, SQL, MQL_DEBUG, | ||
const { CONNECT } = PostgreSQL; | ||
const POOL = await CONNECT({ | ||
const POOL = CONNECT({ | ||
host: 'localhost', | ||
@@ -462,0 +462,0 @@ user: 'username', |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
34347
621