Skip to content

Commit

Permalink
Add stub jobs table
Browse files Browse the repository at this point in the history
  • Loading branch information
lbguilherme committed Feb 25, 2020
1 parent 80efcbb commit 7f8184b
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/storage/manager.cr
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,8 @@ module Storage
return VirtualStatsTable.new(self)
when "current_issues"
return VirtualCurrentIssuesTable.new(self)
when "jobs"
return VirtualJobsTable.new(self)
else
return nil
end
Expand Down
16 changes: 16 additions & 0 deletions src/storage/table/virtual_jobs_table.cr
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
require "./virtual_table"

module Storage
struct VirtualJobsTable < VirtualTable
def initialize(manager : Manager)
super("jobs", manager)
end

def get(key)
nil
end

def scan(&block : Hash(String, ReQL::Datum) ->)
end
end
end

0 comments on commit 7f8184b

Please sign in to comment.