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
7cd327af
Commit
7cd327af
authored
3 years ago
by
florian
Browse files
Options
Downloads
Plain Diff
Merge branch 'dev' into f-consolidate-docs
parents
0fec278a
128e5866
No related branches found
No related tags found
1 merge request
!6
DOC: Add sections to documentation
Pipeline
#10892
passed
3 years ago
Stage: info
Stage: code-style
Stage: setup
Stage: test
Stage: deploy
Pipeline: CaosDB Julia Integration Tests
#10894
Changes
3
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
.gitlab-ci.yml
+5
-1
5 additions, 1 deletion
.gitlab-ci.yml
CHANGELOG.md
+1
-0
1 addition, 0 deletions
CHANGELOG.md
src/CaosDB.jl
+23
-11
23 additions, 11 deletions
src/CaosDB.jl
with
29 additions
and
12 deletions
.gitlab-ci.yml
+
5
−
1
View file @
7cd327af
...
@@ -159,7 +159,11 @@ trigger_inttest:
...
@@ -159,7 +159,11 @@ trigger_inttest:
## Determine the juliainttest branch...
## Determine the juliainttest branch...
# ... use an f-branch if posible...
# ... use an f-branch if posible...
-
if echo "$CI_COMMIT_REF_NAME" | grep -c "^f-" ; then
-
if echo "$CI_COMMIT_REF_NAME" | grep -c "^f-" ; then
JULIAINT_REF=$CI_COMMIT_REF_NAME ;
if curl -o /dev/null -s -w "%{http_code}" $JULIAINTTEST_BRANCHES/$CI_COMMIT_REF_NAME | grep "404"; then
JULIAINT_REF=dev ;
else
JULIAINT_REF=$CI_COMMIT_REF_NAME;
fi
fi;
fi;
# ... or use main if possible...
# ... or use main if possible...
-
if [[ "$CI_COMMIT_REF_NAME" == "main" ]] ; then
-
if [[ "$CI_COMMIT_REF_NAME" == "main" ]] ; then
...
...
This diff is collapsed.
Click to expand it.
CHANGELOG.md
+
1
−
0
View file @
7cd327af
...
@@ -11,6 +11,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
...
@@ -11,6 +11,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
*
Basic functionality to establish connection to a CaosDB server and
*
Basic functionality to establish connection to a CaosDB server and
retrieve its version (using the Extern C interface of caosdb-cpplib)
retrieve its version (using the Extern C interface of caosdb-cpplib)
*
Support for Windows
### Changed
### Changed
...
...
This diff is collapsed.
Click to expand it.
src/CaosDB.jl
+
23
−
11
View file @
7cd327af
...
@@ -23,6 +23,11 @@
...
@@ -23,6 +23,11 @@
module
CaosDB
module
CaosDB
"""
Chose the name of the library according to the OS you're running.
"""
library_name
=
(
@static
Sys
.
iswindows
()
?
"ccaosdb"
:
"libccaosdb"
)
module
Info
module
Info
"""
"""
...
@@ -49,6 +54,8 @@ module Utility
...
@@ -49,6 +54,8 @@ module Utility
export
get_env_var
export
get_env_var
using
..
CaosDB
"""
"""
get_env_var(var[, default])
get_env_var(var[, default])
...
@@ -59,7 +66,7 @@ instead.
...
@@ -59,7 +66,7 @@ instead.
function
get_env_var
(
var
::
AbstractString
,
default
::
AbstractString
=
""
)
function
get_env_var
(
var
::
AbstractString
,
default
::
AbstractString
=
""
)
ret
=
ccall
(
ret
=
ccall
(
(
:
caosdb_utility_get_env_var
,
"libccaosdb"
),
(
:
caosdb_utility_get_env_var
,
CaosDB
.
library_name
),
Cstring
,
Cstring
,
(
Cstring
,
Cstring
),
(
Cstring
,
Cstring
),
var
,
var
,
...
@@ -74,6 +81,8 @@ end # Utility
...
@@ -74,6 +81,8 @@ end # Utility
module
Authentication
module
Authentication
using
..
CaosDB
"""
"""
Struct containing a pointer to the wrapped cpp authenticator
Struct containing a pointer to the wrapped cpp authenticator
class. Meant for internal use; call a
class. Meant for internal use; call a
...
@@ -91,7 +100,7 @@ mutable struct _Authenticator
...
@@ -91,7 +100,7 @@ mutable struct _Authenticator
if
t
.
wrapped_authenticator
!=
C_NULL
if
t
.
wrapped_authenticator
!=
C_NULL
# Only if pointer was filled after real initialization
# Only if pointer was filled after real initialization
ccall
(
ccall
(
(
:
caosdb_authentication_delete_authenticator
,
"libccaosdb"
),
(
:
caosdb_authentication_delete_authenticator
,
CaosDB
.
library_name
),
Cint
,
Cint
,
(
Ref
{
_Authenticator
},),
(
Ref
{
_Authenticator
},),
Ref
{
_Authenticator
}(
t
),
Ref
{
_Authenticator
}(
t
),
...
@@ -120,7 +129,7 @@ function create_plain_password_authenticator(
...
@@ -120,7 +129,7 @@ function create_plain_password_authenticator(
auth
=
Ref
{
_Authenticator
}(
_Authenticator
())
auth
=
Ref
{
_Authenticator
}(
_Authenticator
())
err_code
=
ccall
(
err_code
=
ccall
(
(
:
caosdb_authentication_create_plain_password_authenticator
,
"libccaosdb"
),
(
:
caosdb_authentication_create_plain_password_authenticator
,
CaosDB
.
library_name
),
Cint
,
Cint
,
(
Ref
{
_Authenticator
},
Cstring
,
Cstring
),
(
Ref
{
_Authenticator
},
Cstring
,
Cstring
),
auth
,
auth
,
...
@@ -160,7 +169,7 @@ mutable struct _Connection
...
@@ -160,7 +169,7 @@ mutable struct _Connection
function
f
(
t
)
function
f
(
t
)
if
t
.
wrapped_connection
!=
C_NULL
if
t
.
wrapped_connection
!=
C_NULL
ccall
(
ccall
(
(
:
caosdb_connection_delete_connection
,
"libccaosdb"
),
(
:
caosdb_connection_delete_connection
,
CaosDB
.
library_name
),
Cint
,
Cint
,
(
Ref
{
_Connection
},),
(
Ref
{
_Connection
},),
Ref
{
_Connection
}(
t
),
Ref
{
_Connection
}(
t
),
...
@@ -186,7 +195,7 @@ mutable struct _CertificateProvider
...
@@ -186,7 +195,7 @@ mutable struct _CertificateProvider
function
f
(
t
)
function
f
(
t
)
if
t
.
wrapped_certificate_provider
!=
C_NULL
if
t
.
wrapped_certificate_provider
!=
C_NULL
ccall
(
ccall
(
(
:
caosdb_connection_delete_certificate_provider
,
"libccaosdb"
),
(
:
caosdb_connection_delete_certificate_provider
,
CaosDB
.
library_name
),
Cint
,
Cint
,
(
Ref
{
_CertificateProvider
},),
(
Ref
{
_CertificateProvider
},),
Ref
{
_CertificateProvider
}(
t
),
Ref
{
_CertificateProvider
}(
t
),
...
@@ -212,7 +221,10 @@ mutable struct _Configuration
...
@@ -212,7 +221,10 @@ mutable struct _Configuration
function
f
(
t
)
function
f
(
t
)
if
t
.
wrapped_connection_configuration
!=
C_NULL
if
t
.
wrapped_connection_configuration
!=
C_NULL
ccall
(
ccall
(
(
:
caosdb_connection_delete_connection_configuration
,
"libccaosdb"
),
(
:
caosdb_connection_delete_connection_configuration
,
CaosDB
.
library_name
,
),
Cint
,
Cint
,
(
Ref
{
_Configuration
},),
(
Ref
{
_Configuration
},),
Ref
{
_Configuration
}(
t
),
Ref
{
_Configuration
}(
t
),
...
@@ -234,7 +246,7 @@ function create_pem_file_certificate_provider(path::AbstractString)
...
@@ -234,7 +246,7 @@ function create_pem_file_certificate_provider(path::AbstractString)
cert_provider
=
Ref
{
_CertificateProvider
}(
_CertificateProvider
())
cert_provider
=
Ref
{
_CertificateProvider
}(
_CertificateProvider
())
err_code
=
ccall
(
err_code
=
ccall
(
(
:
caosdb_connection_create_pem_file_certificate_provider
,
"libccaosdb"
),
(
:
caosdb_connection_create_pem_file_certificate_provider
,
CaosDB
.
library_name
),
Cint
,
Cint
,
(
Ref
{
_CertificateProvider
},
Cstring
),
(
Ref
{
_CertificateProvider
},
Cstring
),
cert_provider
,
cert_provider
,
...
@@ -271,7 +283,7 @@ function create_tls_connection_configuration(
...
@@ -271,7 +283,7 @@ function create_tls_connection_configuration(
config
=
Ref
{
_Configuration
}(
_Configuration
())
config
=
Ref
{
_Configuration
}(
_Configuration
())
err_code
=
ccall
(
err_code
=
ccall
(
(
:
caosdb_connection_create_tls_connection_configuration
,
"libccaosdb"
),
(
:
caosdb_connection_create_tls_connection_configuration
,
CaosDB
.
library_name
),
Cint
,
Cint
,
(
(
Ref
{
_Configuration
},
Ref
{
_Configuration
},
...
@@ -302,7 +314,7 @@ function create_insecure_connection_configuration(host::AbstractString, port::Ci
...
@@ -302,7 +314,7 @@ function create_insecure_connection_configuration(host::AbstractString, port::Ci
config
=
Ref
{
_Configuration
}(
_Configuration
())
config
=
Ref
{
_Configuration
}(
_Configuration
())
err_code
=
ccall
(
err_code
=
ccall
(
(
:
caosdb_connection_create_insecure_connection_configuration
,
"libccaosdb"
),
(
:
caosdb_connection_create_insecure_connection_configuration
,
CaosDB
.
library_name
),
Cint
,
Cint
,
(
Ref
{
_Configuration
},
Cstring
,
Cint
),
(
Ref
{
_Configuration
},
Cstring
,
Cint
),
config
,
config
,
...
@@ -329,7 +341,7 @@ function create_connection(config::Ref{_Configuration})
...
@@ -329,7 +341,7 @@ function create_connection(config::Ref{_Configuration})
connection
=
Ref
{
_Connection
}(
_Connection
())
connection
=
Ref
{
_Connection
}(
_Connection
())
err_code
=
ccall
(
err_code
=
ccall
(
(
:
caosdb_connection_create_connection
,
"libccaosdb"
),
(
:
caosdb_connection_create_connection
,
CaosDB
.
library_name
),
Cint
,
Cint
,
(
Ref
{
_Connection
},
Ref
{
_Configuration
}),
(
Ref
{
_Connection
},
Ref
{
_Configuration
}),
connection
,
connection
,
...
@@ -357,7 +369,7 @@ function get_version_info(con::Ref{_Connection})
...
@@ -357,7 +369,7 @@ function get_version_info(con::Ref{_Connection})
info
=
Ref
{
CaosDB
.
Info
.
_VersionInfo
}(
CaosDB
.
Info
.
_VersionInfo
())
info
=
Ref
{
CaosDB
.
Info
.
_VersionInfo
}(
CaosDB
.
Info
.
_VersionInfo
())
err_code
=
ccall
(
err_code
=
ccall
(
(
:
caosdb_connection_get_version_info
,
"libccaosdb"
),
(
:
caosdb_connection_get_version_info
,
CaosDB
.
library_name
),
Cint
,
Cint
,
(
Ref
{
CaosDB
.
Info
.
_VersionInfo
},
Ref
{
_Connection
}),
(
Ref
{
CaosDB
.
Info
.
_VersionInfo
},
Ref
{
_Connection
}),
info
,
info
,
...
...
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