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]:=
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"|>}]
Create a new databin by copying the original.
In[2]:=
copy = CopyDatabin[original]
Add data to the copy.
In[3]:=
DatabinAdd[copy, <|"name" -> "Ralph Waldo",
"email" -> "ralphw@example.com"|>]
DatabinAdd[copy, <|"name" -> "George Bernard",
"email" -> "georgeb@example.com"|>]
The newer bin now has more entries than the original.
In[4]:=
{original["EntryCount"], copy["EntryCount"]}
Out[4]=
In[5]:=
Complement[copy["Entries"], original["Entries"]]
Out[5]=