This extension helps you to integrate NocoDB database in your app.

Events:

GotAllRows

Triggered when successfully retrieved all rows.

ParameterType
valuestext
rowIdslist
totalRowsnumber
responsetext

GotRowById

Triggered when successfully retrieved row by id.

ParameterType
responsetext

GotColumn

Triggered when successfully retrieved column.

ParameterType
valuestext
totalRowsnumber
responsetext

GotCell

Triggered when successfully retrieved cell.

ParameterType
responsetext
valueany

GotRowCount

Triggered when successfully retrieved rows count.

ParameterType
countnumber

RowCreated

Triggered when successfully create a row.

ParameterType
rowIdnumber

RowUpdated

Triggered when successfully updated row.

ParameterType
responsetext

RowDeleted

Triggered when successfully deleted a row.

ParameterType
responsetext

OnError

Triggered on error.

ParameterType
errorMessagetext
errorFromtext

Methods:

GetAllRows

Function to get all rows of the database. Keep the filterList empty if you don’t want to filter the data based on certain conditions.

ParameterType
filterslist

GetRowById

Function to get a row by id. Keep the column list empty if you don’t want row of any specific column.

ParameterType
rowIdnumber
columnListlist

GetColumn

Function to get a column using column name. Keep the filters list empty if you want to get the column without applying any filter.

ParameterType
columnNametext
filterslist

FilterSortBy

Function to apply SortBy filter that can sort the result based on the ascending or descending order of column names.

ParameterType
columnNameslist

Return Type: text

Ascending

Function to retrieve ascending order of a column name.

ParameterType
columnNametext

Return Type: text

Descending

Function to retrieve descending order of a column name

ParameterType
columnNametext

Return Type: text

FilterSkipRows

Function to apply SkipRows filter that can skip first n number of rows in the data.

ParameterType
numbernumber

Return Type: text

FilterLimitLength

Function to apply LimitLength filter that can limit the number of rows to be retrieved in the data.

ParameterType
numbernumber

Return Type: text

FilterWhere

Function to apply conditional filters. Don’t include space anywhere in the condition string.

ParameterType
conditionstext

Return Type: text

GetCell

Function to get a cell.

ParameterType
rowIdnumber
columnNametext

GetRowCount

Function to get row count. Keep the conditions string empty if you don’t want to retrieve count based on certain conditions. If you are adding any condition don’t include space anywhere in the string.

ParameterType
conditionstext

CreateRow

Function to create row.

ParameterType
columnListlist
valueListlist

UpdateRow

Function to update a row.

ParameterType
rowIdnumber
columnListlist
valueListlist

DeleteRow

Function to delete a row.

ParameterType
rowIdnumber

Properties:

Url

Host url of NocoDB server. Change it only if you are using self hosted server.

TableId

Table id of your NocoDB database.

Token

API Token of your NocoDB database.

Usage

This is how our data structure looks on NocoDB

Now we have to get an APi token from the NocoDB dashboard that we will be adding in the extension in order to integrate the database with our app.

How to get API Token?

Now we have to get the table ID

[
  {
    "Id": 35,
    "Name": "Anshuman",
    "Marks": 100,
    "CreatedAt": "2024-10-05 09:29:28+00:00",
    "UpdatedAt": "2024-10-06 06:29:47+00:00"
  },
  {
    "Id": 79,
    "Name": "Nobita",
    "Marks": 0,
    "CreatedAt": "2024-10-06 06:30:25+00:00",
    "UpdatedAt": "2024-10-06 06:30:33+00:00"
  }
]

[
  {
    "Id": 35,
    "Name": "Anshuman",
    "Marks": 100,
    "CreatedAt": "2024-10-05 09:29:28+00:00",
    "UpdatedAt": "2024-10-06 06:29:47+00:00"
  },
  {
    "Id": 70,
    "Name": "Akshat",
    "Marks": 69,
    "CreatedAt": "2024-10-06 04:27:42+00:00",
    "UpdatedAt": "2024-10-06 06:29:53+00:00"
  },
  {
    "Id": 72,
    "Name": "Chutki",
    "Marks": 50,
    "CreatedAt": "2024-10-06 04:32:31+00:00",
    "UpdatedAt": "2024-10-06 06:30:23+00:00"
  },
  {
    "Id": 79,
    "Name": "Nobita",
    "Marks": 0,
    "CreatedAt": "2024-10-06 06:30:25+00:00",
    "UpdatedAt": "2024-10-06 06:30:33+00:00"
  }
]
Picture of Akshat Developer

Akshat Developer

Hi, I’m Akshat — a passionate app developer and creator of AkshatDeveloper.in. I share practical, easy-to-follow tutorials to help developers of all levels build real-world applications.

My goal is to simplify complex concepts and make learning app development engaging and accessible. Whether you’re just starting out or looking to level up your skills, you’ll find useful insights here.

Scroll to Top