DB write

DB write — writing to a gretl database

Functions

int write_db_data ()

Object Hierarchy


Includes

#include <gretl/libgretl.h>
#include <gretl/dbwrite.h>

Description

Functionality for writing series to a native-format gretl database.

Functions

write_db_data ()

int
write_db_data (const char *fname,
               const int *list,
               gretlopt opt,
               const DATASET *dset);

Writes the listed series from dset to a gretl database. If opt includes OPT_F (force, overwrite), then in case any variables in the database have the same names as some of those in list , replace the ones in the database. Otherwise, in case of replicated variables, set an error message and return E_DB_DUP.

Parameters

fname

name of target database file (e.g. "foo.bin").

 

list

list of series ID numbers.

 

opt

option flag.

 

dset

dataset struct.

 

Returns

0 on success, non-zero code on error.

Types and Values