Here we provide the specifications, complete descriptions, and comprehensive usage examples for base commands. For a list of commands, type base --help.

import


Import data files or external meta data files into Base project.

Synopsis


usage: base import project [-d <datafiles-dirpath>] [-e <datafile-extension>] [-c <path-parsing-rule>] [-m] [-p <external-filepath>] [-a <additional-key-value>]

positional arguments:
  project              your project name to import.

Description


This command provide you the way to import meta data related with data file paths and defined in external files such as .xlsx, .csv.

You have to select import mode as data files or external files.

If you want to import data files, you have to specify -d, -c and -e options (or prompt ask you interactively).

And then, Base will take below actions.

  1. Calculate the file hash.
  2. Parse the file path with parsing-rule.
  3. Create meta data records with the file hash and parsed path data.
  4. Add that records into project database table.
{
	"FileHash": String,
	"MetaKey1": ...,
	...
}

If you want to import external files, you have to specify -m and -p options.