Database
Create a database with No Code. You automatically will get access to the data in your collection over fully managed and secure https endpoints
Last updated
Was this helpful?
Create a database with No Code. You automatically will get access to the data in your collection over fully managed and secure https endpoints
Last updated
Was this helpful?
CodeMash Database service provides many operations for database management like CRUD operations, schema builder, and data validation.
When you enable a database service in your we create a new MongoDb database for you. When that is done you are able to create collections using our provided tools in the dashboard. After you create a collection you can start adding records through the dashboard or calling to API endpoints.
Features included in database service:
Collections - just like any database collection.
Taxonomies - special kind of collections used mostly for basic select type data.
Imports - importing records to collections.
Exports - exporting records from collections.
Backups - dumping and restoring collections.
If you decide to use one of our provided SDK, the following code shows how to initialize database service.
Here Person
is a class which extends the interface IEntity
. The example below shows a class extendingEntity
class which extendsIEntity
interface. The attributeCollectionName
is a helper for a client. It takes one parameter - the name of your collection in CodeMash.
Here UniqueName
is an attribute that is used to set the unique name of a field (the name that is used inside a database). This name can be found in your collection, field details. If this attribute is not used, then your field will be serialized and deserialized as a lowercase property name.
The following links explore the usage of database service:
The following are examples of database using different languages and frameworks.