Make YottaDB Just Work™ out of the box for users of all languages
Final Release Note
Description
For MUMPS users, the ydb
script, and before that the gtm
script, makes it possible to install YottaDB and just run ydb
to get an interactive MUMPS prompt with a database configured and a place to put routines. The ydb_env_set
(and companion ydb_env_unset
) make it possible to install YottaDB, run it to set up the default environment, then compile a C program against YottaDB and run it. But it would be ideal to eliminate that step, especially as YottaDB starts to be used by programmers who use Go, Python, Java, etc.
This enhancement aims to make YottaDB as easy to use as falling off a log. It builds on [#365 (closed)] and [#366]. Also with this enhancement, the $ydb_dist/gdedefaults
needs to specify AUTODB and AUTOJNL in the region template.
Draft Release Note
If the ydb_gbldir
environment variable is not set, YottaDB sets a default value of $ydb_dir/$ydb_rel/g/yottadb.gld
where $ydb_rel
is the third and fourth pieces of $zversion separated by an underscore (e.g., r1.22_x86_64
). If the ydb_dir
environment variable is not set, YottaDB sets a default of $HOME/.yottadb
, executing the equivalent of mkdir -p $ydb_dist/$ydb_rel/{g,o/utf8,r}
. If $ydb_routines
is not set, YottaDB sets a default of $ydb_dir/$ydb_rel/o/utf8($ydb_dir/$ydb_rel/r $ydb_dir/r) $ydb_dist/libydbutil.so
if the environment variable ydb_chset
is a case-insensitive "UTF-8"
and $ydb_dir/$ydb_rel/o($ydb_dir/$ydb_rel/r $ydb_dir/r) $ydb_dist/libydbutil.so
otherwise (note that $ydb_dist
if explicitly set and not defaulted must point to the utf8
subdirectory of the directory where YottaDB is installed). If the global directory does not exist, YottaDB automatically creates it by invoking the equivalent of:
$ydb_dist/mumps -run GDE <<EOF
@$ydb_dist/gdedefaults
exit
The command runs in a separate process. Also, AUTODB and AUTOJNL are region template settings in $ydb_dist/gdedefaults
. [#367 (closed)]