Man page - slonik_define(7)
Packages contains this manual
Manual
SLONIK DEFINE
NAMESYNOPSIS
DESCRIPTION
EXAMPLE
VERSION INFORMATION
NAME
DEFINE - Defining a named symbol
SYNOPSIS
define [ name ] [ value ]
DESCRIPTION
This defines a named symbol. Symbol names must follow the slonik rules for constructing identifiers, by starting with a letter, followed by letters, numbers, and underscores.
Symbol values may contain spaces and may recursively contain symbol references.
Symbols are referenced by using a ā@ā followed by the symbol name. Note that symbol referencing is suppressed inside string literals.
EXAMPLE
define cluster
movies;
define sakai 1;
define chen 2;
define fqn fully qualified name;
cluster name =
@cluster;
node @sakai admin conninfo =
āservice=sakai-replicationā;
node @chen admin conninfo =
āservice=chen-replicationā;
define setMovies id = 1;
define sakaiMovies @setMovies, origin = @sakai;
create set ( @sakaiMovies, comment = āmoviesā );
set add table(
set @sakaiMovies, id = 1, @fqn =
āpublic.customersā,
comment = āsakai customersā );
set add table( set @sakaiMovies, id = 2, @fqn =
āpublic.tapesā,
comment = āsakai tapesā );
echo āBut @sakaiMovies will display as a string, and
is not expandedā;
VERSION INFORMATION
This command was introduced in Slony-I 1.1