-
-
Notifications
You must be signed in to change notification settings - Fork 0
Glossary: MySQL
Tron edited this page Dec 20, 2022
·
11 revisions
DBify's MySQL pipeline simulates and mimics Sequelize
(ORM) like simple, efficient & reliable MySQL management. All APIs are in asynchronous and ORM format; Thus, are supposed to be used in conjunction w/ Assetify's thread module.
Wait no more, switch to DBify and eliminate the extra hassle & worries regarding sql-injection & server freezing/network-trouble; Let DBify increase your productivity & manage it for you right out of the box😉.
local table: result, table: arguments = dbify.mysql.table.fetchList(
~: ...arguments
)
local bool: result, table: arguments = dbify.mysql.table.isValid(
string: tableName,
~: ...arguments
)
local bool: result, table: arguments = dbify.mysql.table.areValid(
table: {
--Tables to be validated
string: tableName,
...
},
bool: isFetchInvalid, --Enabling this returns only invalid tables
~: ...arguments
)
local bool: result, table: arguments = dbify.mysql.table.create(
string: tableName,
table: {
{string: columnName, string: columnType},
...
},
~: ...arguments
)
local bool: result, table: arguments = dbify.mysql.table.delete(
table: {
--Tables to be deleted
string: tableName,
...
},
~: ...arguments
)
local bool: result, table: arguments = dbify.mysql.table.truncate(
table: {
--Tables to be truncated
string: tableName,
...
},
~: ...arguments
)
local table: result, table: arguments = dbify.mysql.table.fetchContents(
string: tableName,
table: {
--Conditional datas to be used for the query
{string: columnName, ~: columnValue},
...
},
bool: isSoloFetch, --Enabling this returns only first row of the retrieved result
~: ...arguments
)
local table: result, table: arguments = dbify.mysql.column.fetchList(
string: tableName
~: ...arguments
)
local bool: result, table: arguments = dbify.mysql.column.isValid(
string: tableName,
string: columnName,
~: ...arguments
)
local bool: result, table: arguments = dbify.mysql.column.areValid(
string: tableName,
table: {
--Columns to be validated
string: columnName,
...
},
bool: isFetchInvalid, --Enabling this returns only invalid columns
~: ...arguments
)
local bool: result, table: arguments = dbify.mysql.column.delete(
string: tableName,
table: {
--Columns to be deleted
string: columnName,
...
},
~: ...arguments
)
local bool: result, table: arguments = dbify.mysql.data.set(
string: tableName,
table: {
--Columns to be updated w/ their respective values
{string: columnName, ~: columnValue},
...
},
table: {
--Conditional datas to be used for the query
{string: columnName, ~: columnValue},
...
},
~: ...arguments
)
local table: result, table: arguments = dbify.mysql.data.get(
string: tableName,
table: {
--Columns whose values are to be retrieved
string: columnName,
...
},
table: {
--Conditional datas to be used for the query
{string: columnName, ~: columnValue},
...
},
bool: isSoloFetch, --Enabling this returns only first row of the retrieved result
~: ...arguments
)