We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 3176ca2 commit f649bdbCopy full SHA for f649bdb
lib/utils.ex
@@ -1,23 +1,27 @@
1
defmodule Bigtable.Utils do
2
@moduledoc false
3
4
+ @spec configured_table_name() :: binary()
5
def configured_table_name do
6
instance = configured_instance_name()
7
table = Application.get_env(:bigtable, :table)
8
9
"#{instance}/tables/#{table}"
10
end
11
12
+ @spec configured_instance_name() :: binary()
13
def configured_instance_name do
14
project = get_project()
15
instance = get_instance()
16
"projects/#{project}/instances/#{instance}"
17
18
19
+ @spec get_project() :: binary()
20
defp get_project do
21
Application.get_env(:bigtable, :project)
22
23
24
+ @spec get_instance() :: binary()
25
defp get_instance do
26
Application.get_env(:bigtable, :instance)
27
0 commit comments