forked from exasol/row-level-security-lua
-
Notifications
You must be signed in to change notification settings - Fork 0
/
row-level-security-lua-1.5.6-1.rockspec
71 lines (60 loc) · 2.32 KB
/
row-level-security-lua-1.5.6-1.rockspec
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
rockspec_format = "3.0"
local tag = "1.5.6"
local project = "row-level-security-lua"
local src = "src/main/lua"
package = project
version = tag .. "-1"
source = {
url = "git://github.com/exasol/" .. project,
tag = tag
}
description = {
summary = "Row-level security implementation based on Exasol's Virtual Schemas for Lua",
detailed = [[This project adds a Virtual Schema (a concept closely related to a database view) on top of an existing
Exasol database schema, makes it read-only and adds access controls on a per-row level.]],
homepage = "https://github.com/exasol/" .. project,
license = "MIT",
maintainer = 'Exasol <opensource@exasol.com>'
}
dependencies = {
"exasol-virtual-schema-common-lua = 1.0.2"
}
build_dependencies = {
"amalg"
}
test_dependencies = {
"busted >= 2.2.0-1",
"luacheck >= 1.1.2-1",
"luacov >= 0.15.0-1",
"luacov-coveralls >= 0.2.3-1"
}
test = {
type = "busted"
}
local package_items = {
"exasol.rls.adapter_capabilities", "exasol.rls.RlsAdapter",
"exasol.rls.RlsMetadataReader", "exasol.rls.TableProtectionReader", "exasol.rls.RlsQueryRewriter",
"remotelog", "ExaError", "MessageExpander",
-- from virtual-schema-common-lua"
"exasol.vscl.AbstractVirtualSchemaAdapter", "exasol.vscl.AdapterProperties", "exasol.vscl.RequestDispatcher",
"exasol.vscl.Query", "exasol.vscl.QueryRenderer",
"exasol.vscl.queryrenderer.AbstractQueryAppender", "exasol.vscl.queryrenderer.AggregateFunctionAppender",
"exasol.vscl.queryrenderer.ExpressionAppender", "exasol.vscl.queryrenderer.ImportAppender",
"exasol.vscl.queryrenderer.ScalarFunctionAppender", "exasol.vscl.queryrenderer.SelectAppender",
"exasol.vscl.text", "exasol.vscl.validator",
-- from exasol-virtual-schema-common-lua
"exasol.evscl.AbstractMetadataReader", "exasol.evscl.AbstractQueryRewriter",
"exasol.evscl.ExasolBaseAdapterProperties", "exasol.evscl.LocalMetadataReader",
"exasol.evscl.LocalQueryRewriter"
}
local item_path_list = ""
for i = 1, #package_items do
item_path_list = item_path_list .. " " .. package_items[i]
end
build = {
type = "command",
build_command = "cd " .. src .. " && amalg.lua "
.. "--output=../../../target/row-level-security-dist-" .. tag .. ".lua "
.. "--script=entry.lua"
.. item_path_list
}