-
Notifications
You must be signed in to change notification settings - Fork 13
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #29 from appwrite/dev
update to appwrite 1.3.0
- Loading branch information
Showing
61 changed files
with
1,832 additions
and
557 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
25 changes: 25 additions & 0 deletions
25
docs/examples/java/databases/create-relationship-attribute.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
import io.appwrite.Client; | ||
import io.appwrite.coroutines.CoroutineCallback; | ||
import io.appwrite.services.Databases; | ||
|
||
Client client = new Client() | ||
.setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint | ||
.setProject("5df5acd0d48c2") // Your project ID | ||
.setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key | ||
|
||
Databases databases = new Databases(client); | ||
|
||
databases.createRelationshipAttribute( | ||
"[DATABASE_ID]", | ||
"[COLLECTION_ID]", | ||
"[RELATED_COLLECTION_ID]", | ||
"oneToOne", | ||
new CoroutineCallback<>((result, error) -> { | ||
if (error != null) { | ||
error.printStackTrace(); | ||
return; | ||
} | ||
|
||
System.out.println(result); | ||
}) | ||
); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
import io.appwrite.Client; | ||
import io.appwrite.coroutines.CoroutineCallback; | ||
import io.appwrite.services.Databases; | ||
|
||
Client client = new Client() | ||
.setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint | ||
.setProject("5df5acd0d48c2") // Your project ID | ||
.setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key | ||
|
||
Databases databases = new Databases(client); | ||
|
||
databases.updateBooleanAttribute( | ||
"[DATABASE_ID]", | ||
"[COLLECTION_ID]", | ||
"", | ||
false, | ||
false | ||
new CoroutineCallback<>((result, error) -> { | ||
if (error != null) { | ||
error.printStackTrace(); | ||
return; | ||
} | ||
|
||
System.out.println(result); | ||
}) | ||
); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
import io.appwrite.Client; | ||
import io.appwrite.coroutines.CoroutineCallback; | ||
import io.appwrite.services.Databases; | ||
|
||
Client client = new Client() | ||
.setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint | ||
.setProject("5df5acd0d48c2") // Your project ID | ||
.setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key | ||
|
||
Databases databases = new Databases(client); | ||
|
||
databases.updateDatetimeAttribute( | ||
"[DATABASE_ID]", | ||
"[COLLECTION_ID]", | ||
"", | ||
false, | ||
"" | ||
new CoroutineCallback<>((result, error) -> { | ||
if (error != null) { | ||
error.printStackTrace(); | ||
return; | ||
} | ||
|
||
System.out.println(result); | ||
}) | ||
); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
import io.appwrite.Client; | ||
import io.appwrite.coroutines.CoroutineCallback; | ||
import io.appwrite.services.Databases; | ||
|
||
Client client = new Client() | ||
.setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint | ||
.setProject("5df5acd0d48c2") // Your project ID | ||
.setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key | ||
|
||
Databases databases = new Databases(client); | ||
|
||
databases.updateEmailAttribute( | ||
"[DATABASE_ID]", | ||
"[COLLECTION_ID]", | ||
"", | ||
false, | ||
"email@example.com" | ||
new CoroutineCallback<>((result, error) -> { | ||
if (error != null) { | ||
error.printStackTrace(); | ||
return; | ||
} | ||
|
||
System.out.println(result); | ||
}) | ||
); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
import io.appwrite.Client; | ||
import io.appwrite.coroutines.CoroutineCallback; | ||
import io.appwrite.services.Databases; | ||
|
||
Client client = new Client() | ||
.setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint | ||
.setProject("5df5acd0d48c2") // Your project ID | ||
.setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key | ||
|
||
Databases databases = new Databases(client); | ||
|
||
databases.updateEnumAttribute( | ||
"[DATABASE_ID]", | ||
"[COLLECTION_ID]", | ||
"", | ||
listOf(), | ||
false, | ||
"[DEFAULT]" | ||
new CoroutineCallback<>((result, error) -> { | ||
if (error != null) { | ||
error.printStackTrace(); | ||
return; | ||
} | ||
|
||
System.out.println(result); | ||
}) | ||
); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
import io.appwrite.Client; | ||
import io.appwrite.coroutines.CoroutineCallback; | ||
import io.appwrite.services.Databases; | ||
|
||
Client client = new Client() | ||
.setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint | ||
.setProject("5df5acd0d48c2") // Your project ID | ||
.setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key | ||
|
||
Databases databases = new Databases(client); | ||
|
||
databases.updateFloatAttribute( | ||
"[DATABASE_ID]", | ||
"[COLLECTION_ID]", | ||
"", | ||
false, | ||
0, | ||
0, | ||
0 | ||
new CoroutineCallback<>((result, error) -> { | ||
if (error != null) { | ||
error.printStackTrace(); | ||
return; | ||
} | ||
|
||
System.out.println(result); | ||
}) | ||
); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
import io.appwrite.Client; | ||
import io.appwrite.coroutines.CoroutineCallback; | ||
import io.appwrite.services.Databases; | ||
|
||
Client client = new Client() | ||
.setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint | ||
.setProject("5df5acd0d48c2") // Your project ID | ||
.setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key | ||
|
||
Databases databases = new Databases(client); | ||
|
||
databases.updateIntegerAttribute( | ||
"[DATABASE_ID]", | ||
"[COLLECTION_ID]", | ||
"", | ||
false, | ||
0, | ||
0, | ||
0 | ||
new CoroutineCallback<>((result, error) -> { | ||
if (error != null) { | ||
error.printStackTrace(); | ||
return; | ||
} | ||
|
||
System.out.println(result); | ||
}) | ||
); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
import io.appwrite.Client; | ||
import io.appwrite.coroutines.CoroutineCallback; | ||
import io.appwrite.services.Databases; | ||
|
||
Client client = new Client() | ||
.setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint | ||
.setProject("5df5acd0d48c2") // Your project ID | ||
.setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key | ||
|
||
Databases databases = new Databases(client); | ||
|
||
databases.updateIpAttribute( | ||
"[DATABASE_ID]", | ||
"[COLLECTION_ID]", | ||
"", | ||
false, | ||
"" | ||
new CoroutineCallback<>((result, error) -> { | ||
if (error != null) { | ||
error.printStackTrace(); | ||
return; | ||
} | ||
|
||
System.out.println(result); | ||
}) | ||
); |
24 changes: 24 additions & 0 deletions
24
docs/examples/java/databases/update-relationship-attribute.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
import io.appwrite.Client; | ||
import io.appwrite.coroutines.CoroutineCallback; | ||
import io.appwrite.services.Databases; | ||
|
||
Client client = new Client() | ||
.setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint | ||
.setProject("5df5acd0d48c2") // Your project ID | ||
.setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key | ||
|
||
Databases databases = new Databases(client); | ||
|
||
databases.updateRelationshipAttribute( | ||
"[DATABASE_ID]", | ||
"[COLLECTION_ID]", | ||
"", | ||
new CoroutineCallback<>((result, error) -> { | ||
if (error != null) { | ||
error.printStackTrace(); | ||
return; | ||
} | ||
|
||
System.out.println(result); | ||
}) | ||
); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
import io.appwrite.Client; | ||
import io.appwrite.coroutines.CoroutineCallback; | ||
import io.appwrite.services.Databases; | ||
|
||
Client client = new Client() | ||
.setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint | ||
.setProject("5df5acd0d48c2") // Your project ID | ||
.setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key | ||
|
||
Databases databases = new Databases(client); | ||
|
||
databases.updateStringAttribute( | ||
"[DATABASE_ID]", | ||
"[COLLECTION_ID]", | ||
"", | ||
false, | ||
"[DEFAULT]" | ||
new CoroutineCallback<>((result, error) -> { | ||
if (error != null) { | ||
error.printStackTrace(); | ||
return; | ||
} | ||
|
||
System.out.println(result); | ||
}) | ||
); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
import io.appwrite.Client; | ||
import io.appwrite.coroutines.CoroutineCallback; | ||
import io.appwrite.services.Databases; | ||
|
||
Client client = new Client() | ||
.setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint | ||
.setProject("5df5acd0d48c2") // Your project ID | ||
.setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key | ||
|
||
Databases databases = new Databases(client); | ||
|
||
databases.updateUrlAttribute( | ||
"[DATABASE_ID]", | ||
"[COLLECTION_ID]", | ||
"", | ||
false, | ||
"https://example.com" | ||
new CoroutineCallback<>((result, error) -> { | ||
if (error != null) { | ||
error.printStackTrace(); | ||
return; | ||
} | ||
|
||
System.out.println(result); | ||
}) | ||
); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.