Wolfram Language

Cloud Storage & Operations

Copy from One Databin to Another

You can now copy an existing databin to create a new one.

Create a bin and populate it.

In[1]:=
Click for copyable input
original = CreateDatabin[<| "Interpretation" -> <|"name" -> "String", "email" -> "EmailAddress"|>|>]; DatabinUpload[original, {<|"name" -> "Jon Doe", "email" -> "jondoe@example.com"|>, <|"name" -> "Jane Doe", "email" -> "janedoe@example.com"|>, <|"name" -> "Bob Sanders", "email" -> "bob@example.com"|>, <|"name" -> "Bradley Ashford", "email" -> "brash@example.com"|>, <|"name" -> "Alexandra Bull", "email" -> "lexi@example.com"|>, <|"name" -> "Woody Codard", "email" -> "wood@example.com"|>}]
Out[1]=

Create a new databin by copying the original.

In[2]:=
Click for copyable input
copy = CopyDatabin[original]
Out[2]=

Add data to the copy.

In[3]:=
Click for copyable input
DatabinAdd[copy, <|"name" -> "Ralph Waldo", "email" -> "ralphw@example.com"|>] DatabinAdd[copy, <|"name" -> "George Bernard", "email" -> "georgeb@example.com"|>]
Out[3]=
Out[3]=

The newer bin now has more entries than the original.

In[4]:=
Click for copyable input
{original["EntryCount"], copy["EntryCount"]}
Out[4]=
In[5]:=
Click for copyable input
Complement[copy["Entries"], original["Entries"]]
Out[5]=

Related Examples

de es fr ja ko pt-br ru zh