From 5fe7f9ad29f8f9b1e069679902b171cb9362f5ae Mon Sep 17 00:00:00 2001 From: florian <f.spreckelsen@inidscale.com> Date: Fri, 23 Jul 2021 12:05:00 +0200 Subject: [PATCH] STY: autoformat --- src/CaosDB.jl | 2 +- src/Connection.jl | 17 +++++++++-------- 2 files changed, 10 insertions(+), 9 deletions(-) diff --git a/src/CaosDB.jl b/src/CaosDB.jl index 1f451f7..254a566 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 6b267ac..138cd52 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) -- GitLab