Data Resource - Template Data URI

Undraw My Documents

Data Resource - Template Data URI

About

A template data uri is a data uri that defines one or more resources via template.

Example

Reusing the name of the source in the target

The below target data uri

new_$name@sqlite

will define the target resource

  • located in the sqlite connection
  • and a name that is composed of

Example: if the source table name is time, the target table name would be new_time

Using a part of source name in the target

With a glob pattern, you can reference parts of the source.

Example with the below data selector

D?*@sqlite

and the below target data uri

# 2 for the second glob pattern (ie for the *), 1 being for the first ?
$2@sqlite
  • if the source table name were D_TIME, D_CUSTOMERS,
  • the target table names would be TIME, CUSTOMERS

File system

In a shell such as powershell, the $ character should be quoted.

tabul data copy '*/bootstrap.min.css@cd' '/boot/bootstrap.$1.min.css@cd'

Syntax

template[@connection]

where:

Note on Cross transfer to the file system

Note that if:

the target name is calculated by a concatenation of:




Related HowTo
Undraw My Documents
Database HowTo - How to load JSON documents in a database

This howto will show you how to load json document (files) into your relational database.
Undraw My Documents
How to create a SQL View with a SELECT query

This howto shows you how to create sql views with select query stored in SQL file We are going to use the tpcds query_11.sql to create this view. With the tabul create command, to create view...
Undraw My Documents
How to load and analyze YAML documents in a database?

This howto will show you how to load and analyze yaml document (files) into a relational database. sqlite howto databaserelational database At its core a YAML file is just a JSON file styled in...
Undraw My Documents
Tabul - How to create a table from the definition of another table

This Howto will show you how to copy the data definition of a SQL table from another SQL table
Undraw My Documents
Tabul - How to create a table from the definition of another table

This Howto will show you how to copy the data definition of a SQL table from another SQL table

Task Runner