Skip to the page
DataMosaic

Docs · Connecting to data

Sharing the library

Copying library entries to another workspace, shared libraries that update, packages for another Mosaic, and checks that follow their library entry.

The library belongs to one workspace. When the same queries are needed somewhere else, there are three ways to take them there:

WayForUpdates
Copy to another workspaceYour own workspaces, onceNo: the copy is that workspace's own
Shared libraryAny workspace on the same Mosaic, by invitationYes, as a new version the receiver applies
PackageAnother Mosaic: a customer's own server, an air-gapped oneYes, by importing the newer file

#What travels, and what never does

Every library entry is two things: a recipe (the query, the column mapping, the parameters it needs, a list's shape, a variable's type, an environment's variable names) and its values (the connection, the passwords, a list's entries, what a variable holds).

  • A password or any other secret never leaves its workspace. Not in a copy, not in a shared library, not in a package.
  • A shared library and a package carry no connection either: no host, no address, no login. Each workspace fills in its own.
  • An entry installed from a system's own queries never travels. The receiving workspace installs its own from its own system.

#Copy to another workspace

In the library, the arrow beside an entry is Copy to another workspace; environments have the same item in their menu. Pick a workspace you are an admin of.

The copy is that workspace's own from then on. Passwords and other secrets stay here; enter them in the copy.

A copy keeps the connection, because on the same Mosaic it is no secret from somebody who runs both workspaces. A variable is not copied into a workspace that already has one of the same name. The copy says where it came from.

#Shared libraries

The library's Share button opens them, from both ends.

Publishing (an admin, on Pro and above):

  1. New shared library, with a name and what it is for.
  2. Pick its entries. For lists, variables and environments you choose whether the value travels too: Share entries, Share value, Share plain values. A data source always shows "Connection stays here".
  3. Publish v1, with a line on what changed. Nothing reaches anybody until you publish.
  4. Invite by the email of an admin in the other workspace.

Receiving (any plan): the invitation appears at the top of the page. Choose which of your workspaces receives it and press Accept. The entries arrive in the library marked with the library's name. What each still needs is shown in place:

Needs a connection

Open a received data source to fill its connection, either from a system or from another entry of the same kind in your library. Its query and settings belong to the library and cannot be edited there; Detach makes it your own entry, and it stops receiving updates.

When the publisher publishes a new version, the library says so:

POS toolkit v5 is out: 2 changed, 1 new.

Apply update brings in new entries and the changed recipes, and keeps every connection and value you filled in. An entry the library no longer carries stays, as your own. Stop receiving keeps everything it brought, as your own entries.

Handing a workspace over does not affect what it receives: the subscription belongs to the workspace, not to a person.

#Packages for another Mosaic

A published library can be downloaded as a file, under Share → the library → For another Mosaic: Download v3 as a file. It is signed with this installation's key, and the download says which:

Downloaded. Signed by key 3f2a 91c0 7be4 05d1; tell the receiver, so they can check it.

On the other Mosaic, Share → Received here → Import a package. A file changed after it was signed is refused. A newer file of the same library updates its entries in place, keeping the connections filled in there. If the newer file was signed by a different key than the version already imported, the import stops and says so, until the person importing confirms they checked with the publisher.

#A check and its library entry

Adding a library entry to a check copies it, so the check keeps working whatever happens to the library. When the entry has moved on (a query fixed in the library, or a shared library's new version applied), the check's data source says so:

“POS sales by day” in the library differs from this copy. The library entry changed after this copy was last saved.

Show both puts the two side by side. Use the library's takes the entry's query and mapping into the check and keeps the check's own connection. If the check's copy was edited more recently than the library entry, you are asked first, because those edits would be replaced.