databases

package
v7.2.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 2, 2026 License: BSD-3-Clause Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CreateBigIntAttributeOption

type CreateBigIntAttributeOption func(*CreateBigIntAttributeOptions)

type CreateBigIntAttributeOptions

type CreateBigIntAttributeOptions struct {
	Min     int
	Max     int
	Default int
	Array   bool
	// contains filtered or unexported fields
}

func (CreateBigIntAttributeOptions) New

type CreateBooleanAttributeOption

type CreateBooleanAttributeOption func(*CreateBooleanAttributeOptions)

type CreateBooleanAttributeOptions

type CreateBooleanAttributeOptions struct {
	Default bool
	Array   bool
	// contains filtered or unexported fields
}

func (CreateBooleanAttributeOptions) New

type CreateCollectionOption

type CreateCollectionOption func(*CreateCollectionOptions)

type CreateCollectionOptions

type CreateCollectionOptions struct {
	Permissions      []string
	DocumentSecurity bool
	Enabled          bool
	Attributes       []interface{}
	Indexes          []interface{}
	// contains filtered or unexported fields
}

func (CreateCollectionOptions) New

type CreateDatetimeAttributeOption

type CreateDatetimeAttributeOption func(*CreateDatetimeAttributeOptions)

type CreateDatetimeAttributeOptions

type CreateDatetimeAttributeOptions struct {
	Default string
	Array   bool
	// contains filtered or unexported fields
}

func (CreateDatetimeAttributeOptions) New

type CreateDocumentOption

type CreateDocumentOption func(*CreateDocumentOptions)

type CreateDocumentOptions

type CreateDocumentOptions struct {
	Permissions   []string
	TransactionId string
	// contains filtered or unexported fields
}

func (CreateDocumentOptions) New

type CreateDocumentsOption

type CreateDocumentsOption func(*CreateDocumentsOptions)

type CreateDocumentsOptions

type CreateDocumentsOptions struct {
	TransactionId string
	// contains filtered or unexported fields
}

func (CreateDocumentsOptions) New

type CreateEmailAttributeOption

type CreateEmailAttributeOption func(*CreateEmailAttributeOptions)

type CreateEmailAttributeOptions

type CreateEmailAttributeOptions struct {
	Default string
	Array   bool
	// contains filtered or unexported fields
}

func (CreateEmailAttributeOptions) New

type CreateEnumAttributeOption

type CreateEnumAttributeOption func(*CreateEnumAttributeOptions)

type CreateEnumAttributeOptions

type CreateEnumAttributeOptions struct {
	Default string
	Array   bool
	// contains filtered or unexported fields
}

func (CreateEnumAttributeOptions) New

type CreateFloatAttributeOption

type CreateFloatAttributeOption func(*CreateFloatAttributeOptions)

type CreateFloatAttributeOptions

type CreateFloatAttributeOptions struct {
	Min     float64
	Max     float64
	Default float64
	Array   bool
	// contains filtered or unexported fields
}

func (CreateFloatAttributeOptions) New

type CreateIndexOption

type CreateIndexOption func(*CreateIndexOptions)

type CreateIndexOptions

type CreateIndexOptions struct {
	Orders  []string
	Lengths []int
	// contains filtered or unexported fields
}

func (CreateIndexOptions) New

func (options CreateIndexOptions) New() *CreateIndexOptions

type CreateIntegerAttributeOption

type CreateIntegerAttributeOption func(*CreateIntegerAttributeOptions)

type CreateIntegerAttributeOptions

type CreateIntegerAttributeOptions struct {
	Min     int
	Max     int
	Default int
	Array   bool
	// contains filtered or unexported fields
}

func (CreateIntegerAttributeOptions) New

type CreateIpAttributeOption

type CreateIpAttributeOption func(*CreateIpAttributeOptions)

type CreateIpAttributeOptions

type CreateIpAttributeOptions struct {
	Default string
	Array   bool
	// contains filtered or unexported fields
}

func (CreateIpAttributeOptions) New

type CreateLineAttributeOption

type CreateLineAttributeOption func(*CreateLineAttributeOptions)

type CreateLineAttributeOptions

type CreateLineAttributeOptions struct {
	Default [][]interface{}
	// contains filtered or unexported fields
}

func (CreateLineAttributeOptions) New

type CreateLongtextAttributeOption

type CreateLongtextAttributeOption func(*CreateLongtextAttributeOptions)

type CreateLongtextAttributeOptions

type CreateLongtextAttributeOptions struct {
	Default string
	Array   bool
	Encrypt bool
	// contains filtered or unexported fields
}

func (CreateLongtextAttributeOptions) New

type CreateMediumtextAttributeOption

type CreateMediumtextAttributeOption func(*CreateMediumtextAttributeOptions)

type CreateMediumtextAttributeOptions

type CreateMediumtextAttributeOptions struct {
	Default string
	Array   bool
	Encrypt bool
	// contains filtered or unexported fields
}

func (CreateMediumtextAttributeOptions) New

type CreateOperationsOption

type CreateOperationsOption func(*CreateOperationsOptions)

type CreateOperationsOptions

type CreateOperationsOptions struct {
	Operations []interface{}
	// contains filtered or unexported fields
}

func (CreateOperationsOptions) New

type CreateOption

type CreateOption func(*CreateOptions)

type CreateOptions

type CreateOptions struct {
	Enabled bool
	// contains filtered or unexported fields
}

func (CreateOptions) New

func (options CreateOptions) New() *CreateOptions

type CreatePointAttributeOption

type CreatePointAttributeOption func(*CreatePointAttributeOptions)

type CreatePointAttributeOptions

type CreatePointAttributeOptions struct {
	Default []float64
	// contains filtered or unexported fields
}

func (CreatePointAttributeOptions) New

type CreatePolygonAttributeOption

type CreatePolygonAttributeOption func(*CreatePolygonAttributeOptions)

type CreatePolygonAttributeOptions

type CreatePolygonAttributeOptions struct {
	Default [][]interface{}
	// contains filtered or unexported fields
}

func (CreatePolygonAttributeOptions) New

type CreateRelationshipAttributeOption

type CreateRelationshipAttributeOption func(*CreateRelationshipAttributeOptions)

type CreateRelationshipAttributeOptions

type CreateRelationshipAttributeOptions struct {
	TwoWay    bool
	Key       string
	TwoWayKey string
	OnDelete  string
	// contains filtered or unexported fields
}

func (CreateRelationshipAttributeOptions) New

type CreateStringAttributeOption

type CreateStringAttributeOption func(*CreateStringAttributeOptions)

type CreateStringAttributeOptions

type CreateStringAttributeOptions struct {
	Default string
	Array   bool
	Encrypt bool
	// contains filtered or unexported fields
}

func (CreateStringAttributeOptions) New

type CreateTextAttributeOption

type CreateTextAttributeOption func(*CreateTextAttributeOptions)

type CreateTextAttributeOptions

type CreateTextAttributeOptions struct {
	Default string
	Array   bool
	Encrypt bool
	// contains filtered or unexported fields
}

func (CreateTextAttributeOptions) New

type CreateTransactionOption

type CreateTransactionOption func(*CreateTransactionOptions)

type CreateTransactionOptions

type CreateTransactionOptions struct {
	Ttl int
	// contains filtered or unexported fields
}

func (CreateTransactionOptions) New

type CreateUrlAttributeOption

type CreateUrlAttributeOption func(*CreateUrlAttributeOptions)

type CreateUrlAttributeOptions

type CreateUrlAttributeOptions struct {
	Default string
	Array   bool
	// contains filtered or unexported fields
}

func (CreateUrlAttributeOptions) New

type CreateVarcharAttributeOption

type CreateVarcharAttributeOption func(*CreateVarcharAttributeOptions)

type CreateVarcharAttributeOptions

type CreateVarcharAttributeOptions struct {
	Default string
	Array   bool
	Encrypt bool
	// contains filtered or unexported fields
}

func (CreateVarcharAttributeOptions) New

type Databases

type Databases struct {
	// contains filtered or unexported fields
}

Databases service

func New

func New(clt client.Client) *Databases

func (*Databases) Create deprecated

func (srv *Databases) Create(DatabaseId string, Name string, optionalSetters ...CreateOption) (*models.Database, error)

Create create a new Database.

Deprecated: This API has been deprecated since 1.8.0. Please use `TablesDB.create` instead.

func (*Databases) CreateBigIntAttribute deprecated

func (srv *Databases) CreateBigIntAttribute(DatabaseId string, CollectionId string, Key string, Required bool, optionalSetters ...CreateBigIntAttributeOption) (*models.AttributeBigint, error)

CreateBigIntAttribute create a bigint attribute. Optionally, minimum and maximum values can be provided.

