{"id":13792719,"url":"https://github.com/stofel/taran","last_synced_at":"2026-01-17T17:23:16.683Z","repository":{"id":79747014,"uuid":"48677158","full_name":"stofel/taran","owner":"stofel","description":"Erlang Tarantool driver","archived":false,"fork":false,"pushed_at":"2018-06-29T05:52:40.000Z","size":25,"stargazers_count":13,"open_issues_count":0,"forks_count":6,"subscribers_count":4,"default_branch":"master","last_synced_at":"2024-11-18T06:49:51.178Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"Erlang","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/stofel.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2015-12-28T06:15:45.000Z","updated_at":"2024-09-10T08:22:48.000Z","dependencies_parsed_at":null,"dependency_job_id":"b062243b-5c74-4c16-99e7-47654f52cb52","html_url":"https://github.com/stofel/taran","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stofel%2Ftaran","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stofel%2Ftaran/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stofel%2Ftaran/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stofel%2Ftaran/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/stofel","download_url":"https://codeload.github.com/stofel/taran/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":253754994,"owners_count":21958936,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-08-03T22:01:15.320Z","updated_at":"2026-01-17T17:23:16.658Z","avatar_url":"https://github.com/stofel.png","language":"Erlang","funding_links":[],"categories":["Connectors"],"sub_categories":["Administration"],"readme":"# taran\n\n\nErlang tarantool 1.6/1.7 connector.\n\nDESCRIPTION\n1. Pools asynchronus connections (OTP supervisor based)\n2. Auto reconnect\n3. Erlang maps \u003c-\u003e Lua tables support\n\n\nINSTALL\n\nadd it to your rebar config\n\n```erlang\n\n{deps, [\n    ....\n    {taran, \".*\", {git, \"https://github.com/stofel/taran.git\", {branch, \"master\"}}}\n]}.\n```\n\nand add taran to your_project.app.src file.\n\nFor tarantool 1.6 call function  support delete {d, 'TARANTOOL_V17_CALL'} from taran/rebar.conf\n\nUSAGE\n\n```erlang\n{ok, Db} = taran:connect(_ConnName = test).\n{ok,test}\n%% or\nArgs = #{host =\u003e \"127.0.0.1\",   %% Host (default \"localhost\")\n         port =\u003e 3301,          %% Port (default 3301)\n         user =\u003e \u003c\u003c\"none\"\u003e\u003e,    %% User (default \u003c\u003c\"none\"\u003e\u003e, use guest access)\n         pass =\u003e \u003c\u003c\"none\"\u003e\u003e     %% Pass (default \u003c\u003c\"none\"\u003e\u003e, use guest access)\n         cnum =\u003e 3},            %% CNum Number of open sokets for connect (default 3)\ntaran:connect(_ConnName = test, Args).\n{ok,test}\n%% or\ntaran:connect(_ConnName = test, #{port =\u003e 3311}).\n{ok,test}\n\ntaran:connect_list().\n[{test,\u003c0.926.0\u003e,supervisor,[taran_conns_sup]}]\n\n\n%% Insert\ntaran:insert(Db, [1, \u003c\u003c\"test_row\"\u003e\u003e]).\n{ok, [1, \u003c\u003c\"test_row\"\u003e\u003e]}\n%% or\nArgs = #{space_id =\u003e 514}, %% SpaceId (default 0)\ntaran:insert(Db, [1, \u003c\u003c\"test_row\"\u003e\u003e], Args).\n{ok, [1, \u003c\u003c\"test_row\"\u003e\u003e]}\n\n\n%% Select\ntaran:select(Db, [1]).\n{ok, [[1, \u003c\u003c\"test_row\"\u003e\u003e]]}\n%% or\nArgs = #{space_id =\u003e 0,           %% SpaceId 0 by default\n         index_id =\u003e 0,           %% IndexId 0 by default\n         limit    =\u003e 16#FFFFFFFF, %% Very big number by default\n         offset   =\u003e 0,           %% No offset by default\n         iterator =\u003e 0},          %% EQ by default (see tarantool doc or taran.erl for more iterators)\ntaran:select(Db, [1], Args).\n{ok, [[1, \u003c\u003c\"test_row\"\u003e\u003e]]}\n \n%% Update\nOp = [\u003c\u003c\"=\"\u003e\u003e, 1, \u003c\u003c\"test_row2\"\u003e\u003e]\ntaran:update(Db, [1], [Op]).\n{ok, []}\n%% or\nArgs = #{space_id =\u003e 0,           %% SpaceId 0 by default\n         index_id =\u003e 0},          %% IndexId 0 by default\ntaran:update(Db, [1], [Op], Args).\n{ok, []}\n\n%% Upsert\nTuple = {3, \u003c\u003c\"test_row3\"\u003e\u003e},\nOp = [\u003c\u003c\"=\"\u003e\u003e, 1, \u003c\u003c\"test_row3\"\u003e\u003e],\ntaran:upsert(Db, Tuple, [Op]). \n{ok, []}\n%% or\nArgs = #{space_id =\u003e 0,           %% SpaceId 0 by default\n         index_id =\u003e 0},          %% IndexId 0 by default\ntaran:upsert(Db, Tuple, [Op], Args).\n{ok, []}\n\n%% Delete\nKey = 1,\ntaran:delete(Db, [Key]).\n{ok, []}\n%% or\nArgs = #{space_id =\u003e 0,           %% SpaceId 0 by default\n         index_id =\u003e 0},          %% IndexId 0 by default\ntaran:delete(Db, [Key], Args).\n{ok, []}\n\n%% Other cmds\n\ntaran:eval(Db, \u003c\u003c\"return 'hello'\"\u003e\u003e).\n{ok,\u003c\u003c\"hello\"\u003e\u003e}\n\ntaran:eval(Db, \u003c\u003c\"return {['hello']={'hello'}}\"\u003e\u003e).\n{ok,#{\u003c\u003c\"hello\"\u003e\u003e =\u003e [\u003c\u003c\"hello\"\u003e\u003e]}}\n\ntaran:connect_close(Db).\nok\n```\n\nSee taran.erl for more commands, options and defaults.\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fstofel%2Ftaran","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fstofel%2Ftaran","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fstofel%2Ftaran/lists"}