-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
#122: Apply OO rules according to style guide. Co-authored-by: chπ <christoph.pirkl@exasol.com>
- Loading branch information
1 parent
4b07a33
commit 9929dfe
Showing
17 changed files
with
114 additions
and
116 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,25 +1,18 @@ | ||
--- | ||
-- This is the main entry point of the Lua Virtual Schema adapter. | ||
-- <p> | ||
--- Main entry point of the Lua Virtual Schema adapter. | ||
-- It is responsible for creating and wiring up the main adapter objects. | ||
-- </p> | ||
|
||
local RlsAdapter = require("exasolrls.RlsAdapter") | ||
local RlsAdapterProperties = require("exasolrls.RlsAdapterProperties") | ||
local MetadataReader = require("exasolrls.MetadataReader") | ||
local RequestDispatcher = require("exasolvs.RequestDispatcher") | ||
|
||
--- | ||
-- Handle a Virtual Schema request. | ||
-- | ||
--- Handle a Virtual Schema request. | ||
-- @param request_as_json JSON-encoded adapter request | ||
-- | ||
-- @return JSON-encoded adapter response | ||
-- | ||
function adapter_call(request_as_json) | ||
local exasol_context = _G.exa | ||
local metadata_reader = MetadataReader:new(exasol_context) | ||
local adapter = RlsAdapter.create(metadata_reader) | ||
local dispatcher = RequestDispatcher.create(adapter, RlsAdapterProperties) | ||
local adapter = RlsAdapter:new(metadata_reader) | ||
local dispatcher = RequestDispatcher:new(adapter, RlsAdapterProperties) | ||
return dispatcher:adapter_call(request_as_json) | ||
end | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.