Skip to content
GitLab
Explore
Projects
Groups
Snippets
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Felipe Zapata
Pod backend
Commits
1a13d71a
Verified
Commit
1a13d71a
authored
4 years ago
by
Vasili Novikov
Browse files
Options
Download
Email Patches
Plain Diff
BREAKING CHANGE rename edge label
parent
fea9e224
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
docs/HTTP_API.md
+1
-1
docs/HTTP_API.md
res/migrations/V2__edges_order_label.sql
+1
-1
res/migrations/V2__edges_order_label.sql
src/internal_api.rs
+1
-1
src/internal_api.rs
with
3 additions
and
3 deletions
+3
-3
docs/HTTP_API.md
+
1
-
1
View file @
1a13d71a
...
...
@@ -46,7 +46,7 @@ support properties in the future (don't rely on it yet).
*
`_type`
, the type of the edge. Cannot be modified once created.
### edge's additional properties (currently hardcoded)
*
`
l
abel`
, an optional string
*
`
edgeL
abel`
, an optional string
*
`sequence`
, an optional integer meaning the client-side ordering of items
(e.g. items reachable from a "root" item using edges of a particular _type)
...
...
This diff is collapsed.
Click to expand it.
res/migrations/V2__edges_order_label.sql
+
1
-
1
View file @
1a13d71a
ALTER
TABLE
edges
ADD
l
abel
TEXT
;
ALTER
TABLE
edges
ADD
edgeL
abel
TEXT
;
ALTER
TABLE
edges
ADD
sequence
INTEGER
;
This diff is collapsed.
Click to expand it.
src/internal_api.rs
+
1
-
1
View file @
1a13d71a
...
...
@@ -328,7 +328,7 @@ pub fn get_item_with_edges(sqlite: &Pool<SqliteConnectionManager>, uid: i64) ->
}
let
mut
stmt_edge
=
conn
.prepare_cached
(
"SELECT _type, sequence,
l
abel, _target FROM edges WHERE _source = :_source"
,
"SELECT _type, sequence,
edgeL
abel, _target FROM edges WHERE _source = :_source"
,
)
?
;
let
mut
edge_rows
=
stmt_edge
.query_named
(
&
[(
":_source"
,
&
uid
)])
?
;
let
mut
edges
=
Vec
::
new
();
...
...
This diff is collapsed.
Click to expand it.
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment
Menu
Explore
Projects
Groups
Snippets