Missing docstring for DbId
. Check Documenter's build log for details.
Missing docstring for SQLType
. Check Documenter's build log for details.
Missing docstring for AbstractModel
. Check Documenter's build log for details.
SearchLight.SQLInput
— TypeProvides safe input into SQL queries and operations related to that.
SearchLight.SQLColumn
— TypeRepresents a SQL column when building SQL queries.
Missing docstring for SQLColumns
. Check Documenter's build log for details.
SearchLight.SQLLogicOperator
— TypeRepresents the logic operators (OR, AND) as part of SQL queries.
SearchLight.SQLWhere
— TypeProvides functionality for building and manipulating SQL WHERE
conditions.
SearchLight.SQLWhereExpression
— TypeSQLWhereExpression(sql_expression::String, values::T)
SQLWhereExpression(sql_expression::String[, values::Vector{T}])
Constructs an instance of SQLWhereExpression, replacing the ?
placeholders inside sql_expression
with properly quoted values.
Examples:
julia> SQLWhereExpression("slug LIKE ?", "%julia%")
SearchLight.SQLWhereExpression
+================+=============+
| key | value |
+================+=============+
| condition | AND |
+----------------+-------------+
| sql_expression | slug LIKE ? |
+----------------+-------------+
| values | '%julia%' |
+----------------+-------------+
julia> SQLWhereExpression("id BETWEEN ? AND ?", [10, 20])
SearchLight.SQLWhereExpression
+================+====================+
| key | value |
+================+====================+
| condition | AND |
+----------------+--------------------+
| sql_expression | id BETWEEN ? AND ? |
+----------------+--------------------+
| values | 10,20 |
+----------------+--------------------+
julia> SQLWhereExpression("question LIKE 'what is the question\?'")
SearchLight.SQLWhereExpression
+================+========================================+
| key | value |
+================+========================================+
| condition | AND |
+----------------+----------------------------------------+
| sql_expression | question LIKE 'what is the question?' |
+----------------+----------------------------------------+
| values | |
+----------------+----------------------------------------+
Missing docstring for SQLWhereEntity
. Check Documenter's build log for details.
SearchLight.SQLLimit
— TypeWrapper around SQL limit
operator.
SearchLight.SQLOrder
— TypeWrapper around SQL order
operator.
SearchLight.SQLQuery
— TypeSQLQuery( columns = SQLColumn[],
where = SQLWhereEntity[],
limit = SQLLimit("ALL"),
offset = 0,
order = SQLOrder[],
group = SQLColumn[],
having = SQLWhereEntity[])
Returns a new instance of SQLQuery.
Examples
julia> SQLQuery(where = [SQLWhereExpression("id BETWEEN ? AND ?", [10, 20])], offset = 5, limit = 5, order = :title)
SearchLight.SQLQuery
+=========+==============================================================+
| key | value |
+=========+==============================================================+
| columns | |
+---------+--------------------------------------------------------------+
| group | |
+---------+--------------------------------------------------------------+
| having | Union{SearchLight.SQLWhere,SearchLight.SQLWhereExpression}[] |
+---------+--------------------------------------------------------------+
| limit | 5 |
+---------+--------------------------------------------------------------+
| offset | 5 |
+---------+--------------------------------------------------------------+
| | SearchLight.SQLOrder[ |
| | SearchLight.SQLOrder |
| | +===========+=========+ |
| | | key | value | |
| order | +========... |
+---------+--------------------------------------------------------------+
| | Union{SearchLight.SQLWhere,SearchLight.SQLWhereExpression}[ |
| | SearchLight.SQLWhereExpression |
| where | +========... |
+---------+--------------------------------------------------------------+
SearchLight.SQLRaw
— TypeWrapper around a raw SQL query part.
SearchLight.SQLJoin
— TypeBuilds and manipulates SQL join
expressions.
SearchLight.SQLOn
— TypeRepresents the ON
operator used in SQL JOIN
SearchLight.SQLJoinType
— TypeWrapper around the various types of SQL join
(left
, right
, inner
, etc).
Missing docstring for SQLHaving
. Check Documenter's build log for details.
Missing docstring for @sql_str
. Check Documenter's build log for details.