Deprecated: This API has been deprecated since 1.8.0. Please use `TablesDB.createBigIntColumn` instead.

func (*Databases) CreateBooleanAttribute deprecated

func (srv *Databases) CreateBooleanAttribute(DatabaseId string, CollectionId string, Key string, Required bool, optionalSetters ...CreateBooleanAttributeOption) (*models.AttributeBoolean, error)

CreateBooleanAttribute create a boolean attribute.

Deprecated: This API has been deprecated since 1.8.0. Please use `TablesDB.createBooleanColumn` instead.

func (*Databases) CreateCollection deprecated

func (srv *Databases) CreateCollection(DatabaseId string, CollectionId string, Name string, optionalSetters ...CreateCollectionOption) (*models.Collection, error)

CreateCollection create a new Collection. Before using this route, you should create a new database resource using either a [server integration](https://appwrite.io/docs/server/databases#databasesCreateCollection) API or directly from your database console.

Deprecated: This API has been deprecated since 1.8.0. Please use `TablesDB.createTable` instead.

func (*Databases) CreateDatetimeAttribute deprecated

func (srv *Databases) CreateDatetimeAttribute(DatabaseId string, CollectionId string, Key string, Required bool, optionalSetters ...CreateDatetimeAttributeOption) (*models.AttributeDatetime, error)

CreateDatetimeAttribute create a date time attribute according to the ISO 8601 standard.

Deprecated: This API has been deprecated since 1.8.0. Please use `TablesDB.createDatetimeColumn` instead.

func (*Databases) CreateDocument deprecated

func (srv *Databases) CreateDocument(DatabaseId string, CollectionId string, DocumentId string, Data interface{}, optionalSetters ...CreateDocumentOption) (*models.Document, error)

CreateDocument create a new Document. Before using this route, you should create a new collection resource using either a [server integration](https://appwrite.io/docs/server/databases#databasesCreateCollection) API or directly from your database console.

Deprecated: This API has been deprecated since 1.8.0. Please use `TablesDB.createRow` instead.

func (*Databases) CreateDocuments deprecated

func (srv *Databases) CreateDocuments(DatabaseId string, CollectionId string, Documents []interface{}, optionalSetters ...CreateDocumentsOption) (*models.DocumentList, error)

CreateDocuments create new Documents. Before using this route, you should create a new collection resource using either a [server integration](https://appwrite.io/docs/server/databases#databasesCreateCollection) API or directly from your database console.

Deprecated: This API has been deprecated since 1.8.0. Please use `TablesDB.createRows` instead.

func (*Databases) CreateEmailAttribute deprecated

func (srv *Databases) CreateEmailAttribute(DatabaseId string, CollectionId string, Key string, Required bool, optionalSetters ...CreateEmailAttributeOption) (*models.AttributeEmail, error)

CreateEmailAttribute create an email attribute.

Deprecated: This API has been deprecated since 1.8.0. Please use `TablesDB.createEmailColumn` instead.

func (*Databases) CreateEnumAttribute deprecated

func (srv *Databases) CreateEnumAttribute(DatabaseId string, CollectionId string, Key string, Elements []string, Required bool, optionalSetters ...CreateEnumAttributeOption) (*models.AttributeEnum, error)

CreateEnumAttribute create an enum attribute. The `elements` param acts as a white-list of accepted values for this attribute.

Deprecated: This API has been deprecated since 1.8.0. Please use `TablesDB.createEnumColumn` instead.

func (*Databases) CreateFloatAttribute deprecated

func (srv *Databases) CreateFloatAttribute(DatabaseId string, CollectionId string, Key string, Required bool, optionalSetters ...CreateFloatAttributeOption) (*models.AttributeFloat, error)

CreateFloatAttribute create a float attribute. Optionally, minimum and maximum values can be provided.

Deprecated: This API has been deprecated since 1.8.0. Please use `TablesDB.createFloatColumn` instead.

func (*Databases) CreateIndex deprecated

func (srv *Databases) CreateIndex(DatabaseId string, CollectionId string, Key string, Type string, Attributes []string, optionalSetters ...CreateIndexOption) (*models.Index, error)

CreateIndex creates an index on the attributes listed. Your index should include all the attributes you will query in a single request. Attributes can be `key`, `fulltext`, and `unique`.

Deprecated: This API has been deprecated since 1.8.0. Please use `TablesDB.createIndex` instead.

func (*Databases) CreateIntegerAttribute deprecated

func (srv *Databases) CreateIntegerAttribute(DatabaseId string, CollectionId string, Key string, Required bool, optionalSetters ...CreateIntegerAttributeOption) (*models.AttributeInteger, error)

CreateIntegerAttribute create an integer attribute. Optionally, minimum and maximum values can be provided.

Deprecated: This API has been deprecated since 1.8.0. Please use `TablesDB.createIntegerColumn` instead.

func (*Databases) CreateIpAttribute deprecated

func (srv *Databases) CreateIpAttribute(DatabaseId string, CollectionId string, Key string, Required bool, optionalSetters ...CreateIpAttributeOption) (*models.AttributeIp, error)

CreateIpAttribute create IP address attribute.

Deprecated: This API has been deprecated since 1.8.0. Please use `TablesDB.createIpColumn` instead.

func (*Databases) CreateLineAttribute deprecated

func (srv *Databases) CreateLineAttribute(DatabaseId string, CollectionId string, Key string, Required bool, optionalSetters ...CreateLineAttributeOption) (*models.AttributeLine, error)

CreateLineAttribute create a geometric line attribute.

Deprecated: This API has been deprecated since 1.8.0. Please use `TablesDB.createLineColumn` instead.

func (*Databases) CreateLongtextAttribute deprecated

func (srv *Databases) CreateLongtextAttribute(DatabaseId string, CollectionId string, Key string, Required bool, optionalSetters ...CreateLongtextAttributeOption) (*models.AttributeLongtext, error)

CreateLongtextAttribute create a longtext attribute.

Deprecated: This API has been deprecated since 1.8.0. Please use `TablesDB.createLongtextColumn` instead.

func (*Databases) CreateMediumtextAttribute deprecated

func (srv *Databases) CreateMediumtextAttribute(DatabaseId string, CollectionId string, Key string, Required bool, optionalSetters ...CreateMediumtextAttributeOption) (*models.AttributeMediumtext, error)

CreateMediumtextAttribute create a mediumtext attribute.

Deprecated: This API has been deprecated since 1.8.0. Please use `TablesDB.createMediumtextColumn` instead.

func (*Databases) CreateOperations deprecated

func (srv *Databases) CreateOperations(TransactionId string, optionalSetters ...CreateOperationsOption) (*models.Transaction, error)

CreateOperations create multiple operations in a single transaction.

Deprecated: This API has been deprecated since 1.8.0. Please use `TablesDB.createOperations` instead.

func (*Databases) CreatePointAttribute deprecated

func (srv *Databases) CreatePointAttribute(DatabaseId string, CollectionId string, Key string, Required bool, optionalSetters ...CreatePointAttributeOption) (*models.AttributePoint, error)

CreatePointAttribute create a geometric point attribute.

Deprecated: This API has been deprecated since 1.8.0. Please use `TablesDB.createPointColumn` instead.

func (*Databases) CreatePolygonAttribute deprecated

func (srv *Databases) CreatePolygonAttribute(DatabaseId string, CollectionId string, Key string, Required bool, optionalSetters ...CreatePolygonAttributeOption) (*models.AttributePolygon, error)

CreatePolygonAttribute create a geometric polygon attribute.

Deprecated: This API has been deprecated since 1.8.0. Please use `TablesDB.createPolygonColumn` instead.

func (*Databases) CreateRelationshipAttribute deprecated

func (srv *Databases) CreateRelationshipAttribute(DatabaseId string, CollectionId string, RelatedCollectionId string, Type string, optionalSetters ...CreateRelationshipAttributeOption) (*models.AttributeRelationship, error)

CreateRelationshipAttribute create relationship attribute. [Learn more about relationship attributes](https://appwrite.io/docs/databases-relationships#relationship-attributes).

Deprecated: This API has been deprecated since 1.8.0. Please use `TablesDB.createRelationshipColumn` instead.

func (*Databases) CreateStringAttribute deprecated

func (srv *Databases) CreateStringAttribute(DatabaseId string, CollectionId string, Key string, Size int, Required bool, optionalSetters ...CreateStringAttributeOption) (*models.AttributeString, error)

CreateStringAttribute create a string attribute.

Deprecated: This API has been deprecated since 1.8.0. Please use `TablesDB.createStringColumn` instead.

func (*Databases) CreateTextAttribute deprecated

func (srv *Databases) CreateTextAttribute(DatabaseId string, CollectionId string, Key string, Required bool, optionalSetters ...CreateTextAttributeOption) (*models.AttributeText, error)

CreateTextAttribute create a text attribute.

Deprecated: This API has been deprecated since 1.8.0. Please use `TablesDB.createTextColumn` instead.

func (*Databases) CreateTransaction deprecated

func (srv *Databases) CreateTransaction(optionalSetters ...CreateTransactionOption) (*models.Transaction, error)

CreateTransaction create a new transaction.

Deprecated: This API has been deprecated since 1.8.0. Please use `TablesDB.createTransaction` instead.

func (*Databases) CreateUrlAttribute deprecated

func (srv *Databases) CreateUrlAttribute(DatabaseId string, CollectionId string, Key string, Required bool, optionalSetters ...CreateUrlAttributeOption) (*models.AttributeUrl, error)

CreateUrlAttribute create a URL attribute.

Deprecated: This API has been deprecated since 1.8.0. Please use `TablesDB.createUrlColumn` instead.

func (*Databases) CreateVarcharAttribute deprecated

func (srv *Databases) CreateVarcharAttribute(DatabaseId string, CollectionId string, Key string, Size int, Required bool, optionalSetters ...CreateVarcharAttributeOption) (*models.AttributeVarchar, error)

CreateVarcharAttribute create a varchar attribute.

Deprecated: This API has been deprecated since 1.8.0. Please use `TablesDB.createVarcharColumn` instead.

func (*Databases) DecrementDocumentAttribute deprecated

func (srv *Databases) DecrementDocumentAttribute(DatabaseId string, CollectionId string, DocumentId string, Attribute string, optionalSetters ...DecrementDocumentAttributeOption) (*models.Document, error)

DecrementDocumentAttribute decrement a specific attribute of a document by a given value.

Deprecated: This API has been deprecated since 1.8.0. Please use `TablesDB.decrementRowColumn` instead.

func (*Databases) Delete deprecated

func (srv *Databases) Delete(DatabaseId string) (*interface{}, error)

Delete delete a database by its unique ID. Only API keys with with databases.write scope can delete a database.

Deprecated: This API has been deprecated since 1.8.0. Please use `TablesDB.delete` instead.

func (*Databases) DeleteAttribute deprecated

func (srv *Databases) DeleteAttribute(DatabaseId string, CollectionId string, Key string) (*interface{}, error)

DeleteAttribute deletes an attribute.

Deprecated: This API has been deprecated since 1.8.0. Please use `TablesDB.deleteColumn` instead.

func (*Databases) DeleteCollection deprecated

func (srv *Databases) DeleteCollection(DatabaseId string, CollectionId string) (*interface{}, error)

DeleteCollection delete a collection by its unique ID. Only users with write permissions have access to delete this resource.

Deprecated: This API has been deprecated since 1.8.0. Please use `TablesDB.deleteTable` instead.

func (*Databases) DeleteDocument deprecated

func (srv *Databases) DeleteDocument(DatabaseId string, CollectionId string, DocumentId string, optionalSetters ...DeleteDocumentOption) (*interface{}, error)

DeleteDocument delete a document by its unique ID.

Deprecated: This API has been deprecated since 1.8.0. Please use `TablesDB.deleteRow` instead.

func (*Databases) DeleteDocuments deprecated

func (srv *Databases) DeleteDocuments(DatabaseId string, CollectionId string, optionalSetters ...DeleteDocumentsOption) (*models.DocumentList, error)

DeleteDocuments bulk delete documents using queries, if no queries are passed then all documents are deleted.

Deprecated: This API has been deprecated since 1.8.0. Please use `TablesDB.deleteRows` instead.

func (*Databases) DeleteIndex deprecated

func (srv *Databases) DeleteIndex(DatabaseId string, CollectionId string, Key string) (*interface{}, error)

DeleteIndex delete an index.

Deprecated: This API has been deprecated since 1.8.0. Please use `TablesDB.deleteIndex` instead.

func (*Databases) DeleteTransaction deprecated

func (srv *Databases) DeleteTransaction(TransactionId string) (*interface{}, error)

DeleteTransaction delete a transaction by its unique ID.

Deprecated: This API has been deprecated since 1.8.0. Please use `TablesDB.deleteTransaction` instead.

func (*Databases) Get deprecated

func (srv *Databases) Get(DatabaseId string) (*models.Database, error)

Get get a database by its unique ID. This endpoint response returns a JSON object with the database metadata.

Deprecated: This API has been deprecated since 1.8.0. Please use `TablesDB.get` instead.

func (*Databases) GetAttribute deprecated

func (srv *Databases) GetAttribute(DatabaseId string, CollectionId string, Key string) (models.Model, error)

GetAttribute get attribute by ID.

Deprecated: This API has been deprecated since 1.8.0. Please use `TablesDB.getColumn` instead.

func (*Databases) GetCollection deprecated

func (srv *Databases) GetCollection(DatabaseId string, CollectionId string) (*models.Collection, error)

GetCollection get a collection by its unique ID. This endpoint response returns a JSON object with the collection metadata.

Deprecated: This API has been deprecated since 1.8.0. Please use `TablesDB.getTable` instead.

func (*Databases) GetDocument deprecated

func (srv *Databases) GetDocument(DatabaseId string, CollectionId string, DocumentId string, optionalSetters ...GetDocumentOption) (*models.Document, error)

GetDocument get a document by its unique ID. This endpoint response returns a JSON object with the document data.

Deprecated: This API has been deprecated since 1.8.0. Please use `TablesDB.getRow` instead.

func (*Databases) GetIndex deprecated

func (srv *Databases) GetIndex(DatabaseId string, CollectionId string, Key string) (*models.Index, error)

GetIndex get an index by its unique ID.

Deprecated: This API has been deprecated since 1.8.0. Please use `TablesDB.getIndex` instead.

func (*Databases) GetTransaction deprecated

func (srv *Databases) GetTransaction(TransactionId string) (*models.Transaction, error)

GetTransaction get a transaction by its unique ID.

Deprecated: This API has been deprecated since 1.8.0. Please use `TablesDB.getTransaction` instead.

func (*Databases) IncrementDocumentAttribute deprecated

func (srv *Databases) IncrementDocumentAttribute(DatabaseId string, CollectionId string, DocumentId string, Attribute string, optionalSetters ...IncrementDocumentAttributeOption) (*models.Document, error)

IncrementDocumentAttribute increment a specific attribute of a document by a given value.

Deprecated: This API has been deprecated since 1.8.0. Please use `TablesDB.incrementRowColumn` instead.

func (*Databases) List deprecated

func (srv *Databases) List(optionalSetters ...ListOption) (*models.DatabaseList, error)

List get a list of all databases from the current Appwrite project. You can use the search parameter to filter your results.

Deprecated: This API has been deprecated since 1.8.0. Please use `TablesDB.list` instead.

func (*Databases) ListAttributes deprecated

func (srv *Databases) ListAttributes(DatabaseId string, CollectionId string, optionalSetters ...ListAttributesOption) (*models.AttributeList, error)

ListAttributes list attributes in the collection.

Deprecated: This API has been deprecated since 1.8.0. Please use `TablesDB.listColumns` instead.

func (*Databases) ListCollections deprecated

func (srv *Databases) ListCollections(DatabaseId string, optionalSetters ...ListCollectionsOption) (*models.CollectionList, error)

ListCollections get a list of all collections that belong to the provided databaseId. You can use the search parameter to filter your results.

Deprecated: This API has been deprecated since 1.8.0. Please use `TablesDB.listTables` instead.

func (*Databases) ListDocuments deprecated

func (srv *Databases) ListDocuments(DatabaseId string, CollectionId string, optionalSetters ...ListDocumentsOption) (*models.DocumentList, error)

ListDocuments get a list of all the user's documents in a given collection. You can use the query params to filter your results.

Deprecated: This API has been deprecated since 1.8.0. Please use `TablesDB.listRows` instead.

func (*Databases) ListIndexes deprecated

func (srv *Databases) ListIndexes(DatabaseId string, CollectionId string, optionalSetters ...ListIndexesOption) (*models.IndexList, error)

ListIndexes list indexes in the collection.

Deprecated: This API has been deprecated since 1.8.0. Please use `TablesDB.listIndexes` instead.

func (*Databases) ListTransactions deprecated

func (srv *Databases) ListTransactions(optionalSetters ...ListTransactionsOption) (*models.TransactionList, error)

ListTransactions list transactions across all databases.

Deprecated: This API has been deprecated since 1.8.0. Please use `TablesDB.listTransactions` instead.

func (*Databases) Update deprecated

func (srv *Databases) Update(DatabaseId string, optionalSetters ...UpdateOption) (*models.Database, error)

Update update a database by its unique ID.

Deprecated: This API has been deprecated since 1.8.0. Please use `TablesDB.update` instead.

func (*Databases) UpdateBigIntAttribute deprecated

func (srv *Databases) UpdateBigIntAttribute(DatabaseId string, CollectionId string, Key string, Required bool, Default int, optionalSetters ...UpdateBigIntAttributeOption) (*models.AttributeBigint, error)

UpdateBigIntAttribute update a bigint attribute. Changing the `default` value will not update already existing documents.

Deprecated: This API has been deprecated since 1.8.0. Please use `TablesDB.updateBigIntColumn` instead.

func (*Databases) UpdateBooleanAttribute deprecated

func (srv *Databases) UpdateBooleanAttribute(DatabaseId string, CollectionId string, Key string, Required bool, Default bool, optionalSetters ...UpdateBooleanAttributeOption) (*models.AttributeBoolean, error)

UpdateBooleanAttribute update a boolean attribute. Changing the `default` value will not update already existing documents.

Deprecated: This API has been deprecated since 1.8.0. Please use `TablesDB.updateBooleanColumn` instead.

func (*Databases) UpdateCollection deprecated

func (srv *Databases) UpdateCollection(DatabaseId string, CollectionId string, optionalSetters ...UpdateCollectionOption) (*models.Collection, error)

UpdateCollection update a collection by its unique ID.

Deprecated: This API has been deprecated since 1.8.0. Please use `TablesDB.updateTable` instead.

func (*Databases) UpdateDatetimeAttribute deprecated

func (srv *Databases) UpdateDatetimeAttribute(DatabaseId string, CollectionId string, Key string, Required bool, Default string, optionalSetters ...UpdateDatetimeAttributeOption) (*models.AttributeDatetime, error)

UpdateDatetimeAttribute update a date time attribute. Changing the `default` value will not update already existing documents.

Deprecated: This API has been deprecated since 1.8.0. Please use `TablesDB.updateDatetimeColumn` instead.

func (*Databases) UpdateDocument deprecated

func (srv *Databases) UpdateDocument(DatabaseId string, CollectionId string, DocumentId string, optionalSetters ...UpdateDocumentOption) (*models.Document, error)

UpdateDocument update a document by its unique ID. Using the patch method you can pass only specific fields that will get updated.

Deprecated: This API has been deprecated since 1.8.0. Please use `TablesDB.updateRow` instead.

func (*Databases) UpdateDocuments deprecated

func (srv *Databases) UpdateDocuments(DatabaseId string, CollectionId string, optionalSetters ...UpdateDocumentsOption) (*models.DocumentList, error)

UpdateDocuments update all documents that match your queries, if no queries are submitted then all documents are updated. You can pass only specific fields to be updated.

Deprecated: This API has been deprecated since 1.8.0. Please use `TablesDB.updateRows` instead.

func (*Databases) UpdateEmailAttribute deprecated

func (srv *Databases) UpdateEmailAttribute(DatabaseId string, CollectionId string, Key string, Required bool, Default string, optionalSetters ...UpdateEmailAttributeOption) (*models.AttributeEmail, error)

UpdateEmailAttribute update an email attribute. Changing the `default` value will not update already existing documents.

Deprecated: This API has been deprecated since 1.8.0. Please use `TablesDB.updateEmailColumn` instead.

func (*Databases) UpdateEnumAttribute deprecated

func (srv *Databases) UpdateEnumAttribute(DatabaseId string, CollectionId string, Key string, Elements []string, Required bool, Default string, optionalSetters ...UpdateEnumAttributeOption) (*models.AttributeEnum, error)

UpdateEnumAttribute update an enum attribute. Changing the `default` value will not update already existing documents.

Deprecated: This API has been deprecated since 1.8.0. Please use `TablesDB.updateEnumColumn` instead.

func (*Databases) UpdateFloatAttribute deprecated

func (srv *Databases) UpdateFloatAttribute(DatabaseId string, CollectionId string, Key string, Required bool, Default float64, optionalSetters ...UpdateFloatAttributeOption) (*models.AttributeFloat, error)

UpdateFloatAttribute update a float attribute. Changing the `default` value will not update already existing documents.

Deprecated: This API has been deprecated since 1.8.0. Please use `TablesDB.updateFloatColumn` instead.

func (*Databases) UpdateIntegerAttribute deprecated

func (srv *Databases) UpdateIntegerAttribute(DatabaseId string, CollectionId string, Key string, Required bool, Default int, optionalSetters ...UpdateIntegerAttributeOption) (*models.AttributeInteger, error)

UpdateIntegerAttribute update an integer attribute. Changing the `default` value will not update already existing documents.

Deprecated: This API has been deprecated since 1.8.0. Please use `TablesDB.updateIntegerColumn` instead.

func (*Databases) UpdateIpAttribute deprecated

func (srv *Databases) UpdateIpAttribute(DatabaseId string, CollectionId string, Key string, Required bool, Default string, optionalSetters ...UpdateIpAttributeOption) (*models.AttributeIp, error)

UpdateIpAttribute update an ip attribute. Changing the `default` value will not update already existing documents.

Deprecated: This API has been deprecated since 1.8.0. Please use `TablesDB.updateIpColumn` instead.

func (*Databases) UpdateLineAttribute deprecated

func (srv *Databases) UpdateLineAttribute(DatabaseId string, CollectionId string, Key string, Required bool, optionalSetters ...UpdateLineAttributeOption) (*models.AttributeLine, error)

UpdateLineAttribute update a line attribute. Changing the `default` value will not update already existing documents.

Deprecated: This API has been deprecated since 1.8.0. Please use `TablesDB.updateLineColumn` instead.

func (*Databases) UpdateLongtextAttribute deprecated

func (srv *Databases) UpdateLongtextAttribute(DatabaseId string, CollectionId string, Key string, Required bool, Default string, optionalSetters ...UpdateLongtextAttributeOption) (*models.AttributeLongtext, error)

UpdateLongtextAttribute update a longtext attribute. Changing the `default` value will not update already existing documents.

Deprecated: This API has been deprecated since 1.8.0. Please use `TablesDB.updateLongtextColumn` instead.

func (*Databases) UpdateMediumtextAttribute deprecated

func (srv *Databases) UpdateMediumtextAttribute(DatabaseId string, CollectionId string, Key string, Required bool, Default string, optionalSetters ...UpdateMediumtextAttributeOption) (*models.AttributeMediumtext, error)

UpdateMediumtextAttribute update a mediumtext attribute. Changing the `default` value will not update already existing documents.

Deprecated: This API has been deprecated since 1.8.0. Please use `TablesDB.updateMediumtextColumn` instead.

func (*Databases) UpdatePointAttribute deprecated

func (srv *Databases) UpdatePointAttribute(DatabaseId string, CollectionId string, Key string, Required bool, optionalSetters ...UpdatePointAttributeOption) (*models.AttributePoint, error)

UpdatePointAttribute update a point attribute. Changing the `default` value will not update already existing documents.

Deprecated: This API has been deprecated since 1.8.0. Please use `TablesDB.updatePointColumn` instead.

func (*Databases) UpdatePolygonAttribute deprecated

func (srv *Databases) UpdatePolygonAttribute(DatabaseId string, CollectionId string, Key string, Required bool, optionalSetters ...UpdatePolygonAttributeOption) (*models.AttributePolygon, error)

UpdatePolygonAttribute update a polygon attribute. Changing the `default` value will not update already existing documents.

Deprecated: This API has been deprecated since 1.8.0. Please use `TablesDB.updatePolygonColumn` instead.

func (*Databases) UpdateRelationshipAttribute deprecated

func (srv *Databases) UpdateRelationshipAttribute(DatabaseId string, CollectionId string, Key string, optionalSetters ...UpdateRelationshipAttributeOption) (*models.AttributeRelationship, error)

UpdateRelationshipAttribute update relationship attribute. [Learn more about relationship attributes](https://appwrite.io/docs/databases-relationships#relationship-attributes).

Deprecated: This API has been deprecated since 1.8.0. Please use `TablesDB.updateRelationshipColumn` instead.

func (*Databases) UpdateStringAttribute deprecated

func (srv *Databases) UpdateStringAttribute(DatabaseId string, CollectionId string, Key string, Required bool, Default string, optionalSetters ...UpdateStringAttributeOption) (*models.AttributeString, error)

UpdateStringAttribute update a string attribute. Changing the `default` value will not update already existing documents.

Deprecated: This API has been deprecated since 1.8.0. Please use `TablesDB.updateStringColumn` instead.

func (*Databases) UpdateTextAttribute deprecated

func (srv *Databases) UpdateTextAttribute(DatabaseId string, CollectionId string, Key string, Required bool, Default string, optionalSetters ...UpdateTextAttributeOption) (*models.AttributeText, error)

UpdateTextAttribute update a text attribute. Changing the `default` value will not update already existing documents.

Deprecated: This API has been deprecated since 1.8.0. Please use `TablesDB.updateTextColumn` instead.

func (*Databases) UpdateTransaction deprecated

func (srv *Databases) UpdateTransaction(TransactionId string, optionalSetters ...UpdateTransactionOption) (*models.Transaction, error)

UpdateTransaction update a transaction, to either commit or roll back its operations.

Deprecated: This API has been deprecated since 1.8.0. Please use `TablesDB.updateTransaction` instead.

func (*Databases) UpdateUrlAttribute deprecated

func (srv *Databases) UpdateUrlAttribute(DatabaseId string, CollectionId string, Key string, Required bool, Default string, optionalSetters ...UpdateUrlAttributeOption) (*models.AttributeUrl, error)

UpdateUrlAttribute update an url attribute. Changing the `default` value will not update already existing documents.

Deprecated: This API has been deprecated since 1.8.0. Please use `TablesDB.updateUrlColumn` instead.

func (*Databases) UpdateVarcharAttribute deprecated

func (srv *Databases) UpdateVarcharAttribute(DatabaseId string, CollectionId string, Key string, Required bool, Default string, optionalSetters ...UpdateVarcharAttributeOption) (*models.AttributeVarchar, error)

UpdateVarcharAttribute update a varchar attribute. Changing the `default` value will not update already existing documents.

Deprecated: This API has been deprecated since 1.8.0. Please use `TablesDB.updateVarcharColumn` instead.

func (*Databases) UpsertDocument deprecated

func (srv *Databases) UpsertDocument(DatabaseId string, CollectionId string, DocumentId string, optionalSetters ...UpsertDocumentOption) (*models.Document, error)

UpsertDocument create or update a Document. Before using this route, you should create a new collection resource using either a [server integration](https://appwrite.io/docs/server/databases#databasesCreateCollection) API or directly from your database console.

Deprecated: This API has been deprecated since 1.8.0. Please use `TablesDB.upsertRow` instead.

func (*Databases) UpsertDocuments deprecated

func (srv *Databases) UpsertDocuments(DatabaseId string, CollectionId string, Documents []interface{}, optionalSetters ...UpsertDocumentsOption) (*models.DocumentList, error)

UpsertDocuments create or update Documents. Before using this route, you should create a new collection resource using either a [server integration](https://appwrite.io/docs/server/databases#databasesCreateCollection) API or directly from your database console.

Deprecated: This API has been deprecated since 1.8.0. Please use `TablesDB.upsertRows` instead.

func (*Databases) WithCreateBigIntAttributeArray

func (srv *Databases) WithCreateBigIntAttributeArray(v bool) CreateBigIntAttributeOption

func (*Databases) WithCreateBigIntAttributeDefault

func (srv *Databases) WithCreateBigIntAttributeDefault(v int) CreateBigIntAttributeOption

func (*Databases) WithCreateBigIntAttributeMax

func (srv *Databases) WithCreateBigIntAttributeMax(v int) CreateBigIntAttributeOption

func (*Databases) WithCreateBigIntAttributeMin

func (srv *Databases) WithCreateBigIntAttributeMin(v int) CreateBigIntAttributeOption

func (*Databases) WithCreateBooleanAttributeArray

func (srv *Databases) WithCreateBooleanAttributeArray(v bool) CreateBooleanAttributeOption

func (*Databases) WithCreateBooleanAttributeDefault

func (srv *Databases) WithCreateBooleanAttributeDefault(v bool) CreateBooleanAttributeOption

func (*Databases) WithCreateCollectionAttributes

func (srv *Databases) WithCreateCollectionAttributes(v []interface{}) CreateCollectionOption

func (*Databases) WithCreateCollectionDocumentSecurity

func (srv *Databases) WithCreateCollectionDocumentSecurity(v bool) CreateCollectionOption

func (*Databases) WithCreateCollectionEnabled

func (srv *Databases) WithCreateCollectionEnabled(v bool) CreateCollectionOption

func (*Databases) WithCreateCollectionIndexes

func (srv *Databases) WithCreateCollectionIndexes(v []interface{}) CreateCollectionOption

func (*Databases) WithCreateCollectionPermissions

func (srv *Databases) WithCreateCollectionPermissions(v []string) CreateCollectionOption

func (*Databases) WithCreateDatetimeAttributeArray

func (srv *Databases) WithCreateDatetimeAttributeArray(v bool) CreateDatetimeAttributeOption

func (*Databases) WithCreateDatetimeAttributeDefault

func (srv *Databases) WithCreateDatetimeAttributeDefault(v string) CreateDatetimeAttributeOption

func (*Databases) WithCreateDocumentPermissions

func (srv *Databases) WithCreateDocumentPermissions(v []string) CreateDocumentOption

func (*Databases) WithCreateDocumentTransactionId

func (srv *Databases) WithCreateDocumentTransactionId(v string) CreateDocumentOption

func (*Databases) WithCreateDocumentsTransactionId

func (srv *Databases) WithCreateDocumentsTransactionId(v string) CreateDocumentsOption

func (*Databases) WithCreateEmailAttributeArray

func (srv *Databases) WithCreateEmailAttributeArray(v bool) CreateEmailAttributeOption

func (*Databases) WithCreateEmailAttributeDefault

func (srv *Databases) WithCreateEmailAttributeDefault(v string) CreateEmailAttributeOption

func (*Databases) WithCreateEnabled

func (srv *Databases) WithCreateEnabled(v bool) CreateOption

func (*Databases) WithCreateEnumAttributeArray

func (srv *Databases) WithCreateEnumAttributeArray(v bool) CreateEnumAttributeOption

func (*Databases) WithCreateEnumAttributeDefault

func (srv *Databases) WithCreateEnumAttributeDefault(v string) CreateEnumAttributeOption

func (*Databases) WithCreateFloatAttributeArray

func (srv *Databases) WithCreateFloatAttributeArray(v bool) CreateFloatAttributeOption

func (*Databases) WithCreateFloatAttributeDefault

func (srv *Databases) WithCreateFloatAttributeDefault(v float64) CreateFloatAttributeOption

func (*Databases) WithCreateFloatAttributeMax

func (srv *Databases) WithCreateFloatAttributeMax(v float64) CreateFloatAttributeOption

func (*Databases) WithCreateFloatAttributeMin

func (srv *Databases) WithCreateFloatAttributeMin(v float64) CreateFloatAttributeOption

func (*Databases) WithCreateIndexLengths

func (srv *Databases) WithCreateIndexLengths(v []int) CreateIndexOption

func (*Databases) WithCreateIndexOrders

func (srv *Databases) WithCreateIndexOrders(v []string) CreateIndexOption

func (*Databases) WithCreateIntegerAttributeArray

func (srv *Databases) WithCreateIntegerAttributeArray(v bool) CreateIntegerAttributeOption

func (*Databases) WithCreateIntegerAttributeDefault

func (srv *Databases) WithCreateIntegerAttributeDefault(v int) CreateIntegerAttributeOption

func (*Databases) WithCreateIntegerAttributeMax

func (srv *Databases) WithCreateIntegerAttributeMax(v int) CreateIntegerAttributeOption

func (*Databases) WithCreateIntegerAttributeMin

func (srv *Databases) WithCreateIntegerAttributeMin(v int) CreateIntegerAttributeOption

func (*Databases) WithCreateIpAttributeArray

func (srv *Databases) WithCreateIpAttributeArray(v bool) CreateIpAttributeOption

func (*Databases) WithCreateIpAttributeDefault

func (srv *Databases) WithCreateIpAttributeDefault(v string) CreateIpAttributeOption

func (*Databases) WithCreateLineAttributeDefault

func (srv *Databases) WithCreateLineAttributeDefault(v [][]interface{}) CreateLineAttributeOption

func (*Databases) WithCreateLongtextAttributeArray

func (srv *Databases) WithCreateLongtextAttributeArray(v bool) CreateLongtextAttributeOption

func (*Databases) WithCreateLongtextAttributeDefault

func (srv *Databases) WithCreateLongtextAttributeDefault(v string) CreateLongtextAttributeOption

func (*Databases) WithCreateLongtextAttributeEncrypt

func (srv *Databases) WithCreateLongtextAttributeEncrypt(v bool) CreateLongtextAttributeOption

func (*Databases) WithCreateMediumtextAttributeArray

func (srv *Databases) WithCreateMediumtextAttributeArray(v bool) CreateMediumtextAttributeOption

func (*Databases) WithCreateMediumtextAttributeDefault

func (srv *Databases) WithCreateMediumtextAttributeDefault(v string) CreateMediumtextAttributeOption

func (*Databases) WithCreateMediumtextAttributeEncrypt

func (srv *Databases) WithCreateMediumtextAttributeEncrypt(v bool) CreateMediumtextAttributeOption

func (*Databases) WithCreateOperationsOperations

func (srv *Databases) WithCreateOperationsOperations(v []interface{}) CreateOperationsOption

func (*Databases) WithCreatePointAttributeDefault

func (srv *Databases) WithCreatePointAttributeDefault(v []float64) CreatePointAttributeOption

func (*Databases) WithCreatePolygonAttributeDefault

func (srv *Databases) WithCreatePolygonAttributeDefault(v [][]interface{}) CreatePolygonAttributeOption

func (*Databases) WithCreateRelationshipAttributeKey

func (srv *Databases) WithCreateRelationshipAttributeKey(v string) CreateRelationshipAttributeOption

func (*Databases) WithCreateRelationshipAttributeOnDelete

func (srv *Databases) WithCreateRelationshipAttributeOnDelete(v string) CreateRelationshipAttributeOption

func (*Databases) WithCreateRelationshipAttributeTwoWay

func (srv *Databases) WithCreateRelationshipAttributeTwoWay(v bool) CreateRelationshipAttributeOption

func (*Databases) WithCreateRelationshipAttributeTwoWayKey

func (srv *Databases) WithCreateRelationshipAttributeTwoWayKey(v string) CreateRelationshipAttributeOption

func (*Databases) WithCreateStringAttributeArray

func (srv *Databases) WithCreateStringAttributeArray(v bool) CreateStringAttributeOption

func (*Databases) WithCreateStringAttributeDefault

func (srv *Databases) WithCreateStringAttributeDefault(v string) CreateStringAttributeOption

func (*Databases) WithCreateStringAttributeEncrypt

func (srv *Databases) WithCreateStringAttributeEncrypt(v bool) CreateStringAttributeOption

func (*Databases) WithCreateTextAttributeArray

func (srv *Databases) WithCreateTextAttributeArray(v bool) CreateTextAttributeOption

func (*Databases) WithCreateTextAttributeDefault

func (srv *Databases) WithCreateTextAttributeDefault(v string) CreateTextAttributeOption

func (*Databases) WithCreateTextAttributeEncrypt

func (srv *Databases) WithCreateTextAttributeEncrypt(v bool) CreateTextAttributeOption

func (*Databases) WithCreateTransactionTtl

func (srv *Databases) WithCreateTransactionTtl(v int) CreateTransactionOption

func (*Databases) WithCreateUrlAttributeArray

func (srv *Databases) WithCreateUrlAttributeArray(v bool) CreateUrlAttributeOption

func (*Databases) WithCreateUrlAttributeDefault

func (srv *Databases) WithCreateUrlAttributeDefault(v string) CreateUrlAttributeOption

func (*Databases) WithCreateVarcharAttributeArray

func (srv *Databases) WithCreateVarcharAttributeArray(v bool) CreateVarcharAttributeOption

func (*Databases) WithCreateVarcharAttributeDefault

func (srv *Databases) WithCreateVarcharAttributeDefault(v string) CreateVarcharAttributeOption

func (*Databases) WithCreateVarcharAttributeEncrypt

func (srv *Databases) WithCreateVarcharAttributeEncrypt(v bool) CreateVarcharAttributeOption

func (*Databases) WithDecrementDocumentAttributeMin

func (srv *Databases) WithDecrementDocumentAttributeMin(v float64) DecrementDocumentAttributeOption

func (*Databases) WithDecrementDocumentAttributeTransactionId

func (srv *Databases) WithDecrementDocumentAttributeTransactionId(v string) DecrementDocumentAttributeOption

func (*Databases) WithDecrementDocumentAttributeValue

func (srv *Databases) WithDecrementDocumentAttributeValue(v float64) DecrementDocumentAttributeOption

func (*Databases) WithDeleteDocumentTransactionId

func (srv *Databases) WithDeleteDocumentTransactionId(v string) DeleteDocumentOption

func (*Databases) WithDeleteDocumentsQueries

func (srv *Databases) WithDeleteDocumentsQueries(v []string) DeleteDocumentsOption

func (*Databases) WithDeleteDocumentsTransactionId

func (srv *Databases) WithDeleteDocumentsTransactionId(v string) DeleteDocumentsOption

func (*Databases) WithGetDocumentQueries

func (srv *Databases) WithGetDocumentQueries(v []string) GetDocumentOption

func (*Databases) WithGetDocumentTransactionId

func (srv *Databases) WithGetDocumentTransactionId(v string) GetDocumentOption

func (*Databases) WithIncrementDocumentAttributeMax

func (srv *Databases) WithIncrementDocumentAttributeMax(v float64) IncrementDocumentAttributeOption

func (*Databases) WithIncrementDocumentAttributeTransactionId

func (srv *Databases) WithIncrementDocumentAttributeTransactionId(v string) IncrementDocumentAttributeOption

func (*Databases) WithIncrementDocumentAttributeValue

func (srv *Databases) WithIncrementDocumentAttributeValue(v float64) IncrementDocumentAttributeOption

func (*Databases) WithListAttributesQueries

func (srv *Databases) WithListAttributesQueries(v []string) ListAttributesOption

func (*Databases) WithListAttributesTotal

func (srv *Databases) WithListAttributesTotal(v bool) ListAttributesOption

func (*Databases) WithListCollectionsQueries

func (srv *Databases) WithListCollectionsQueries(v []string) ListCollectionsOption

func (*Databases) WithListCollectionsSearch

func (srv *Databases) WithListCollectionsSearch(v string) ListCollectionsOption

func (*Databases) WithListCollectionsTotal

func (srv *Databases) WithListCollectionsTotal(v bool) ListCollectionsOption

func (*Databases) WithListDocumentsQueries

func (srv *Databases) WithListDocumentsQueries(v []string) ListDocumentsOption

func (*Databases) WithListDocumentsTotal

func (srv *Databases) WithListDocumentsTotal(v bool) ListDocumentsOption

func (*Databases) WithListDocumentsTransactionId

func (srv *Databases) WithListDocumentsTransactionId(v string) ListDocumentsOption

func (*Databases) WithListDocumentsTtl

func (srv *Databases) WithListDocumentsTtl(v int) ListDocumentsOption

func (*Databases) WithListIndexesQueries

func (srv *Databases) WithListIndexesQueries(v []string) ListIndexesOption

func (*Databases) WithListIndexesTotal

func (srv *Databases) WithListIndexesTotal(v bool) ListIndexesOption

func (*Databases) WithListQueries

func (srv *Databases) WithListQueries(v []string) ListOption

func (*Databases) WithListSearch

func (srv *Databases) WithListSearch(v string) ListOption

func (*Databases) WithListTotal

func (srv *Databases) WithListTotal(v bool) ListOption

func (*Databases) WithListTransactionsQueries

func (srv *Databases) WithListTransactionsQueries(v []string) ListTransactionsOption

func (*Databases) WithUpdateBigIntAttributeMax

func (srv *Databases) WithUpdateBigIntAttributeMax(v int) UpdateBigIntAttributeOption

func (*Databases) WithUpdateBigIntAttributeMin

func (srv *Databases) WithUpdateBigIntAttributeMin(v int) UpdateBigIntAttributeOption

func (*Databases) WithUpdateBigIntAttributeNewKey

func (srv *Databases) WithUpdateBigIntAttributeNewKey(v string) UpdateBigIntAttributeOption

func (*Databases) WithUpdateBooleanAttributeNewKey

func (srv *Databases) WithUpdateBooleanAttributeNewKey(v string) UpdateBooleanAttributeOption

func (*Databases) WithUpdateCollectionDocumentSecurity

func (srv *Databases) WithUpdateCollectionDocumentSecurity(v bool) UpdateCollectionOption

func (*Databases) WithUpdateCollectionEnabled

func (srv *Databases) WithUpdateCollectionEnabled(v bool) UpdateCollectionOption

func (*Databases) WithUpdateCollectionName

func (srv *Databases) WithUpdateCollectionName(v string) UpdateCollectionOption

func (*Databases) WithUpdateCollectionPermissions

func (srv *Databases) WithUpdateCollectionPermissions(v []string) UpdateCollectionOption

func (*Databases) WithUpdateCollectionPurge

func (srv *Databases) WithUpdateCollectionPurge(v bool) UpdateCollectionOption

func (*Databases) WithUpdateDatetimeAttributeNewKey

func (srv *Databases) WithUpdateDatetimeAttributeNewKey(v string) UpdateDatetimeAttributeOption

func (*Databases) WithUpdateDocumentData

func (srv *Databases) WithUpdateDocumentData(v interface{}) UpdateDocumentOption

func (*Databases) WithUpdateDocumentPermissions

func (srv *Databases) WithUpdateDocumentPermissions(v []string) UpdateDocumentOption

func (*Databases) WithUpdateDocumentTransactionId

func (srv *Databases) WithUpdateDocumentTransactionId(v string) UpdateDocumentOption

func (*Databases) WithUpdateDocumentsData

func (srv *Databases) WithUpdateDocumentsData(v interface{}) UpdateDocumentsOption

func (*Databases) WithUpdateDocumentsQueries

func (srv *Databases) WithUpdateDocumentsQueries(v []string) UpdateDocumentsOption

func (*Databases) WithUpdateDocumentsTransactionId

func (srv *Databases) WithUpdateDocumentsTransactionId(v string) UpdateDocumentsOption

func (*Databases) WithUpdateEmailAttributeNewKey

func (srv *Databases) WithUpdateEmailAttributeNewKey(v string) UpdateEmailAttributeOption

func (*Databases) WithUpdateEnabled

func (srv *Databases) WithUpdateEnabled(v bool) UpdateOption

func (*Databases) WithUpdateEnumAttributeNewKey

func (srv *Databases) WithUpdateEnumAttributeNewKey(v string) UpdateEnumAttributeOption

func (*Databases) WithUpdateFloatAttributeMax

func (srv *Databases) WithUpdateFloatAttributeMax(v float64) UpdateFloatAttributeOption

func (*Databases) WithUpdateFloatAttributeMin

func (srv *Databases) WithUpdateFloatAttributeMin(v float64) UpdateFloatAttributeOption

func (*Databases) WithUpdateFloatAttributeNewKey

func (srv *Databases) WithUpdateFloatAttributeNewKey(v string) UpdateFloatAttributeOption

func (*Databases) WithUpdateIntegerAttributeMax

func (srv *Databases) WithUpdateIntegerAttributeMax(v int) UpdateIntegerAttributeOption

func (*Databases) WithUpdateIntegerAttributeMin

func (srv *Databases) WithUpdateIntegerAttributeMin(v int) UpdateIntegerAttributeOption

func (*Databases) WithUpdateIntegerAttributeNewKey

func (srv *Databases) WithUpdateIntegerAttributeNewKey(v string) UpdateIntegerAttributeOption

func (*Databases) WithUpdateIpAttributeNewKey

func (srv *Databases) WithUpdateIpAttributeNewKey(v string) UpdateIpAttributeOption

func (*Databases) WithUpdateLineAttributeDefault

func (srv *Databases) WithUpdateLineAttributeDefault(v [][]interface{}) UpdateLineAttributeOption

func (*Databases) WithUpdateLineAttributeNewKey

func (srv *Databases) WithUpdateLineAttributeNewKey(v string) UpdateLineAttributeOption

func (*Databases) WithUpdateLongtextAttributeNewKey

func (srv *Databases) WithUpdateLongtextAttributeNewKey(v string) UpdateLongtextAttributeOption

func (*Databases) WithUpdateMediumtextAttributeNewKey

func (srv *Databases) WithUpdateMediumtextAttributeNewKey(v string) UpdateMediumtextAttributeOption

func (*Databases) WithUpdateName

func (srv *Databases) WithUpdateName(v string) UpdateOption

func (*Databases) WithUpdatePointAttributeDefault

func (srv *Databases) WithUpdatePointAttributeDefault(v []float64) UpdatePointAttributeOption

func (*Databases) WithUpdatePointAttributeNewKey

func (srv *Databases) WithUpdatePointAttributeNewKey(v string) UpdatePointAttributeOption

func (*Databases) WithUpdatePolygonAttributeDefault

func (srv *Databases) WithUpdatePolygonAttributeDefault(v [][]interface{}) UpdatePolygonAttributeOption

func (*Databases) WithUpdatePolygonAttributeNewKey

func (srv *Databases) WithUpdatePolygonAttributeNewKey(v string) UpdatePolygonAttributeOption

func (*Databases) WithUpdateRelationshipAttributeNewKey

func (srv *Databases) WithUpdateRelationshipAttributeNewKey(v string) UpdateRelationshipAttributeOption

func (*Databases) WithUpdateRelationshipAttributeOnDelete

func (srv *Databases) WithUpdateRelationshipAttributeOnDelete(v string) UpdateRelationshipAttributeOption

func (*Databases) WithUpdateStringAttributeNewKey

func (srv *Databases) WithUpdateStringAttributeNewKey(v string) UpdateStringAttributeOption

func (*Databases) WithUpdateStringAttributeSize

func (srv *Databases) WithUpdateStringAttributeSize(v int) UpdateStringAttributeOption

func (*Databases) WithUpdateTextAttributeNewKey

func (srv *Databases) WithUpdateTextAttributeNewKey(v string) UpdateTextAttributeOption

func (*Databases) WithUpdateTransactionCommit

func (srv *Databases) WithUpdateTransactionCommit(v bool) UpdateTransactionOption

func (*Databases) WithUpdateTransactionRollback

func (srv *Databases) WithUpdateTransactionRollback(v bool) UpdateTransactionOption

func (*Databases) WithUpdateUrlAttributeNewKey

func (srv *Databases) WithUpdateUrlAttributeNewKey(v string) UpdateUrlAttributeOption

func (*Databases) WithUpdateVarcharAttributeNewKey

func (srv *Databases) WithUpdateVarcharAttributeNewKey(v string) UpdateVarcharAttributeOption

func (*Databases) WithUpdateVarcharAttributeSize

func (srv *Databases) WithUpdateVarcharAttributeSize(v int) UpdateVarcharAttributeOption

func (*Databases) WithUpsertDocumentData

func (srv *Databases) WithUpsertDocumentData(v interface{}) UpsertDocumentOption

func (*Databases) WithUpsertDocumentPermissions

func (srv *Databases) WithUpsertDocumentPermissions(v []string) UpsertDocumentOption

func (*Databases) WithUpsertDocumentTransactionId

func (srv *Databases) WithUpsertDocumentTransactionId(v string) UpsertDocumentOption

func (*Databases) WithUpsertDocumentsTransactionId

func (srv *Databases) WithUpsertDocumentsTransactionId(v string) UpsertDocumentsOption

type DecrementDocumentAttributeOption

type DecrementDocumentAttributeOption func(*DecrementDocumentAttributeOptions)

type DecrementDocumentAttributeOptions

type DecrementDocumentAttributeOptions struct {
	Value         float64
	Min           float64
	TransactionId string
	// contains filtered or unexported fields
}

func (DecrementDocumentAttributeOptions) New

type DeleteDocumentOption

type DeleteDocumentOption func(*DeleteDocumentOptions)

type DeleteDocumentOptions

type DeleteDocumentOptions struct {
	TransactionId string
	// contains filtered or unexported fields
}

func (DeleteDocumentOptions) New

type DeleteDocumentsOption

type DeleteDocumentsOption func(*DeleteDocumentsOptions)

type DeleteDocumentsOptions

type DeleteDocumentsOptions struct {
	Queries       []string
	TransactionId string
	// contains filtered or unexported fields
}

func (DeleteDocumentsOptions) New

type GetDocumentOption

type GetDocumentOption func(*GetDocumentOptions)

type GetDocumentOptions

type GetDocumentOptions struct {
	Queries       []string
	TransactionId string
	// contains filtered or unexported fields
}

func (GetDocumentOptions) New

func (options GetDocumentOptions) New() *GetDocumentOptions

type IncrementDocumentAttributeOption

type IncrementDocumentAttributeOption func(*IncrementDocumentAttributeOptions)

type IncrementDocumentAttributeOptions

type IncrementDocumentAttributeOptions struct {
	Value         float64
	Max           float64
	TransactionId string
	// contains filtered or unexported fields
}

func (IncrementDocumentAttributeOptions) New

type ListAttributesOption

type ListAttributesOption func(*ListAttributesOptions)

type ListAttributesOptions

type ListAttributesOptions struct {
	Queries []string
	Total   bool
	// contains filtered or unexported fields
}

func (ListAttributesOptions) New

type ListCollectionsOption

type ListCollectionsOption func(*ListCollectionsOptions)

type ListCollectionsOptions

type ListCollectionsOptions struct {
	Queries []string
	Search  string
	Total   bool
	// contains filtered or unexported fields
}

func (ListCollectionsOptions) New

type ListDocumentsOption

type ListDocumentsOption func(*ListDocumentsOptions)

type ListDocumentsOptions

type ListDocumentsOptions struct {
	Queries       []string
	TransactionId string
	Total         bool
	Ttl           int
	// contains filtered or unexported fields
}

func (ListDocumentsOptions) New

type ListIndexesOption

type ListIndexesOption func(*ListIndexesOptions)

type ListIndexesOptions

type ListIndexesOptions struct {
	Queries []string
	Total   bool
	// contains filtered or unexported fields
}

func (ListIndexesOptions) New

func (options ListIndexesOptions) New() *ListIndexesOptions

type ListOption

type ListOption func(*ListOptions)

type ListOptions

type ListOptions struct {
	Queries []string
	Search  string
	Total   bool
	// contains filtered or unexported fields
}

func (ListOptions) New

func (options ListOptions) New() *ListOptions

type ListTransactionsOption

type ListTransactionsOption func(*ListTransactionsOptions)

type ListTransactionsOptions

type ListTransactionsOptions struct {
	Queries []string
	// contains filtered or unexported fields
}

func (ListTransactionsOptions) New

type UpdateBigIntAttributeOption

type UpdateBigIntAttributeOption func(*UpdateBigIntAttributeOptions)

type UpdateBigIntAttributeOptions

type UpdateBigIntAttributeOptions struct {
	Min    int
	Max    int
	NewKey string
	// contains filtered or unexported fields
}

func (UpdateBigIntAttributeOptions) New

type UpdateBooleanAttributeOption

type UpdateBooleanAttributeOption func(*UpdateBooleanAttributeOptions)

type UpdateBooleanAttributeOptions

type UpdateBooleanAttributeOptions struct {
	NewKey string
	// contains filtered or unexported fields
}

func (UpdateBooleanAttributeOptions) New

type UpdateCollectionOption

type UpdateCollectionOption func(*UpdateCollectionOptions)

type UpdateCollectionOptions

type UpdateCollectionOptions struct {
	Name             string
	Permissions      []string
	DocumentSecurity bool
	Enabled          bool
	Purge            bool
	// contains filtered or unexported fields
}

func (UpdateCollectionOptions) New

type UpdateDatetimeAttributeOption

type UpdateDatetimeAttributeOption func(*UpdateDatetimeAttributeOptions)

type UpdateDatetimeAttributeOptions

type UpdateDatetimeAttributeOptions struct {
	NewKey string
	// contains filtered or unexported fields
}

func (UpdateDatetimeAttributeOptions) New

type UpdateDocumentOption

type UpdateDocumentOption func(*UpdateDocumentOptions)

type UpdateDocumentOptions

type UpdateDocumentOptions struct {
	Data          interface{}
	Permissions   []string
	TransactionId string
	// contains filtered or unexported fields
}

func (UpdateDocumentOptions) New

type UpdateDocumentsOption

type UpdateDocumentsOption func(*UpdateDocumentsOptions)

type UpdateDocumentsOptions

type UpdateDocumentsOptions struct {
	Data          interface{}
	Queries       []string
	TransactionId string
	// contains filtered or unexported fields
}

func (UpdateDocumentsOptions) New

type UpdateEmailAttributeOption

type UpdateEmailAttributeOption func(*UpdateEmailAttributeOptions)

type UpdateEmailAttributeOptions

type UpdateEmailAttributeOptions struct {
	NewKey string
	// contains filtered or unexported fields
}

func (UpdateEmailAttributeOptions) New

type UpdateEnumAttributeOption

type UpdateEnumAttributeOption func(*UpdateEnumAttributeOptions)

type UpdateEnumAttributeOptions

type UpdateEnumAttributeOptions struct {
	NewKey string
	// contains filtered or unexported fields
}

func (UpdateEnumAttributeOptions) New

type UpdateFloatAttributeOption

type UpdateFloatAttributeOption func(*UpdateFloatAttributeOptions)

type UpdateFloatAttributeOptions

type UpdateFloatAttributeOptions struct {
	Min    float64
	Max    float64
	NewKey string
	// contains filtered or unexported fields
}

func (UpdateFloatAttributeOptions) New

type UpdateIntegerAttributeOption

type UpdateIntegerAttributeOption func(*UpdateIntegerAttributeOptions)

type UpdateIntegerAttributeOptions

type UpdateIntegerAttributeOptions struct {
	Min    int
	Max    int
	NewKey string
	// contains filtered or unexported fields
}

func (UpdateIntegerAttributeOptions) New

type UpdateIpAttributeOption

type UpdateIpAttributeOption func(*UpdateIpAttributeOptions)

type UpdateIpAttributeOptions

type UpdateIpAttributeOptions struct {
	NewKey string
	// contains filtered or unexported fields
}

func (UpdateIpAttributeOptions) New

type UpdateLineAttributeOption

type UpdateLineAttributeOption func(*UpdateLineAttributeOptions)

type UpdateLineAttributeOptions

type UpdateLineAttributeOptions struct {
	Default [][]interface{}
	NewKey  string
	// contains filtered or unexported fields
}

func (UpdateLineAttributeOptions) New

type UpdateLongtextAttributeOption

type UpdateLongtextAttributeOption func(*UpdateLongtextAttributeOptions)

type UpdateLongtextAttributeOptions

type UpdateLongtextAttributeOptions struct {
	NewKey string
	// contains filtered or unexported fields
}

func (UpdateLongtextAttributeOptions) New

type UpdateMediumtextAttributeOption

type UpdateMediumtextAttributeOption func(*UpdateMediumtextAttributeOptions)

type UpdateMediumtextAttributeOptions

type UpdateMediumtextAttributeOptions struct {
	NewKey string
	// contains filtered or unexported fields
}

func (UpdateMediumtextAttributeOptions) New

type UpdateOption

type UpdateOption func(*UpdateOptions)

type UpdateOptions

type UpdateOptions struct {
	Name    string
	Enabled bool
	// contains filtered or unexported fields
}

func (UpdateOptions) New

func (options UpdateOptions) New() *UpdateOptions

type UpdatePointAttributeOption

type UpdatePointAttributeOption func(*UpdatePointAttributeOptions)

type UpdatePointAttributeOptions

type UpdatePointAttributeOptions struct {
	Default []float64
	NewKey  string
	// contains filtered or unexported fields
}

func (UpdatePointAttributeOptions) New

type UpdatePolygonAttributeOption

type UpdatePolygonAttributeOption func(*UpdatePolygonAttributeOptions)

type UpdatePolygonAttributeOptions

type UpdatePolygonAttributeOptions struct {
	Default [][]interface{}
	NewKey  string
	// contains filtered or unexported fields
}

func (UpdatePolygonAttributeOptions) New

type UpdateRelationshipAttributeOption

type UpdateRelationshipAttributeOption func(*UpdateRelationshipAttributeOptions)

type UpdateRelationshipAttributeOptions

type UpdateRelationshipAttributeOptions struct {
	OnDelete string
	NewKey   string
	// contains filtered or unexported fields
}

func (UpdateRelationshipAttributeOptions) New

type UpdateStringAttributeOption

type UpdateStringAttributeOption func(*UpdateStringAttributeOptions)

type UpdateStringAttributeOptions

type UpdateStringAttributeOptions struct {
	Size   int
	NewKey string
	// contains filtered or unexported fields
}

func (UpdateStringAttributeOptions) New

type UpdateTextAttributeOption

type UpdateTextAttributeOption func(*UpdateTextAttributeOptions)

type UpdateTextAttributeOptions

type UpdateTextAttributeOptions struct {
	NewKey string
	// contains filtered or unexported fields
}

func (UpdateTextAttributeOptions) New

type UpdateTransactionOption

type UpdateTransactionOption func(*UpdateTransactionOptions)

type UpdateTransactionOptions

type UpdateTransactionOptions struct {
	Commit   bool
	Rollback bool
	// contains filtered or unexported fields
}

func (UpdateTransactionOptions) New

type UpdateUrlAttributeOption

type UpdateUrlAttributeOption func(*UpdateUrlAttributeOptions)

type UpdateUrlAttributeOptions

type UpdateUrlAttributeOptions struct {
	NewKey string
	// contains filtered or unexported fields
}

func (UpdateUrlAttributeOptions) New

type UpdateVarcharAttributeOption

type UpdateVarcharAttributeOption func(*UpdateVarcharAttributeOptions)

type UpdateVarcharAttributeOptions

type UpdateVarcharAttributeOptions struct {
	Size   int
	NewKey string
	// contains filtered or unexported fields
}

func (UpdateVarcharAttributeOptions) New

type UpsertDocumentOption

type UpsertDocumentOption func(*UpsertDocumentOptions)

type UpsertDocumentOptions

type UpsertDocumentOptions struct {
	Data          interface{}
	Permissions   []string
	TransactionId string
	// contains filtered or unexported fields
}

func (UpsertDocumentOptions) New

type UpsertDocumentsOption

type UpsertDocumentsOption func(*UpsertDocumentsOptions)

type UpsertDocumentsOptions

type UpsertDocumentsOptions struct {
	TransactionId string
	// contains filtered or unexported fields
}

func (UpsertDocumentsOptions) New

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL