Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
7
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Open sidebar
nebogeo
symbai
Commits
6e626733
Commit
6e626733
authored
May 15, 2014
by
Dave Griffiths
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
dep fix for racket
parent
5fb8662b
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
6 deletions
+6
-6
eavdb/entity-get.ss
eavdb/entity-get.ss
+0
-6
eavdb/entity-insert.ss
eavdb/entity-insert.ss
+6
-0
No files found.
eavdb/entity-get.ss
View file @
6e626733
...
...
@@ -33,12 +33,6 @@
"select * from "
table
"_entity where unique_id = ?"
)
unique-id
))))
(
define
(
get-entity-type
db
table
entity-id
)
(
select-first
db
(
string-append
"select entity_type from "
table
"_entity where entity_id = ?"
)
entity-id
))
(
define
(
get-all-entity-types
db
table
)
(
cdr
(
db-select
db
(
string-append
"select distinct entity_type from "
table
"_entity;"
))))
...
...
eavdb/entity-insert.ss
View file @
6e626733
...
...
@@ -38,6 +38,12 @@
(
insert-entity-wholesale
db
table
entity-type
uid
1
0
ktvlist
)
uid
))
(
define
(
get-entity-type
db
table
entity-id
)
(
select-first
db
(
string-append
"select entity_type from "
table
"_entity where entity_id = ?"
)
entity-id
))
;; used for the app preferences
(
define
(
insert-entity-if-not-exists
db
table
entity-type
user
entity-id
ktvlist
)
(
let
((
found
(
get-entity-type
db
table
entity-id
)))
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a 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