diff options
Diffstat (limited to 'stdlib/source/library/lux/world/db/sql.lux')
-rw-r--r-- | stdlib/source/library/lux/world/db/sql.lux | 32 |
1 files changed, 16 insertions, 16 deletions
diff --git a/stdlib/source/library/lux/world/db/sql.lux b/stdlib/source/library/lux/world/db/sql.lux index 084ef671f..dba1f3c1a 100644 --- a/stdlib/source/library/lux/world/db/sql.lux +++ b/stdlib/source/library/lux/world/db/sql.lux @@ -20,7 +20,7 @@ (text.enclosed ["(" ")"])) ... Kind -(template [<declaration>] +(with_template [<declaration>] [(primitive: .public <declaration> Any)] [Literal'] @@ -66,7 +66,7 @@ Text ... SQL - (template [<declaration> <kind>] + (with_template [<declaration> <kind>] [(type: .public <declaration> (SQL <kind>))] @@ -140,7 +140,7 @@ (..parenthesize (..listing parameters))))) ... Condition - (template [<name> <sql_op>] + (with_template [<name> <sql_op>] [(def: .public (<name> reference sample) (-> Value Value Condition) (abstraction @@ -175,7 +175,7 @@ " IN " (..parenthesize (listing options))))) - (template [<func_name> <sql_op>] + (with_template [<func_name> <sql_op>] [(def: .public (<func_name> left right) (-> Condition Condition Condition) (abstraction @@ -187,7 +187,7 @@ [or "OR"] ) - (template [<name> <type> <sql>] + (with_template [<name> <type> <sql>] [(def: .public <name> (-> <type> Condition) (|>> representation ..parenthesize (format <sql> " ") abstraction))] @@ -197,7 +197,7 @@ ) ... Query - (template [<name> <type> <decoration>] + (with_template [<name> <type> <decoration>] [(def: .public <name> (-> <type> Source) (|>> representation <decoration> abstraction))] @@ -207,7 +207,7 @@ [from_query Any_Query ..parenthesize] ) - (template [<func_name> <op>] + (with_template [<func_name> <op>] [(def: .public (<func_name> columns source) (-> (List [Column Alias]) Source Base_Query) (abstraction @@ -231,7 +231,7 @@ [select_distinct "SELECT DISTINCT"] ) - (template [<name> <join_text>] + (with_template [<name> <join_text>] [(def: .public (<name> table condition prev) (-> Table Condition Base_Query Base_Query) (abstraction @@ -246,7 +246,7 @@ [full_outer_join "FULL OUTER JOIN"] ) - (template [<function> <sql_op>] + (with_template [<function> <sql_op>] [(def: .public (<function> left right) (-> Any_Query Any_Query (Query Without_Where Without_Having No_Order No_Group No_Limit No_Offset)) (abstraction @@ -259,7 +259,7 @@ [intersect "INTERSECT"] ) - (template [<name> <sql> <variables> <input> <output>] + (with_template [<name> <sql> <variables> <input> <output>] [(`` (def: .public (<name> value query) (All (_ (~~ (template.spliced <variables>))) (-> Nat <input> <output>)) @@ -277,7 +277,7 @@ (Query where having order group limit With_Offset)] ) - (template [<name> <sql>] + (with_template [<name> <sql>] [(def: .public <name> Order (abstraction <sql>))] @@ -370,7 +370,7 @@ (-> Text (Schema Value)) (|>> abstraction)) - (template [<name> <attr>] + (with_template [<name> <attr>] [(def: .public (<name> attr) (-> (Schema Value) (Schema Value)) (abstraction @@ -410,7 +410,7 @@ (abstraction (format "CREATE TABLE " (representation table) " AS " (representation query)))) - (template [<name> <sql>] + (with_template [<name> <sql>] [(def: .public (<name> table) (-> Table Definition) (abstraction @@ -430,7 +430,7 @@ (abstraction (format "ALTER TABLE " (representation table) " DROP COLUMN " (representation column)))) - (template [<name> <type>] + (with_template [<name> <type>] [(def: .public (<name> name) (-> Text <type>) (abstraction name))] @@ -442,7 +442,7 @@ [db DB] ) - (template [<name> <type> <sql>] + (with_template [<name> <type> <sql>] [(def: .public <name> (-> <type> Definition) (|>> representation (format <sql> " ") abstraction))] @@ -452,7 +452,7 @@ [drop_view View "DROP VIEW"] ) - (template [<name> <sql>] + (with_template [<name> <sql>] [(def: .public (<name> view query) (-> View Any_Query Definition) (abstraction |