Created
April 26, 2016 23:38
-
-
Save spscream/0e05b6d65c6e03f750c230a131dd4693 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
iex(1)> {:ok, t} = Tarantool.start_link | |
{:ok, #PID<0.149.0>} | |
iex(2)> Tarantool.ping(t) | |
{:ok, %{0 => 0, 1 => 0, 5 => 53}, %{}} | |
(search)`sel': Tarantool.select(t, %{space_id: 280, limit: 100, key: []}) | |
{:ok, %{0 => 32823, 1 => 1, 5 => 53}, | |
%{49 => "Read access is denied for user 'guest' to space '_space'"}} | |
(search)`aut': Tarantool.auth(t, %{username: "amalaev", password: "111222"}) | |
{:ok, %{0 => 0, 1 => 2, 5 => 53}, %{}} | |
(search)`sele': Tarantool.select(t, %{space_id: 280, limit: 100, key: []}) | |
{:ok, %{0 => 0, 1 => 3, 5 => 53}, | |
%{48 => [[272, 1, "_schema", "memtx", 0, %{}, | |
[%{"name" => "key", "type" => "str"}]], | |
[280, 1, "_space", "memtx", 0, %{}, | |
[%{"name" => "id", "type" => "num"}, %{"name" => "owner", "type" => "num"}, | |
%{"name" => "name", "type" => "str"}, | |
%{"name" => "engine", "type" => "str"}, | |
%{"name" => "field_count", "type" => "num"}, | |
%{"name" => "flags", "type" => "str"}, | |
%{"name" => "format", "type" => "*"}]], | |
[281, 1, "_vspace", "sysview", 0, %{}, | |
[%{"name" => "id", "type" => "num"}, %{"name" => "owner", "type" => "num"}, | |
%{"name" => "name", "type" => "str"}, | |
%{"name" => "engine", "type" => "str"}, | |
%{"name" => "field_count", "type" => "num"}, | |
%{"name" => "flags", "type" => "str"}, | |
%{"name" => "format", "type" => "*"}]], | |
[288, 1, "_index", "memtx", 0, %{}, | |
[%{"name" => "id", "type" => "num"}, %{"name" => "iid", "type" => "num"}, | |
%{"name" => "name", "type" => "str"}, | |
%{"name" => "type", "type" => "str"}, | |
%{"name" => "opts", "type" => "array"}, | |
%{"name" => "parts", "type" => "array"}]], | |
[289, 1, "_vindex", "sysview", 0, %{}, | |
[%{"name" => "id", "type" => "num"}, %{"name" => "iid", "type" => "num"}, | |
%{"name" => "name", "type" => "str"}, | |
%{"name" => "type", "type" => "str"}, | |
%{"name" => "opts", "type" => "array"}, | |
%{"name" => "parts", "type" => "array"}]], | |
[296, 1, "_func", "memtx", 0, %{}, | |
[%{"name" => "id", "type" => "num"}, %{"name" => "owner", "type" => "num"}, | |
%{"name" => "name", "type" => "str"}, | |
%{"name" => "setuid", "type" => "num"}]], | |
[297, 1, "_vfunc", "sysview", 0, %{}, | |
[%{"name" => "id", "type" => "num"}, %{"name" => "owner", "type" => "num"}, | |
%{"name" => "name", "type" => "str"}, | |
%{"name" => "setuid", "type" => "num"}]], | |
[304, 1, "_user", "memtx", 0, %{}, | |
[%{"name" => "id", "type" => "num"}, %{"name" => "owner", "type" => "num"}, | |
%{"name" => "name", "type" => "str"}, | |
%{"name" => "type", "type" => "str"}, | |
%{"name" => "auth", "type" => "*"}]], | |
[305, 1, "_vuser", "sysview", 0, %{}, | |
[%{"name" => "id", "type" => "num"}, %{"name" => "owner", "type" => "num"}, | |
%{"name" => "name", "type" => "str"}, | |
%{"name" => "type", "type" => "str"}, | |
%{"name" => "auth", "type" => "*"}]], | |
[312, 1, "_priv", "memtx", 0, %{}, | |
[%{"name" => "grantor", "type" => "num"}, | |
%{"name" => "grantee", "type" => "num"}, | |
%{"name" => "object_type", "type" => "str"}, | |
%{"name" => "object_id", "type" => "num"}, | |
%{"name" => "privilege", "type" => "num"}]], | |
[313, 1, "_vpriv", "sysview", 0, %{}, | |
[%{"name" => "grantor", "type" => "num"}, | |
%{"name" => "grantee", "type" => "num"}, | |
%{"name" => "object_type", "type" => "str"}, | |
%{"name" => "object_id", "type" => "num"}, | |
%{"name" => "privilege", "type" => "num"}]], | |
[320, 1, "_cluster", "memtx", 0, %{}, | |
[%{"name" => "id", "type" => "num"}, | |
%{"name" => "uuid", "type" => "str"}]], | |
[512, 1, "demo", "memtx", 0, %{}, []], | |
[513, 1, "demo2", "memtx", 0, %{}, []], | |
[514, 1, "aaa", "memtx", 0, %{}, []]]}} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment