Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
C
clean-platform
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
13
Issues
13
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
clean-and-itasks
clean-platform
Commits
90842b88
Verified
Commit
90842b88
authored
May 18, 2018
by
Camil Staps
🚀
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Also add Database.Native.JSON
parent
cdf9aaa4
Pipeline
#11241
passed with stage
in 1 minute and 35 seconds
Changes
3
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
17 additions
and
0 deletions
+17
-0
src/libraries/OS-Independent/Database/Native/JSON.dcl
src/libraries/OS-Independent/Database/Native/JSON.dcl
+8
-0
src/libraries/OS-Independent/Database/Native/JSON.icl
src/libraries/OS-Independent/Database/Native/JSON.icl
+8
-0
tests/linux64/test.icl
tests/linux64/test.icl
+1
-0
No files found.
src/libraries/OS-Independent/Database/Native/JSON.dcl
0 → 100644
View file @
90842b88
definition
module
Database
.
Native
.
JSON
from
Data
.
Maybe
import
::
Maybe
from
Database
.
Native
import
::
Index
from
Text
.
GenJSON
import
generic
JSONEncode
,
generic
JSONDecode
,
::
JSONNode
derive
JSONEncode
Index
derive
JSONDecode
Index
src/libraries/OS-Independent/Database/Native/JSON.icl
0 → 100644
View file @
90842b88
implementation
module
Database
.
Native
.
JSON
import
Database
.
Native
import
Text
.
GenJSON
JSONEncode
{|
Index
|}
_
(
Index
i
)
=
[
JSONInt
i
]
JSONDecode
{|
Index
|}
_
[
JSONInt
i
:
l
]
=
(
Just
(
Index
i
),
l
)
JSONDecode
{|
Index
|}
_
l
=
(
Nothing
,
l
)
tests/linux64/test.icl
View file @
90842b88
...
...
@@ -94,6 +94,7 @@ import qualified Data.Word8
import
qualified
Data
.
_Array
import
qualified
Data
.
Generics
import
qualified
Database
.
Native
import
qualified
Database
.
Native
.
JSON
import
qualified
Database
.
SQL
import
qualified
Database
.
SQL
.
MySQL
import
qualified
Database
.
SQL
.
RelationalMapping
...
...
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