guix-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

01/05: services: MySQL: Deprecate 'mysql-service'.


From: guix-commits
Subject: 01/05: services: MySQL: Deprecate 'mysql-service'.
Date: Sat, 28 Nov 2020 13:54:41 -0500 (EST)

mbakke pushed a commit to branch master
in repository guix.

commit 89b704a456ef1cdef855a6c483832a05e1117f24
Author: Marius Bakke <marius@gnu.org>
AuthorDate: Fri Nov 27 13:56:38 2020 +0100

    services: MySQL: Deprecate 'mysql-service'.
    
    * gnu/services/databases.scm (mysql-service): Define in terms of 
DEFINE-DEPRECATED.
    * gnu/tests/databases.scm (%mysql-os): Adjust accordingly.
    * doc/guix.texi (Database Services): Adjust the MariaDB/MySQL section to
    document MYSQL-SERVICE-TYPE instead of MYSQL-SERVICE.  While at it, document
    the EXTRA-CONTENT field.
---
 doc/guix.texi              | 18 ++++++++++--------
 gnu/services/databases.scm |  8 ++------
 gnu/tests/databases.scm    |  2 +-
 3 files changed, 13 insertions(+), 15 deletions(-)

diff --git a/doc/guix.texi b/doc/guix.texi
index b0126b9..f0c95f5 100644
--- a/doc/guix.texi
+++ b/doc/guix.texi
@@ -19121,16 +19121,14 @@ is the key, and the remaining elements are the values.
 
 @subsubheading MariaDB/MySQL
 
-@deffn {Scheme Procedure} mysql-service [#:config (mysql-configuration)]
-Return a service that runs @command{mysqld}, the MySQL or MariaDB
-database server.
-
-The optional @var{config} argument specifies the configuration for
-@command{mysqld}, which should be a @code{<mysql-configuration>} object.
-@end deffn
+@defvr {Scheme Variable} mysql-service-type
+This is the service type for a MySQL or MariaDB database server.  Its value
+is a @code{mysql-configuration} object that specifies which package to use,
+as well as various settings for the @command{mysqld} daemon.
+@end defvr
 
 @deftp {Data Type} mysql-configuration
-Data type representing the configuration of @var{mysql-service}.
+Data type representing the configuration of @var{mysql-service-type}.
 
 @table @asis
 @item @code{mysql} (default: @var{mariadb})
@@ -19142,6 +19140,10 @@ For MariaDB, the root password is empty.
 
 @item @code{port} (default: @code{3306})
 TCP port on which the database server listens for incoming connections.
+
+@item @code{extra-content} (default: @code{""})
+Additional settings for the @file{my.cnf} configuration file.
+
 @end table
 @end deftp
 
diff --git a/gnu/services/databases.scm b/gnu/services/databases.scm
index d7b4594..bb0a0c2 100644
--- a/gnu/services/databases.scm
+++ b/gnu/services/databases.scm
@@ -568,12 +568,8 @@ FLUSH PRIVILEGES;
                              mysql-shepherd-service)))
    (default-value (mysql-configuration))))
 
-(define* (mysql-service #:key (config (mysql-configuration)))
-  "Return a service that runs @command{mysqld}, the MySQL or MariaDB
-database server.
-
-The optional @var{config} argument specifies the configuration for
-@command{mysqld}, which should be a @code{<mysql-configuration>} object."
+(define-deprecated (mysql-service #:key (config (mysql-configuration)))
+  mysql-service-type
   (service mysql-service-type config))
 
 
diff --git a/gnu/tests/databases.scm b/gnu/tests/databases.scm
index d3045cc..1d7f53e 100644
--- a/gnu/tests/databases.scm
+++ b/gnu/tests/databases.scm
@@ -271,7 +271,7 @@
 
 (define %mysql-os
   (simple-operating-system
-   (mysql-service)))
+   (service mysql-service-type)))
 
 (define* (run-mysql-test)
   "Run tests in %MYSQL-OS."



reply via email to

[Prev in Thread] Current Thread [Next in Thread]