Skip to content

Commit 8e76372

Browse files
authored
Merge pull request #42 from appwrite/dev
Add time between queries
2 parents 162f922 + c52444b commit 8e76372

33 files changed

+1339
-11
lines changed

appwrite.gemspec

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
Gem::Specification.new do |spec|
22

33
spec.name = 'appwrite'
4-
spec.version = '17.0.0'
4+
spec.version = '18.0.0'
55
spec.license = 'BSD-3-Clause'
66
spec.summary = 'Appwrite is an open-source self-hosted backend server that abstract and simplify complex and repetitive development tasks behind a very simple REST API'
77
spec.author = 'Appwrite Team'

docs/examples/account/update-prefs.md

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,5 +10,9 @@ client = Client.new
1010
account = Account.new(client)
1111

1212
result = account.update_prefs(
13-
prefs: {}
13+
prefs: {
14+
"language" => "en",
15+
"timezone" => "UTC",
16+
"darkTheme" => true
17+
}
1418
)

docs/examples/databases/create-document.md

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,12 @@ result = databases.create_document(
1313
database_id: '<DATABASE_ID>',
1414
collection_id: '<COLLECTION_ID>',
1515
document_id: '<DOCUMENT_ID>',
16-
data: {},
16+
data: {
17+
"username" => "walter.obrien",
18+
"email" => "[email protected]",
19+
"fullName" => "Walter O'Brien",
20+
"age" => 30,
21+
"isAdmin" => false
22+
},
1723
permissions: ["read("any")"] # optional
1824
)
Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
require 'appwrite'
2+
3+
include Appwrite
4+
5+
client = Client.new
6+
.set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint
7+
.set_project('<YOUR_PROJECT_ID>') # Your project ID
8+
.set_key('<YOUR_API_KEY>') # Your secret API key
9+
10+
databases = Databases.new(client)
11+
12+
result = databases.create_line_attribute(
13+
database_id: '<DATABASE_ID>',
14+
collection_id: '<COLLECTION_ID>',
15+
key: '',
16+
required: false,
17+
default: [[1,2], [3, 4]] # optional
18+
)
Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
require 'appwrite'
2+
3+
include Appwrite
4+
5+
client = Client.new
6+
.set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint
7+
.set_project('<YOUR_PROJECT_ID>') # Your project ID
8+
.set_key('<YOUR_API_KEY>') # Your secret API key
9+
10+
databases = Databases.new(client)
11+
12+
result = databases.create_point_attribute(
13+
database_id: '<DATABASE_ID>',
14+
collection_id: '<COLLECTION_ID>',
15+
key: '',
16+
required: false,
17+
default: [[1,2], [3, 4]] # optional
18+
)
Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
require 'appwrite'
2+
3+
include Appwrite
4+
5+
client = Client.new
6+
.set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint
7+
.set_project('<YOUR_PROJECT_ID>') # Your project ID
8+
.set_key('<YOUR_API_KEY>') # Your secret API key
9+
10+
databases = Databases.new(client)
11+
12+
result = databases.create_polygon_attribute(
13+
database_id: '<DATABASE_ID>',
14+
collection_id: '<COLLECTION_ID>',
15+
key: '',
16+
required: false,
17+
default: [[1,2], [3, 4]] # optional
18+
)
Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
require 'appwrite'
2+
3+
include Appwrite
4+
5+
client = Client.new
6+
.set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint
7+
.set_project('<YOUR_PROJECT_ID>') # Your project ID
8+
.set_key('<YOUR_API_KEY>') # Your secret API key
9+
10+
databases = Databases.new(client)
11+
12+
result = databases.update_line_attribute(
13+
database_id: '<DATABASE_ID>',
14+
collection_id: '<COLLECTION_ID>',
15+
key: '',
16+
required: false,
17+
default: [[1,2], [3, 4]], # optional
18+
new_key: '' # optional
19+
)
Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
require 'appwrite'
2+
3+
include Appwrite
4+
5+
client = Client.new
6+
.set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint
7+
.set_project('<YOUR_PROJECT_ID>') # Your project ID
8+
.set_key('<YOUR_API_KEY>') # Your secret API key
9+
10+
databases = Databases.new(client)
11+
12+
result = databases.update_point_attribute(
13+
database_id: '<DATABASE_ID>',
14+
collection_id: '<COLLECTION_ID>',
15+
key: '',
16+
required: false,
17+
default: [[1,2], [3, 4]], # optional
18+
new_key: '' # optional
19+
)
Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
require 'appwrite'
2+
3+
include Appwrite
4+
5+
client = Client.new
6+
.set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint
7+
.set_project('<YOUR_PROJECT_ID>') # Your project ID
8+
.set_key('<YOUR_API_KEY>') # Your secret API key
9+
10+
databases = Databases.new(client)
11+
12+
result = databases.update_polygon_attribute(
13+
database_id: '<DATABASE_ID>',
14+
collection_id: '<COLLECTION_ID>',
15+
key: '',
16+
required: false,
17+
default: [[1,2], [3, 4]], # optional
18+
new_key: '' # optional
19+
)
Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
require 'appwrite'
2+
3+
include Appwrite
4+
5+
client = Client.new
6+
.set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint
7+
.set_project('<YOUR_PROJECT_ID>') # Your project ID
8+
.set_key('<YOUR_API_KEY>') # Your secret API key
9+
10+
tables_db = TablesDB.new(client)
11+
12+
result = tables_db.create_line_column(
13+
database_id: '<DATABASE_ID>',
14+
table_id: '<TABLE_ID>',
15+
key: '',
16+
required: false,
17+
default: [[1,2], [3, 4]] # optional
18+
)

0 commit comments

Comments
 (0)