Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
C
caosdb-julialib
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
caosdb
Software
caosdb-julialib
Commits
81bc0fe0
Commit
81bc0fe0
authored
3 years ago
by
florian
Browse files
Options
Downloads
Patches
Plain Diff
FIX: Export correct enum values
parent
13b09296
No related branches found
No related tags found
1 merge request
!13
ENH: Use new value and datatype structs
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
src/CaosDB.jl
+9
-0
9 additions, 0 deletions
src/CaosDB.jl
src/Constants.jl
+30
-1
30 additions, 1 deletion
src/Constants.jl
with
39 additions
and
1 deletion
src/CaosDB.jl
+
9
−
0
View file @
81bc0fe0
...
...
@@ -29,7 +29,16 @@ export evaluate_return_code,
CaosDBException
,
ClientException
,
GenericCaosDBException
,
CaosDBMessage
# Exports from module Constants
# ...from Constants namespace
export
COLLECTION
,
DATATYPE
,
IMPORTANCE
,
MIN_CCAOSDB_VERSION
,
ROLE
# ...from CaosDB datatypes
export
BOOLEAN
,
DATETIME
,
DOUBLE
,
INTEGER
,
TEXT
# ...from CaosDB collections
export
LIST
# ...from CaosDB entity roles
export
FILE
,
PROPERTY
,
RECORD
,
RECORD_TYPE
# ...from CaosDB importances
export
FIX
,
OBLIGATORY
,
RECOMMENDED
,
SUGGESTED
# Exports from module Utility
export
get_ccaosdb_version
,
get_env_fallback
...
...
This diff is collapsed.
Click to expand it.
src/Constants.jl
+
30
−
1
View file @
81bc0fe0
...
...
@@ -23,8 +23,18 @@
module
Constants
# exports from this module
export
COLLECTION
,
DATATYPE
,
IMPORTANCE
,
MIN_CCAOSDB_VERSION
,
ROLE
# exports from the enum submodules
export
BOOLEAN
,
DATETIME
,
DOUBLE
,
INTEGER
,
TEXT
export
LIST
export
FILE
,
PROPERTY
,
RECORD
,
RECORD_TYPE
export
FIX
,
OBLIGATORY
,
RECOMMENDED
,
SUGGESTED
"""
The minimum version of CaosDB's cpplib and C interface that is
supported by this version of CaosDB.jl.
...
...
@@ -34,6 +44,9 @@ const MIN_CCAOSDB_VERSION = v"0.0.17"
# enums have to be encapsulated in modules to prevent namespce conflicts, see
# https://bleepcoder.com/julia/413856244/feature-request-getproperty-on-enum-type-to-access-instances
module
DATATYPE
export
BOOLEAN
,
DATETIME
,
DOUBLE
,
INTEGER
,
TEXT
@enum
_DATATYPE
begin
UNSPECIFIED
BOOLEAN
...
...
@@ -45,13 +58,18 @@ end
end
module
COLLECTION
export
LIST
@enum
_COLLECTION
begin
SCALAR
LIST
end
end
module
ROLE
export
FILE
,
PROPERTY
,
RECORD
,
RECORD_TYPE
@enum
_ROLE
begin
UNSPECIFIED
RECORD
...
...
@@ -62,6 +80,9 @@ end
end
module
IMPORTANCE
export
FIX
,
OBLIGATORY
,
RECOMMENDED
,
SUGGESTED
@enum
_IMPORTANCE
begin
UNSPECIFIED
OBLIGATORY
...
...
@@ -71,4 +92,12 @@ module IMPORTANCE
end
end
using
.
COLLECTION
using
.
DATATYPE
using
.
IMPORTANCE
using
.
ROLE
end
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
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!
Save comment
Cancel
Please
register
or
sign in
to comment