diff --git a/src/CaosDB.jl b/src/CaosDB.jl index 1f451f770488beae53e811c843c116d197ae34ef..254a566c6995ed7ac3079925476b6bee930547e2 100644 --- a/src/CaosDB.jl +++ b/src/CaosDB.jl @@ -81,7 +81,7 @@ authenticator object from a configuration. mutable struct _Authenticator wrapped_authenticator::Ptr{Cvoid} - function _Authenticator(managed_by_julia::Bool=false) + function _Authenticator(managed_by_julia::Bool = false) auth = new() if managed_by_julia # Only append a finalizer for this if the object is diff --git a/src/Connection.jl b/src/Connection.jl index 6b267ac240ca7909be540d1ad2bc5713cec59102..138cd524e2483ac851e0001cd98fba90a1952f56 100644 --- a/src/Connection.jl +++ b/src/Connection.jl @@ -35,7 +35,7 @@ to create an connection object from a configuration. mutable struct _Connection wrapped_connection::Ptr{Cvoid} - function _Connection(managed_by_julia::Bool=false) + function _Connection(managed_by_julia::Bool = false) conn = new() if managed_by_julia # Only append a finalizer for this if the object is @@ -64,7 +64,7 @@ an certificate-provider object from a configuration. mutable struct _CertificateProvider wrapped_certificate_provider::Ptr{Cvoid} - function _CertificateProvider(managed_by_julia::Bool=false) + function _CertificateProvider(managed_by_julia::Bool = false) prov = new() if managed_by_julia # Only append a finalizer for this if the object is @@ -93,7 +93,7 @@ an connection-configuration object from a configuration. mutable struct _Configuration wrapped_connection_configuration::Ptr{Cvoid} - function _Configuration(managed_by_julia::Bool=false) + function _Configuration(managed_by_julia::Bool = false) config = new() if managed_by_julia # Only append a finalizer for this if the object is @@ -237,7 +237,7 @@ function create_connection(config::Ref{_Configuration}) end -function get_connection(name::AbstractString="default") +function get_connection(name::AbstractString = "default") connection = Ref{_Connection}(_Connection()) @@ -246,7 +246,7 @@ function get_connection(name::AbstractString="default") (:caosdb_connection_connection_manager_get_default_connection, "libccaosdb"), Cint, (Ref{_Connection},), - connection + connection, ) else err_code = ccall( @@ -254,7 +254,7 @@ function get_connection(name::AbstractString="default") Cint, (Ref{_Connection}, Cstring), connection, - name + name, ) end @@ -265,7 +265,7 @@ function get_connection(name::AbstractString="default") end return connection - + end @@ -431,7 +431,8 @@ return the connection object. defined in your config json that will be used to connect to the CaosDB server defined therein. Default value is "default". """ -function connect(name::AbstractString="default") conn = get_connection(name) +function connect(name::AbstractString = "default") + conn = get_connection(name) print_version_info(conn)