Bases de datos, tablas, columnas, índices y filas.
Clase TablesDB: 72 métodos (15 en @owbase/web, 72 en @owbase/node). Las descripciones de los métodos están en inglés. Los ejemplos usan la forma de objeto de los parámetros; cambia los valores entre < y > por los tuyos.
Listar bases de datos
GET /tablesdb · página del método
SDK: solo @owbase/node
Get a list of all databases from the current Owbase project. You can use the search parameter to filter your results.
| Parámetro | Tipo | Obligatorio | Descripción |
|---|---|---|---|
queries |
string[] |
no | Array of query strings generated using the Query class provided by the SDK. Learn more about queries. Maximum of 100 queries are allowed, each 4096 characters long. You may filter on the following columns: name |
search |
string |
no | Search term to filter your list results. Max length: 256 chars. |
total |
boolean |
no | When set to false, the total count returned will be 0 and will not be calculated. |
Acceso: clave de API con el alcance databases.read.
import { Client, TablesDB } from '@owbase/node';
const client = new Client() .setEndpoint('https://cloud.owbase.dev/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setKey('<YOUR_API_KEY>'); // Your secret API key
const tablesDB = new TablesDB(client);
const result = await tablesDB.list({ queries: [], // optional search: '<SEARCH>', // optional total: false, // optional});Crear base de datos
POST /tablesdb · página del método
SDK: solo @owbase/node
Create a new Database.
| Parámetro | Tipo | Obligatorio | Descripción |
|---|---|---|---|
databaseId |
string |
sí | Unique Id. Choose a custom ID or generate a random ID with ID.unique(). Valid chars are a-z, A-Z, 0-9, period, hyphen, and underscore. Can’t start with a special char. Max length is 36 chars. |
name |
string |
sí | Database name. Max length: 128 chars. |
enabled |
boolean |
no | Is the database enabled? When set to ‘disabled’, users cannot access the database but Server SDKs with an API key can still read and write to the database. No data is lost when this is toggled. |
description |
string |
no | Optional description for the database. |
Acceso: clave de API con el alcance databases.write.
import { Client, TablesDB } from '@owbase/node';
const client = new Client() .setEndpoint('https://cloud.owbase.dev/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setKey('<YOUR_API_KEY>'); // Your secret API key
const tablesDB = new TablesDB(client);
const result = await tablesDB.create({ databaseId: '<DATABASE_ID>', name: '<NAME>', enabled: false, // optional description: '<DESCRIPTION>', // optional});listTransactions
Sección titulada «listTransactions»Listar transacciones
GET /tablesdb/transactions · página del método
SDK: @owbase/web y @owbase/node
List transactions across all databases.
| Parámetro | Tipo | Obligatorio | Descripción |
|---|---|---|---|
queries |
string[] |
no | Array of query strings generated using the Query class provided by the SDK. Learn more about queries. |
total |
boolean |
no | When set to false, the total count returned will be 0 and will not be calculated. |
Acceso: clave de API con el alcance documents.read (también acepta rows.read) o sesión del usuario, o incluso sin sesión (vale lo que permitan los permisos del recurso).
import { Client, TablesDB } from '@owbase/web';
const client = new Client() .setEndpoint('https://cloud.owbase.dev/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>'); // Your project ID
const tablesDB = new TablesDB(client);
const result = await tablesDB.listTransactions({ queries: [], // optional total: false, // optional});
console.log(result);import { Client, TablesDB } from '@owbase/node';
const client = new Client() .setEndpoint('https://cloud.owbase.dev/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setKey('<YOUR_API_KEY>'); // Your secret API key
const tablesDB = new TablesDB(client);
const result = await tablesDB.listTransactions({ queries: [], // optional total: false, // optional});createTransaction
Sección titulada «createTransaction»Crear transacción
POST /tablesdb/transactions · página del método
SDK: @owbase/web y @owbase/node
Create a new transaction.
| Parámetro | Tipo | Obligatorio | Descripción |
|---|---|---|---|
ttl |
number |
no | Seconds before the transaction expires. |
Acceso: clave de API con el alcance documents.write (también acepta rows.write) o sesión del usuario, o incluso sin sesión (vale lo que permitan los permisos del recurso).
import { Client, TablesDB } from '@owbase/web';
const client = new Client() .setEndpoint('https://cloud.owbase.dev/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>'); // Your project ID
const tablesDB = new TablesDB(client);
const result = await tablesDB.createTransaction({ ttl: 60, // optional});
console.log(result);import { Client, TablesDB } from '@owbase/node';
const client = new Client() .setEndpoint('https://cloud.owbase.dev/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setKey('<YOUR_API_KEY>'); // Your secret API key
const tablesDB = new TablesDB(client);
const result = await tablesDB.createTransaction({ ttl: 60, // optional});getTransaction
Sección titulada «getTransaction»Obtener transacción
GET /tablesdb/transactions/{transactionId} · página del método
SDK: @owbase/web y @owbase/node
Get a transaction by its unique ID.
| Parámetro | Tipo | Obligatorio | Descripción |
|---|---|---|---|
transactionId |
string |
sí | Transaction ID. |
Acceso: clave de API con el alcance documents.read (también acepta rows.read) o sesión del usuario, o incluso sin sesión (vale lo que permitan los permisos del recurso).
import { Client, TablesDB } from '@owbase/web';
const client = new Client() .setEndpoint('https://cloud.owbase.dev/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>'); // Your project ID
const tablesDB = new TablesDB(client);
const result = await tablesDB.getTransaction({ transactionId: '<TRANSACTION_ID>',});
console.log(result);import { Client, TablesDB } from '@owbase/node';
const client = new Client() .setEndpoint('https://cloud.owbase.dev/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setKey('<YOUR_API_KEY>'); // Your secret API key
const tablesDB = new TablesDB(client);
const result = await tablesDB.getTransaction({ transactionId: '<TRANSACTION_ID>',});updateTransaction
Sección titulada «updateTransaction»Actualizar transacción
PATCH /tablesdb/transactions/{transactionId} · página del método
SDK: @owbase/web y @owbase/node
Update a transaction, to either commit or roll back its operations.
| Parámetro | Tipo | Obligatorio | Descripción |
|---|---|---|---|
transactionId |
string |
sí | Transaction ID. |
commit |
boolean |
no | Commit transaction? |
rollback |
boolean |
no | Rollback transaction? |
Acceso: clave de API con el alcance documents.write (también acepta rows.write) o sesión del usuario, o incluso sin sesión (vale lo que permitan los permisos del recurso).
import { Client, TablesDB } from '@owbase/web';
const client = new Client() .setEndpoint('https://cloud.owbase.dev/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>'); // Your project ID
const tablesDB = new TablesDB(client);
const result = await tablesDB.updateTransaction({ transactionId: '<TRANSACTION_ID>', commit: false, // optional rollback: false, // optional});
console.log(result);import { Client, TablesDB } from '@owbase/node';
const client = new Client() .setEndpoint('https://cloud.owbase.dev/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setKey('<YOUR_API_KEY>'); // Your secret API key
const tablesDB = new TablesDB(client);
const result = await tablesDB.updateTransaction({ transactionId: '<TRANSACTION_ID>', commit: false, // optional rollback: false, // optional});deleteTransaction
Sección titulada «deleteTransaction»Eliminar transacción
DELETE /tablesdb/transactions/{transactionId} · página del método
SDK: @owbase/web y @owbase/node
Delete a transaction by its unique ID.
| Parámetro | Tipo | Obligatorio | Descripción |
|---|---|---|---|
transactionId |
string |
sí | Transaction ID. |
Acceso: clave de API con el alcance documents.write (también acepta rows.write) o sesión del usuario, o incluso sin sesión (vale lo que permitan los permisos del recurso).
import { Client, TablesDB } from '@owbase/web';
const client = new Client() .setEndpoint('https://cloud.owbase.dev/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>'); // Your project ID
const tablesDB = new TablesDB(client);
const result = await tablesDB.deleteTransaction({ transactionId: '<TRANSACTION_ID>',});
console.log(result);import { Client, TablesDB } from '@owbase/node';
const client = new Client() .setEndpoint('https://cloud.owbase.dev/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setKey('<YOUR_API_KEY>'); // Your secret API key
const tablesDB = new TablesDB(client);
const result = await tablesDB.deleteTransaction({ transactionId: '<TRANSACTION_ID>',});createOperations
Sección titulada «createOperations»Crear operaciones
POST /tablesdb/transactions/{transactionId}/operations · página del método
SDK: @owbase/web y @owbase/node
Create multiple operations in a single transaction.
| Parámetro | Tipo | Obligatorio | Descripción |
|---|---|---|---|
transactionId |
string |
sí | Transaction ID. |
operations |
object[] |
no | Array of staged operations. |
Acceso: clave de API con el alcance documents.write (también acepta rows.write) o sesión del usuario, o incluso sin sesión (vale lo que permitan los permisos del recurso).
import { Client, TablesDB } from '@owbase/web';
const client = new Client() .setEndpoint('https://cloud.owbase.dev/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>'); // Your project ID
const tablesDB = new TablesDB(client);
const result = await tablesDB.createOperations({ transactionId: '<TRANSACTION_ID>', operations: [ { action: 'create', databaseId: '<DATABASE_ID>', tableId: '<TABLE_ID>', rowId: '<ROW_ID>', data: { name: "Walter O'Brien", }, }, ], // optional});
console.log(result);import { Client, TablesDB } from '@owbase/node';
const client = new Client() .setEndpoint('https://cloud.owbase.dev/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setKey('<YOUR_API_KEY>'); // Your secret API key
const tablesDB = new TablesDB(client);
const result = await tablesDB.createOperations({ transactionId: '<TRANSACTION_ID>', operations: [ { action: 'create', databaseId: '<DATABASE_ID>', tableId: '<TABLE_ID>', rowId: '<ROW_ID>', data: { name: "Walter O'Brien", }, }, ], // optional});Obtener base de datos
GET /tablesdb/{databaseId} · página del método
SDK: solo @owbase/node
Get a database by its unique ID. This endpoint response returns a JSON object with the database metadata.
| Parámetro | Tipo | Obligatorio | Descripción |
|---|---|---|---|
databaseId |
string |
sí | Database ID. |
Acceso: clave de API con el alcance databases.read.
import { Client, TablesDB } from '@owbase/node';
const client = new Client() .setEndpoint('https://cloud.owbase.dev/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setKey('<YOUR_API_KEY>'); // Your secret API key
const tablesDB = new TablesDB(client);
const result = await tablesDB.get({ databaseId: '<DATABASE_ID>',});Actualizar base de datos
PUT /tablesdb/{databaseId} · página del método
SDK: solo @owbase/node
Update a database by its unique ID.
| Parámetro | Tipo | Obligatorio | Descripción |
|---|---|---|---|
databaseId |
string |
sí | Database ID. |
name |
string |
no | Database name. Max length: 128 chars. |
enabled |
boolean |
no | Is database enabled? When set to ‘disabled’, users cannot access the database but Server SDKs with an API key can still read and write to the database. No data is lost when this is toggled. |
description |
string |
no | Optional description for the database. |
Acceso: clave de API con el alcance databases.write.
import { Client, TablesDB } from '@owbase/node';
const client = new Client() .setEndpoint('https://cloud.owbase.dev/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setKey('<YOUR_API_KEY>'); // Your secret API key
const tablesDB = new TablesDB(client);
const result = await tablesDB.update({ databaseId: '<DATABASE_ID>', name: '<NAME>', // optional enabled: false, // optional description: '<DESCRIPTION>', // optional});Eliminar base de datos
DELETE /tablesdb/{databaseId} · página del método
SDK: solo @owbase/node
Delete a database by its unique ID. Only API keys with with databases.write scope can delete a database.
| Parámetro | Tipo | Obligatorio | Descripción |
|---|---|---|---|
databaseId |
string |
sí | Database ID. |
Acceso: clave de API con el alcance databases.write.
import { Client, TablesDB } from '@owbase/node';
const client = new Client() .setEndpoint('https://cloud.owbase.dev/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setKey('<YOUR_API_KEY>'); // Your secret API key
const tablesDB = new TablesDB(client);
const result = await tablesDB.delete({ databaseId: '<DATABASE_ID>',});listTables
Sección titulada «listTables»Listar tablas
GET /tablesdb/{databaseId}/tables · página del método
SDK: solo @owbase/node
Get a list of all tables that belong to the provided databaseId. You can use the search parameter to filter your results.
| Parámetro | Tipo | Obligatorio | Descripción |
|---|---|---|---|
databaseId |
string |
sí | Database ID. |
queries |
string[] |
no | Array of query strings generated using the Query class provided by the SDK. Learn more about queries. Maximum of 100 queries are allowed, each 4096 characters long. You may filter on the following columns: name, enabled, rowSecurity |
search |
string |
no | Search term to filter your list results. Max length: 256 chars. |
total |
boolean |
no | When set to false, the total count returned will be 0 and will not be calculated. |
Acceso: clave de API con el alcance tables.read (también acepta collections.read).
import { Client, TablesDB } from '@owbase/node';
const client = new Client() .setEndpoint('https://cloud.owbase.dev/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setKey('<YOUR_API_KEY>'); // Your secret API key
const tablesDB = new TablesDB(client);
const result = await tablesDB.listTables({ databaseId: '<DATABASE_ID>', queries: [], // optional search: '<SEARCH>', // optional total: false, // optional});createTable
Sección titulada «createTable»Crear tabla
POST /tablesdb/{databaseId}/tables · página del método
SDK: solo @owbase/node
Create a new Table. Before using this route, you should create a new database resource using either a server integration API or directly from your database console.
| Parámetro | Tipo | Obligatorio | Descripción |
|---|---|---|---|
databaseId |
string |
sí | Database ID. |
tableId |
string |
sí | Unique Id. Choose a custom ID or generate a random ID with ID.unique(). Valid chars are a-z, A-Z, 0-9, period, hyphen, and underscore. Can’t start with a special char. Max length is 36 chars. |
name |
string |
sí | Table name. Max length: 128 chars. |
permissions |
string[] |
no | An array of permissions strings. By default, no user is granted with any permissions. Learn more about permissions. |
rowSecurity |
boolean |
no | Enables configuring permissions for individual rows. A user needs one of row or table level permissions to access a row. Learn more about permissions. |
enabled |
boolean |
no | Is table enabled? When set to ‘disabled’, users cannot access the table but Server SDKs with and API key can still read and write to the table. No data is lost when this is toggled. |
columns |
object[] |
no | Array of column definitions to create. Each column should contain: key (string), type (string: string, varchar, text, mediumtext, longtext, integer, bigint, double, boolean, datetime, point, linestring, polygon, email, url, ip, enum), size (integer, required for string and varchar types), required (boolean, optional), default (mixed, optional), array (boolean, optional), and type-specific options. |
indexes |
object[] |
no | Array of index definitions to create. Each index should contain: key (string), type (string: key, fulltext, unique, spatial, trigram), attributes (array of column keys), orders (array of ASC/DESC, optional), and lengths (array of integers, optional). |
description |
string |
no | Optional description for the table. |
Acceso: clave de API con el alcance tables.write (también acepta collections.write).
import { Client, TablesDB, Permission, Role } from '@owbase/node';
const client = new Client() .setEndpoint('https://cloud.owbase.dev/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setKey('<YOUR_API_KEY>'); // Your secret API key
const tablesDB = new TablesDB(client);
const result = await tablesDB.createTable({ databaseId: '<DATABASE_ID>', tableId: '<TABLE_ID>', name: '<NAME>', permissions: [Permission.read(Role.any())], // optional rowSecurity: false, // optional enabled: false, // optional columns: [], // optional indexes: [], // optional description: '<DESCRIPTION>', // optional});getTable
Sección titulada «getTable»Obtener tabla
GET /tablesdb/{databaseId}/tables/{tableId} · página del método
SDK: solo @owbase/node
Get a table by its unique ID. This endpoint response returns a JSON object with the table metadata.
| Parámetro | Tipo | Obligatorio | Descripción |
|---|---|---|---|
databaseId |
string |
sí | Database ID. |
tableId |
string |
sí | Table ID. |
Acceso: clave de API con el alcance tables.read (también acepta collections.read).
import { Client, TablesDB } from '@owbase/node';
const client = new Client() .setEndpoint('https://cloud.owbase.dev/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setKey('<YOUR_API_KEY>'); // Your secret API key
const tablesDB = new TablesDB(client);
const result = await tablesDB.getTable({ databaseId: '<DATABASE_ID>', tableId: '<TABLE_ID>',});updateTable
Sección titulada «updateTable»Actualizar tabla
PUT /tablesdb/{databaseId}/tables/{tableId} · página del método
SDK: solo @owbase/node
Update a table by its unique ID.
| Parámetro | Tipo | Obligatorio | Descripción |
|---|---|---|---|
databaseId |
string |
sí | Database ID. |
tableId |
string |
sí | Table ID. |
name |
string |
no | Table name. Max length: 128 chars. |
permissions |
string[] |
no | An array of permission strings. By default, the current permissions are inherited. Learn more about permissions. |
rowSecurity |
boolean |
no | Enables configuring permissions for individual rows. A user needs one of row or table-level permissions to access a row. Learn more about permissions. |
enabled |
boolean |
no | Is table enabled? When set to ‘disabled’, users cannot access the table but Server SDKs with and API key can still read and write to the table. No data is lost when this is toggled. |
purge |
boolean |
no | When true, purge all cached list responses for this table as part of the update. Use this to force readers to see fresh data immediately instead of waiting for the cache TTL to expire. |
description |
string |
no | Optional description for the table. |
Acceso: clave de API con el alcance tables.write (también acepta collections.write).
import { Client, TablesDB, Permission, Role } from '@owbase/node';
const client = new Client() .setEndpoint('https://cloud.owbase.dev/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setKey('<YOUR_API_KEY>'); // Your secret API key
const tablesDB = new TablesDB(client);
const result = await tablesDB.updateTable({ databaseId: '<DATABASE_ID>', tableId: '<TABLE_ID>', name: '<NAME>', // optional permissions: [Permission.read(Role.any())], // optional rowSecurity: false, // optional enabled: false, // optional purge: false, // optional description: '<DESCRIPTION>', // optional});deleteTable
Sección titulada «deleteTable»Eliminar tabla
DELETE /tablesdb/{databaseId}/tables/{tableId} · página del método
SDK: solo @owbase/node
Delete a table by its unique ID. Only users with write permissions have access to delete this resource.
| Parámetro | Tipo | Obligatorio | Descripción |
|---|---|---|---|
databaseId |
string |
sí | Database ID. |
tableId |
string |
sí | Table ID. |
Acceso: clave de API con el alcance tables.write (también acepta collections.write).
import { Client, TablesDB } from '@owbase/node';
const client = new Client() .setEndpoint('https://cloud.owbase.dev/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setKey('<YOUR_API_KEY>'); // Your secret API key
const tablesDB = new TablesDB(client);
const result = await tablesDB.deleteTable({ databaseId: '<DATABASE_ID>', tableId: '<TABLE_ID>',});listColumns
Sección titulada «listColumns»Listar columnas
GET /tablesdb/{databaseId}/tables/{tableId}/columns · página del método
SDK: solo @owbase/node
List columns in the table.
| Parámetro | Tipo | Obligatorio | Descripción |
|---|---|---|---|
databaseId |
string |
sí | Database ID. |
tableId |
string |
sí | Table ID. |
queries |
string[] |
no | Array of query strings generated using the Query class provided by the SDK. Learn more about queries. Maximum of 100 queries are allowed, each 4096 characters long. You may filter on the following columns: key, type, size, required, array, status, error |
total |
boolean |
no | When set to false, the total count returned will be 0 and will not be calculated. |
Acceso: clave de API con el alcance tables.read (también acepta collections.read, columns.read, attributes.read).
import { Client, TablesDB } from '@owbase/node';
const client = new Client() .setEndpoint('https://cloud.owbase.dev/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setKey('<YOUR_API_KEY>'); // Your secret API key
const tablesDB = new TablesDB(client);
const result = await tablesDB.listColumns({ databaseId: '<DATABASE_ID>', tableId: '<TABLE_ID>', queries: [], // optional total: false, // optional});createBigIntColumn
Sección titulada «createBigIntColumn»Crear columna bigint
POST /tablesdb/{databaseId}/tables/{tableId}/columns/bigint · página del método
SDK: solo @owbase/node
Create a bigint column. Optionally, minimum and maximum values can be provided.
| Parámetro | Tipo | Obligatorio | Descripción |
|---|---|---|---|
databaseId |
string |
sí | Database ID. |
tableId |
string |
sí | Table ID. |
key |
string |
sí | Column Key. |
required |
boolean |
sí | Is column required? |
min |
number |
no | Minimum value |
max |
number |
no | Maximum value |
xdefault |
number |
no | Default value. Cannot be set when column is required. |
array |
boolean |
no | Is column an array? |
description |
string |
no | Optional description for the column. |
Acceso: clave de API con el alcance tables.write (también acepta collections.write, columns.write, attributes.write).
import { Client, TablesDB } from '@owbase/node';
const client = new Client() .setEndpoint('https://cloud.owbase.dev/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setKey('<YOUR_API_KEY>'); // Your secret API key
const tablesDB = new TablesDB(client);
const result = await tablesDB.createBigIntColumn({ databaseId: '<DATABASE_ID>', tableId: '<TABLE_ID>', key: '<KEY>', required: false, min: 0, // optional max: 1000000, // optional xdefault: 0, // optional array: false, // optional description: '<DESCRIPTION>', // optional});updateBigIntColumn
Sección titulada «updateBigIntColumn»Actualizar columna bigint
PATCH /tablesdb/{databaseId}/tables/{tableId}/columns/bigint/{key} · página del método
SDK: solo @owbase/node
Update a bigint column. Changing the default value will not update already existing rows.
| Parámetro | Tipo | Obligatorio | Descripción |
|---|---|---|---|
databaseId |
string |
sí | Database ID. |
tableId |
string |
sí | Table ID. |
key |
string |
sí | Column Key. |
required |
boolean |
sí | Is column required? |
xdefault |
number |
no | Default value. Cannot be set when column is required. |
min |
number |
no | Minimum value |
max |
number |
no | Maximum value |
newKey |
string |
no | New Column Key. |
description |
string |
no | Optional description for the column. |
Acceso: clave de API con el alcance tables.write (también acepta collections.write, columns.write, attributes.write).
import { Client, TablesDB } from '@owbase/node';
const client = new Client() .setEndpoint('https://cloud.owbase.dev/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setKey('<YOUR_API_KEY>'); // Your secret API key
const tablesDB = new TablesDB(client);
const result = await tablesDB.updateBigIntColumn({ databaseId: '<DATABASE_ID>', tableId: '<TABLE_ID>', key: '<KEY>', required: false, xdefault: 0, min: 0, // optional max: 1000000, // optional newKey: '<NEW_KEY>', // optional description: '<DESCRIPTION>', // optional});createBooleanColumn
Sección titulada «createBooleanColumn»Crear columna booleana
POST /tablesdb/{databaseId}/tables/{tableId}/columns/boolean · página del método
SDK: solo @owbase/node
Create a boolean column.
| Parámetro | Tipo | Obligatorio | Descripción |
|---|---|---|---|
databaseId |
string |
sí | Database ID. |
tableId |
string |
sí | Table ID. You can create a new table using the Database service server integration. |
key |
string |
sí | Column Key. |
required |
boolean |
sí | Is column required? |
xdefault |
boolean |
no | Default value for column when not provided. Cannot be set when column is required. |
array |
boolean |
no | Is column an array? |
description |
string |
no | Optional description for the column. |
Acceso: clave de API con el alcance tables.write (también acepta collections.write, columns.write, attributes.write).
import { Client, TablesDB } from '@owbase/node';
const client = new Client() .setEndpoint('https://cloud.owbase.dev/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setKey('<YOUR_API_KEY>'); // Your secret API key
const tablesDB = new TablesDB(client);
const result = await tablesDB.createBooleanColumn({ databaseId: '<DATABASE_ID>', tableId: '<TABLE_ID>', key: '<KEY>', required: false, xdefault: false, // optional array: false, // optional description: '<DESCRIPTION>', // optional});updateBooleanColumn
Sección titulada «updateBooleanColumn»Actualizar columna booleana
PATCH /tablesdb/{databaseId}/tables/{tableId}/columns/boolean/{key} · página del método
SDK: solo @owbase/node
Update a boolean column. Changing the default value will not update already existing rows.
| Parámetro | Tipo | Obligatorio | Descripción |
|---|---|---|---|
databaseId |
string |
sí | Database ID. |
tableId |
string |
sí | Table ID. You can create a new table using the Database service server integration. |
key |
string |
sí | Column Key. |
required |
boolean |
sí | Is column required? |
xdefault |
boolean |
no | Default value for column when not provided. Cannot be set when column is required. |
newKey |
string |
no | New Column Key. |
description |
string |
no | Optional description for the column. |
Acceso: clave de API con el alcance tables.write (también acepta collections.write, columns.write, attributes.write).
import { Client, TablesDB } from '@owbase/node';
const client = new Client() .setEndpoint('https://cloud.owbase.dev/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setKey('<YOUR_API_KEY>'); // Your secret API key
const tablesDB = new TablesDB(client);
const result = await tablesDB.updateBooleanColumn({ databaseId: '<DATABASE_ID>', tableId: '<TABLE_ID>', key: '<KEY>', required: false, xdefault: false, newKey: '<NEW_KEY>', // optional description: '<DESCRIPTION>', // optional});createDatetimeColumn
Sección titulada «createDatetimeColumn»Crear columna de fecha y hora
POST /tablesdb/{databaseId}/tables/{tableId}/columns/datetime · página del método
SDK: solo @owbase/node
Create a date time column according to the ISO 8601 standard.
| Parámetro | Tipo | Obligatorio | Descripción |
|---|---|---|---|
databaseId |
string |
sí | Database ID. |
tableId |
string |
sí | Table ID. |
key |
string |
sí | Column Key. |
required |
boolean |
sí | Is column required? |
xdefault |
string |
no | Default value for the column in ISO 8601 format. Cannot be set when column is required. |
array |
boolean |
no | Is column an array? |
description |
string |
no | Optional description for the column. |
Acceso: clave de API con el alcance tables.write (también acepta collections.write, columns.write, attributes.write).
import { Client, TablesDB } from '@owbase/node';
const client = new Client() .setEndpoint('https://cloud.owbase.dev/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setKey('<YOUR_API_KEY>'); // Your secret API key
const tablesDB = new TablesDB(client);
const result = await tablesDB.createDatetimeColumn({ databaseId: '<DATABASE_ID>', tableId: '<TABLE_ID>', key: '<KEY>', required: false, xdefault: '2020-10-15T06:38:00.000+00:00', // optional array: false, // optional description: '<DESCRIPTION>', // optional});updateDatetimeColumn
Sección titulada «updateDatetimeColumn»Actualizar columna de fecha y hora
PATCH /tablesdb/{databaseId}/tables/{tableId}/columns/datetime/{key} · página del método
SDK: solo @owbase/node
Update a date time column. Changing the default value will not update already existing rows.
| Parámetro | Tipo | Obligatorio | Descripción |
|---|---|---|---|
databaseId |
string |
sí | Database ID. |
tableId |
string |
sí | Table ID. |
key |
string |
sí | Column Key. |
required |
boolean |
sí | Is column required? |
xdefault |
string |
no | Default value for column when not provided. Cannot be set when column is required. |
newKey |
string |
no | New Column Key. |
description |
string |
no | Optional description for the column. |
Acceso: clave de API con el alcance tables.write (también acepta collections.write, columns.write, attributes.write).
import { Client, TablesDB } from '@owbase/node';
const client = new Client() .setEndpoint('https://cloud.owbase.dev/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setKey('<YOUR_API_KEY>'); // Your secret API key
const tablesDB = new TablesDB(client);
const result = await tablesDB.updateDatetimeColumn({ databaseId: '<DATABASE_ID>', tableId: '<TABLE_ID>', key: '<KEY>', required: false, xdefault: '2020-10-15T06:38:00.000+00:00', newKey: '<NEW_KEY>', // optional description: '<DESCRIPTION>', // optional});createEmailColumn
Sección titulada «createEmailColumn»Crear columna de correo
POST /tablesdb/{databaseId}/tables/{tableId}/columns/email · página del método
SDK: solo @owbase/node
Create an email column.
| Parámetro | Tipo | Obligatorio | Descripción |
|---|---|---|---|
databaseId |
string |
sí | Database ID. |
tableId |
string |
sí | Table ID. |
key |
string |
sí | Column Key. |
required |
boolean |
sí | Is column required? |
xdefault |
string |
no | Default value for column when not provided. Cannot be set when column is required. |
array |
boolean |
no | Is column an array? |
description |
string |
no | Optional description for the column. |
Acceso: clave de API con el alcance tables.write (también acepta collections.write, columns.write, attributes.write).
import { Client, TablesDB } from '@owbase/node';
const client = new Client() .setEndpoint('https://cloud.owbase.dev/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setKey('<YOUR_API_KEY>'); // Your secret API key
const tablesDB = new TablesDB(client);
const result = await tablesDB.createEmailColumn({ databaseId: '<DATABASE_ID>', tableId: '<TABLE_ID>', key: '<KEY>', required: false, array: false, // optional description: '<DESCRIPTION>', // optional});updateEmailColumn
Sección titulada «updateEmailColumn»Actualizar columna de correo
PATCH /tablesdb/{databaseId}/tables/{tableId}/columns/email/{key} · página del método
SDK: solo @owbase/node
Update an email column. Changing the default value will not update already existing rows.
| Parámetro | Tipo | Obligatorio | Descripción |
|---|---|---|---|
databaseId |
string |
sí | Database ID. |
tableId |
string |
sí | Table ID. |
key |
string |
sí | Column Key. |
required |
boolean |
sí | Is column required? |
xdefault |
string |
no | Default value for column when not provided. Cannot be set when column is required. |
newKey |
string |
no | New Column Key. |
description |
string |
no | Optional description for the column. |
Acceso: clave de API con el alcance tables.write (también acepta collections.write, columns.write, attributes.write).
import { Client, TablesDB } from '@owbase/node';
const client = new Client() .setEndpoint('https://cloud.owbase.dev/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setKey('<YOUR_API_KEY>'); // Your secret API key
const tablesDB = new TablesDB(client);
const result = await tablesDB.updateEmailColumn({ databaseId: '<DATABASE_ID>', tableId: '<TABLE_ID>', key: '<KEY>', required: false, newKey: '<NEW_KEY>', // optional description: '<DESCRIPTION>', // optional});createEnumColumn
Sección titulada «createEnumColumn»Crear columna enum
POST /tablesdb/{databaseId}/tables/{tableId}/columns/enum · página del método
SDK: solo @owbase/node
Create an enumeration column. The elements param acts as a white-list of accepted values for this column.
| Parámetro | Tipo | Obligatorio | Descripción |
|---|---|---|---|
databaseId |
string |
sí | Database ID. |
tableId |
string |
sí | Table ID. |
key |
string |
sí | Column Key. |
elements |
string[] |
sí | Array of enum values. |
required |
boolean |
sí | Is column required? |
xdefault |
string |
no | Default value for column when not provided. Cannot be set when column is required. |
array |
boolean |
no | Is column an array? |
description |
string |
no | Optional description for the column. |
Acceso: clave de API con el alcance tables.write (también acepta collections.write, columns.write, attributes.write).
import { Client, TablesDB } from '@owbase/node';
const client = new Client() .setEndpoint('https://cloud.owbase.dev/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setKey('<YOUR_API_KEY>'); // Your secret API key
const tablesDB = new TablesDB(client);
const result = await tablesDB.createEnumColumn({ databaseId: '<DATABASE_ID>', tableId: '<TABLE_ID>', key: '<KEY>', elements: ['active', 'inactive'], required: false, xdefault: 'active', // optional array: false, // optional description: '<DESCRIPTION>', // optional});updateEnumColumn
Sección titulada «updateEnumColumn»Actualizar columna enum
PATCH /tablesdb/{databaseId}/tables/{tableId}/columns/enum/{key} · página del método
SDK: solo @owbase/node
Update an enum column. Changing the default value will not update already existing rows.
| Parámetro | Tipo | Obligatorio | Descripción |
|---|---|---|---|
databaseId |
string |
sí | Database ID. |
tableId |
string |
sí | Table ID. |
key |
string |
sí | Column Key. |
elements |
string[] |
sí | Updated list of enum values. |
required |
boolean |
sí | Is column required? |
xdefault |
string |
no | Default value for column when not provided. Cannot be set when column is required. |
newKey |
string |
no | New Column Key. |
description |
string |
no | Optional description for the column. |
Acceso: clave de API con el alcance tables.write (también acepta collections.write, columns.write, attributes.write).
import { Client, TablesDB } from '@owbase/node';
const client = new Client() .setEndpoint('https://cloud.owbase.dev/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setKey('<YOUR_API_KEY>'); // Your secret API key
const tablesDB = new TablesDB(client);
const result = await tablesDB.updateEnumColumn({ databaseId: '<DATABASE_ID>', tableId: '<TABLE_ID>', key: '<KEY>', elements: ['active', 'inactive'], required: false, xdefault: 'active', newKey: '<NEW_KEY>', // optional description: '<DESCRIPTION>', // optional});createFloatColumn
Sección titulada «createFloatColumn»Crear columna float
POST /tablesdb/{databaseId}/tables/{tableId}/columns/float · página del método
SDK: solo @owbase/node
Create a float column. Optionally, minimum and maximum values can be provided.
| Parámetro | Tipo | Obligatorio | Descripción |
|---|---|---|---|
databaseId |
string |
sí | Database ID. |
tableId |
string |
sí | Table ID. |
key |
string |
sí | Column Key. |
required |
boolean |
sí | Is column required? |
min |
number |
no | Minimum value |
max |
number |
no | Maximum value |
xdefault |
number |
no | Default value. Cannot be set when required. |
array |
boolean |
no | Is column an array? |
description |
string |
no | Optional description for the column. |
Acceso: clave de API con el alcance tables.write (también acepta collections.write, columns.write, attributes.write).
import { Client, TablesDB } from '@owbase/node';
const client = new Client() .setEndpoint('https://cloud.owbase.dev/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setKey('<YOUR_API_KEY>'); // Your secret API key
const tablesDB = new TablesDB(client);
const result = await tablesDB.createFloatColumn({ databaseId: '<DATABASE_ID>', tableId: '<TABLE_ID>', key: '<KEY>', required: false, min: 0, // optional max: 100, // optional xdefault: 10.5, // optional array: false, // optional description: '<DESCRIPTION>', // optional});updateFloatColumn
Sección titulada «updateFloatColumn»Actualizar columna float
PATCH /tablesdb/{databaseId}/tables/{tableId}/columns/float/{key} · página del método
SDK: solo @owbase/node
Update a float column. Changing the default value will not update already existing rows.
| Parámetro | Tipo | Obligatorio | Descripción |
|---|---|---|---|
databaseId |
string |
sí | Database ID. |
tableId |
string |
sí | Table ID. |
key |
string |
sí | Column Key. |
required |
boolean |
sí | Is column required? |
xdefault |
number |
no | Default value. Cannot be set when required. |
min |
number |
no | Minimum value |
max |
number |
no | Maximum value |
newKey |
string |
no | New Column Key. |
description |
string |
no | Optional description for the column. |
Acceso: clave de API con el alcance tables.write (también acepta collections.write, columns.write, attributes.write).
import { Client, TablesDB } from '@owbase/node';
const client = new Client() .setEndpoint('https://cloud.owbase.dev/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setKey('<YOUR_API_KEY>'); // Your secret API key
const tablesDB = new TablesDB(client);
const result = await tablesDB.updateFloatColumn({ databaseId: '<DATABASE_ID>', tableId: '<TABLE_ID>', key: '<KEY>', required: false, xdefault: 10.5, min: 0, // optional max: 100, // optional newKey: '<NEW_KEY>', // optional description: '<DESCRIPTION>', // optional});createIntegerColumn
Sección titulada «createIntegerColumn»Crear columna entera
POST /tablesdb/{databaseId}/tables/{tableId}/columns/integer · página del método
SDK: solo @owbase/node
Create an integer column. Optionally, minimum and maximum values can be provided.
| Parámetro | Tipo | Obligatorio | Descripción |
|---|---|---|---|
databaseId |
string |
sí | Database ID. |
tableId |
string |
sí | Table ID. |
key |
string |
sí | Column Key. |
required |
boolean |
sí | Is column required? |
min |
number |
no | Minimum value |
max |
number |
no | Maximum value |
xdefault |
number |
no | Default value. Cannot be set when column is required. |
array |
boolean |
no | Is column an array? |
description |
string |
no | Optional description for the column. |
Acceso: clave de API con el alcance tables.write (también acepta collections.write, columns.write, attributes.write).
import { Client, TablesDB } from '@owbase/node';
const client = new Client() .setEndpoint('https://cloud.owbase.dev/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setKey('<YOUR_API_KEY>'); // Your secret API key
const tablesDB = new TablesDB(client);
const result = await tablesDB.createIntegerColumn({ databaseId: '<DATABASE_ID>', tableId: '<TABLE_ID>', key: '<KEY>', required: false, min: 0, // optional max: 100, // optional xdefault: 10, // optional array: false, // optional description: '<DESCRIPTION>', // optional});updateIntegerColumn
Sección titulada «updateIntegerColumn»Actualizar columna entera
PATCH /tablesdb/{databaseId}/tables/{tableId}/columns/integer/{key} · página del método
SDK: solo @owbase/node
Update an integer column. Changing the default value will not update already existing rows.
| Parámetro | Tipo | Obligatorio | Descripción |
|---|---|---|---|
databaseId |
string |
sí | Database ID. |
tableId |
string |
sí | Table ID. |
key |
string |
sí | Column Key. |
required |
boolean |
sí | Is column required? |
xdefault |
number |
no | Default value. Cannot be set when column is required. |
min |
number |
no | Minimum value |
max |
number |
no | Maximum value |
newKey |
string |
no | New Column Key. |
description |
string |
no | Optional description for the column. |
Acceso: clave de API con el alcance tables.write (también acepta collections.write, columns.write, attributes.write).
import { Client, TablesDB } from '@owbase/node';
const client = new Client() .setEndpoint('https://cloud.owbase.dev/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setKey('<YOUR_API_KEY>'); // Your secret API key
const tablesDB = new TablesDB(client);
const result = await tablesDB.updateIntegerColumn({ databaseId: '<DATABASE_ID>', tableId: '<TABLE_ID>', key: '<KEY>', required: false, xdefault: 10, min: 0, // optional max: 100, // optional newKey: '<NEW_KEY>', // optional description: '<DESCRIPTION>', // optional});createIpColumn
Sección titulada «createIpColumn»Crear columna IP
POST /tablesdb/{databaseId}/tables/{tableId}/columns/ip · página del método
SDK: solo @owbase/node
Create IP address column.
| Parámetro | Tipo | Obligatorio | Descripción |
|---|---|---|---|
databaseId |
string |
sí | Database ID. |
tableId |
string |
sí | Table ID. |
key |
string |
sí | Column Key. |
required |
boolean |
sí | Is column required? |
xdefault |
string |
no | Default value. Cannot be set when column is required. |
array |
boolean |
no | Is column an array? |
description |
string |
no | Optional description for the column. |
Acceso: clave de API con el alcance tables.write (también acepta collections.write, columns.write, attributes.write).
import { Client, TablesDB } from '@owbase/node';
const client = new Client() .setEndpoint('https://cloud.owbase.dev/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setKey('<YOUR_API_KEY>'); // Your secret API key
const tablesDB = new TablesDB(client);
const result = await tablesDB.createIpColumn({ databaseId: '<DATABASE_ID>', tableId: '<TABLE_ID>', key: '<KEY>', required: false, xdefault: '192.0.2.0', // optional array: false, // optional description: '<DESCRIPTION>', // optional});updateIpColumn
Sección titulada «updateIpColumn»Actualizar columna IP
PATCH /tablesdb/{databaseId}/tables/{tableId}/columns/ip/{key} · página del método
SDK: solo @owbase/node
Update an ip column. Changing the default value will not update already existing rows.
| Parámetro | Tipo | Obligatorio | Descripción |
|---|---|---|---|
databaseId |
string |
sí | Database ID. |
tableId |
string |
sí | Table ID. |
key |
string |
sí | Column Key. |
required |
boolean |
sí | Is column required? |
xdefault |
string |
no | Default value. Cannot be set when column is required. |
newKey |
string |
no | New Column Key. |
description |
string |
no | Optional description for the column. |
Acceso: clave de API con el alcance tables.write (también acepta collections.write, columns.write, attributes.write).
import { Client, TablesDB } from '@owbase/node';
const client = new Client() .setEndpoint('https://cloud.owbase.dev/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setKey('<YOUR_API_KEY>'); // Your secret API key
const tablesDB = new TablesDB(client);
const result = await tablesDB.updateIpColumn({ databaseId: '<DATABASE_ID>', tableId: '<TABLE_ID>', key: '<KEY>', required: false, xdefault: '192.0.2.0', newKey: '<NEW_KEY>', // optional description: '<DESCRIPTION>', // optional});createLineColumn
Sección titulada «createLineColumn»Crear columna de línea
POST /tablesdb/{databaseId}/tables/{tableId}/columns/line · página del método
SDK: solo @owbase/node
Create a geometric line column.
| Parámetro | Tipo | Obligatorio | Descripción |
|---|---|---|---|
databaseId |
string |
sí | Database ID. |
tableId |
string |
sí | Table ID. You can create a new table using the TablesDB service server integration. |
key |
string |
sí | Column Key. |
required |
boolean |
sí | Is column required? |
xdefault |
number[][] |
no | Default value for column when not provided, two-dimensional array of coordinate pairs, [[longitude, latitude], [longitude, latitude], …], listing the vertices of the line in order. Cannot be set when column is required. |
description |
string |
no | Optional description for the column. |
Acceso: clave de API con el alcance tables.write (también acepta collections.write, columns.write, attributes.write).
import { Client, TablesDB } from '@owbase/node';
const client = new Client() .setEndpoint('https://cloud.owbase.dev/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setKey('<YOUR_API_KEY>'); // Your secret API key
const tablesDB = new TablesDB(client);
const result = await tablesDB.createLineColumn({ databaseId: '<DATABASE_ID>', tableId: '<TABLE_ID>', key: '<KEY>', required: false, xdefault: [ [1, 2], [3, 4], [5, 6], ], // optional description: '<DESCRIPTION>', // optional});updateLineColumn
Sección titulada «updateLineColumn»Actualizar columna de línea
PATCH /tablesdb/{databaseId}/tables/{tableId}/columns/line/{key} · página del método
SDK: solo @owbase/node
Update a line column. Changing the default value will not update already existing rows.
| Parámetro | Tipo | Obligatorio | Descripción |
|---|---|---|---|
databaseId |
string |
sí | Database ID. |
tableId |
string |
sí | Table ID. You can create a new table using the TablesDB service server integration. |
key |
string |
sí | Column Key. |
required |
boolean |
sí | Is column required? |
xdefault |
number[][] |
no | Default value for column when not provided, two-dimensional array of coordinate pairs, [[longitude, latitude], [longitude, latitude], …], listing the vertices of the line in order. Cannot be set when column is required. |
newKey |
string |
no | New Column Key. |
description |
string |
no | Optional description for the column. |
Acceso: clave de API con el alcance tables.write (también acepta collections.write, columns.write, attributes.write).
import { Client, TablesDB } from '@owbase/node';
const client = new Client() .setEndpoint('https://cloud.owbase.dev/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setKey('<YOUR_API_KEY>'); // Your secret API key
const tablesDB = new TablesDB(client);
const result = await tablesDB.updateLineColumn({ databaseId: '<DATABASE_ID>', tableId: '<TABLE_ID>', key: '<KEY>', required: false, xdefault: [ [1, 2], [3, 4], [5, 6], ], // optional newKey: '<NEW_KEY>', // optional description: '<DESCRIPTION>', // optional});createLongtextColumn
Sección titulada «createLongtextColumn»Crear columna longtext
POST /tablesdb/{databaseId}/tables/{tableId}/columns/longtext · página del método
SDK: solo @owbase/node
Create a longtext column.
| Parámetro | Tipo | Obligatorio | Descripción |
|---|---|---|---|
databaseId |
string |
sí | Database ID. |
tableId |
string |
sí | Table ID. You can create a new table using the Database service server integration. |
key |
string |
sí | Column Key. |
required |
boolean |
sí | Is column required? |
xdefault |
string |
no | Default value for column when not provided. Cannot be set when column is required. |
array |
boolean |
no | Is column an array? |
encrypt |
boolean |
no | Toggle encryption for the column. Encryption enhances security by not storing any plain text values in the database. However, encrypted columns cannot be queried. |
description |
string |
no | Optional description for the column. |
Acceso: clave de API con el alcance tables.write (también acepta collections.write, columns.write, attributes.write).
import { Client, TablesDB } from '@owbase/node';
const client = new Client() .setEndpoint('https://cloud.owbase.dev/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setKey('<YOUR_API_KEY>'); // Your secret API key
const tablesDB = new TablesDB(client);
const result = await tablesDB.createLongtextColumn({ databaseId: '<DATABASE_ID>', tableId: '<TABLE_ID>', key: '<KEY>', required: false, xdefault: 'Hello World', // optional array: false, // optional encrypt: false, // optional description: '<DESCRIPTION>', // optional});updateLongtextColumn
Sección titulada «updateLongtextColumn»Actualizar columna longtext
PATCH /tablesdb/{databaseId}/tables/{tableId}/columns/longtext/{key} · página del método
SDK: solo @owbase/node
Update a longtext column. Changing the default value will not update already existing rows.
| Parámetro | Tipo | Obligatorio | Descripción |
|---|---|---|---|
databaseId |
string |
sí | Database ID. |
tableId |
string |
sí | Table ID. You can create a new table using the Database service server integration. |
key |
string |
sí | Column Key. |
required |
boolean |
sí | Is column required? |
xdefault |
string |
no | Default value for column when not provided. Cannot be set when column is required. |
newKey |
string |
no | New Column Key. |
description |
string |
no | Optional description for the column. |
Acceso: clave de API con el alcance tables.write (también acepta collections.write, columns.write, attributes.write).
import { Client, TablesDB } from '@owbase/node';
const client = new Client() .setEndpoint('https://cloud.owbase.dev/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setKey('<YOUR_API_KEY>'); // Your secret API key
const tablesDB = new TablesDB(client);
const result = await tablesDB.updateLongtextColumn({ databaseId: '<DATABASE_ID>', tableId: '<TABLE_ID>', key: '<KEY>', required: false, xdefault: 'Hello World', newKey: '<NEW_KEY>', // optional description: '<DESCRIPTION>', // optional});createMediumtextColumn
Sección titulada «createMediumtextColumn»Crear columna mediumtext
POST /tablesdb/{databaseId}/tables/{tableId}/columns/mediumtext · página del método
SDK: solo @owbase/node
Create a mediumtext column.
| Parámetro | Tipo | Obligatorio | Descripción |
|---|---|---|---|
databaseId |
string |
sí | Database ID. |
tableId |
string |
sí | Table ID. You can create a new table using the Database service server integration. |
key |
string |
sí | Column Key. |
required |
boolean |
sí | Is column required? |
xdefault |
string |
no | Default value for column when not provided. Cannot be set when column is required. |
array |
boolean |
no | Is column an array? |
encrypt |
boolean |
no | Toggle encryption for the column. Encryption enhances security by not storing any plain text values in the database. However, encrypted columns cannot be queried. |
description |
string |
no | Optional description for the column. |
Acceso: clave de API con el alcance tables.write (también acepta collections.write, columns.write, attributes.write).
import { Client, TablesDB } from '@owbase/node';
const client = new Client() .setEndpoint('https://cloud.owbase.dev/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setKey('<YOUR_API_KEY>'); // Your secret API key
const tablesDB = new TablesDB(client);
const result = await tablesDB.createMediumtextColumn({ databaseId: '<DATABASE_ID>', tableId: '<TABLE_ID>', key: '<KEY>', required: false, xdefault: 'Hello World', // optional array: false, // optional encrypt: false, // optional description: '<DESCRIPTION>', // optional});updateMediumtextColumn
Sección titulada «updateMediumtextColumn»Actualizar columna mediumtext
PATCH /tablesdb/{databaseId}/tables/{tableId}/columns/mediumtext/{key} · página del método
SDK: solo @owbase/node
Update a mediumtext column. Changing the default value will not update already existing rows.
| Parámetro | Tipo | Obligatorio | Descripción |
|---|---|---|---|
databaseId |
string |
sí | Database ID. |
tableId |
string |
sí | Table ID. You can create a new table using the Database service server integration. |
key |
string |
sí | Column Key. |
required |
boolean |
sí | Is column required? |
xdefault |
string |
no | Default value for column when not provided. Cannot be set when column is required. |
newKey |
string |
no | New Column Key. |
description |
string |
no | Optional description for the column. |
Acceso: clave de API con el alcance tables.write (también acepta collections.write, columns.write, attributes.write).
import { Client, TablesDB } from '@owbase/node';
const client = new Client() .setEndpoint('https://cloud.owbase.dev/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setKey('<YOUR_API_KEY>'); // Your secret API key
const tablesDB = new TablesDB(client);
const result = await tablesDB.updateMediumtextColumn({ databaseId: '<DATABASE_ID>', tableId: '<TABLE_ID>', key: '<KEY>', required: false, xdefault: 'Hello World', newKey: '<NEW_KEY>', // optional description: '<DESCRIPTION>', // optional});createPointColumn
Sección titulada «createPointColumn»Crear columna de punto
POST /tablesdb/{databaseId}/tables/{tableId}/columns/point · página del método
SDK: solo @owbase/node
Create a geometric point column.
| Parámetro | Tipo | Obligatorio | Descripción |
|---|---|---|---|
databaseId |
string |
sí | Database ID. |
tableId |
string |
sí | Table ID. You can create a new table using the TablesDB service server integration. |
key |
string |
sí | Column Key. |
required |
boolean |
sí | Is column required? |
xdefault |
number[] |
no | Default value for column when not provided, array of two numbers [longitude, latitude], representing a single coordinate. Cannot be set when column is required. |
description |
string |
no | Optional description for the column. |
Acceso: clave de API con el alcance tables.write (también acepta collections.write, columns.write, attributes.write).
import { Client, TablesDB } from '@owbase/node';
const client = new Client() .setEndpoint('https://cloud.owbase.dev/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setKey('<YOUR_API_KEY>'); // Your secret API key
const tablesDB = new TablesDB(client);
const result = await tablesDB.createPointColumn({ databaseId: '<DATABASE_ID>', tableId: '<TABLE_ID>', key: '<KEY>', required: false, xdefault: [1, 2], // optional description: '<DESCRIPTION>', // optional});updatePointColumn
Sección titulada «updatePointColumn»Actualizar columna de punto
PATCH /tablesdb/{databaseId}/tables/{tableId}/columns/point/{key} · página del método
SDK: solo @owbase/node
Update a point column. Changing the default value will not update already existing rows.
| Parámetro | Tipo | Obligatorio | Descripción |
|---|---|---|---|
databaseId |
string |
sí | Database ID. |
tableId |
string |
sí | Table ID. You can create a new table using the TablesDB service server integration. |
key |
string |
sí | Column Key. |
required |
boolean |
sí | Is column required? |
xdefault |
number[] |
no | Default value for column when not provided, array of two numbers [longitude, latitude], representing a single coordinate. Cannot be set when column is required. |
newKey |
string |
no | New Column Key. |
description |
string |
no | Optional description for the column. |
Acceso: clave de API con el alcance tables.write (también acepta collections.write, columns.write, attributes.write).
import { Client, TablesDB } from '@owbase/node';
const client = new Client() .setEndpoint('https://cloud.owbase.dev/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setKey('<YOUR_API_KEY>'); // Your secret API key
const tablesDB = new TablesDB(client);
const result = await tablesDB.updatePointColumn({ databaseId: '<DATABASE_ID>', tableId: '<TABLE_ID>', key: '<KEY>', required: false, xdefault: [1, 2], // optional newKey: '<NEW_KEY>', // optional description: '<DESCRIPTION>', // optional});createPolygonColumn
Sección titulada «createPolygonColumn»Crear columna de polígono
POST /tablesdb/{databaseId}/tables/{tableId}/columns/polygon · página del método
SDK: solo @owbase/node
Create a geometric polygon column.
| Parámetro | Tipo | Obligatorio | Descripción |
|---|---|---|---|
databaseId |
string |
sí | Database ID. |
tableId |
string |
sí | Table ID. You can create a new table using the TablesDB service server integration. |
key |
string |
sí | Column Key. |
required |
boolean |
sí | Is column required? |
xdefault |
number[][][] |
no | Default value for column when not provided, three-dimensional array where the outer array holds one or more linear rings, [[[longitude, latitude], …], …], the first ring is the exterior boundary, any additional rings are interior holes, and each ring must start and end with the same coordinate pair. Cannot be set when column is required. |
description |
string |
no | Optional description for the column. |
Acceso: clave de API con el alcance tables.write (también acepta collections.write, columns.write, attributes.write).
import { Client, TablesDB } from '@owbase/node';
const client = new Client() .setEndpoint('https://cloud.owbase.dev/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setKey('<YOUR_API_KEY>'); // Your secret API key
const tablesDB = new TablesDB(client);
const result = await tablesDB.createPolygonColumn({ databaseId: '<DATABASE_ID>', tableId: '<TABLE_ID>', key: '<KEY>', required: false, xdefault: [ [ [1, 2], [3, 4], [5, 6], [1, 2], ], ], // optional description: '<DESCRIPTION>', // optional});updatePolygonColumn
Sección titulada «updatePolygonColumn»Actualizar columna de polígono
PATCH /tablesdb/{databaseId}/tables/{tableId}/columns/polygon/{key} · página del método
SDK: solo @owbase/node
Update a polygon column. Changing the default value will not update already existing rows.
| Parámetro | Tipo | Obligatorio | Descripción |
|---|---|---|---|
databaseId |
string |
sí | Database ID. |
tableId |
string |
sí | Table ID. You can create a new table using the TablesDB service server integration. |
key |
string |
sí | Column Key. |
required |
boolean |
sí | Is column required? |
xdefault |
number[][][] |
no | Default value for column when not provided, three-dimensional array where the outer array holds one or more linear rings, [[[longitude, latitude], …], …], the first ring is the exterior boundary, any additional rings are interior holes, and each ring must start and end with the same coordinate pair. Cannot be set when column is required. |
newKey |
string |
no | New Column Key. |
description |
string |
no | Optional description for the column. |
Acceso: clave de API con el alcance tables.write (también acepta collections.write, columns.write, attributes.write).
import { Client, TablesDB } from '@owbase/node';
const client = new Client() .setEndpoint('https://cloud.owbase.dev/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setKey('<YOUR_API_KEY>'); // Your secret API key
const tablesDB = new TablesDB(client);
const result = await tablesDB.updatePolygonColumn({ databaseId: '<DATABASE_ID>', tableId: '<TABLE_ID>', key: '<KEY>', required: false, xdefault: [ [ [1, 2], [3, 4], [5, 6], [1, 2], ], ], // optional newKey: '<NEW_KEY>', // optional description: '<DESCRIPTION>', // optional});createRelationshipColumn
Sección titulada «createRelationshipColumn»Crear columna de relación
POST /tablesdb/{databaseId}/tables/{tableId}/columns/relationship · página del método
SDK: solo @owbase/node
Create relationship column. Learn more about relationship columns.
| Parámetro | Tipo | Obligatorio | Descripción |
|---|---|---|---|
databaseId |
string |
sí | Database ID. |
tableId |
string |
sí | Table ID. |
relatedTableId |
string |
sí | Related Table ID. |
type |
RelationshipType |
sí | Relationship type. Possible values are: oneToOne, oneToMany, manyToOne, manyToMany. Valores: oneToOne, manyToOne, manyToMany, oneToMany. |
twoWay |
boolean |
no | Is Two Way? |
key |
string |
no | Column Key. |
twoWayKey |
string |
no | Two Way Column Key. |
onDelete |
RelationMutate |
no | Delete constraint. Possible values are: cascade, restrict, setNull. Valores: cascade, restrict, setNull. |
description |
string |
no | Optional description for the column. |
Acceso: clave de API con el alcance tables.write (también acepta collections.write, columns.write, attributes.write).
import { Client, TablesDB, RelationshipType, RelationMutate } from '@owbase/node';
const client = new Client() .setEndpoint('https://cloud.owbase.dev/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setKey('<YOUR_API_KEY>'); // Your secret API key
const tablesDB = new TablesDB(client);
const result = await tablesDB.createRelationshipColumn({ databaseId: '<DATABASE_ID>', tableId: '<TABLE_ID>', relatedTableId: '<RELATED_TABLE_ID>', type: RelationshipType.OneToOne, twoWay: false, // optional key: '<KEY>', // optional twoWayKey: '<TWO_WAY_KEY>', // optional onDelete: RelationMutate.Cascade, // optional description: '<DESCRIPTION>', // optional});updateRelationshipColumn
Sección titulada «updateRelationshipColumn»Actualizar columna de relación
PATCH /tablesdb/{databaseId}/tables/{tableId}/columns/relationship/{key} · página del método
SDK: solo @owbase/node
Update relationship column. Learn more about relationship columns.
| Parámetro | Tipo | Obligatorio | Descripción |
|---|---|---|---|
databaseId |
string |
sí | Database ID. |
tableId |
string |
sí | Table ID. |
key |
string |
sí | Column Key. |
onDelete |
RelationMutate |
no | Delete constraint. Possible values are: cascade, restrict, setNull. Valores: cascade, restrict, setNull. |
newKey |
string |
no | New Column Key. |
description |
string |
no | Optional description for the column. |
Acceso: clave de API con el alcance tables.write (también acepta collections.write, columns.write, attributes.write).
import { Client, TablesDB, RelationMutate } from '@owbase/node';
const client = new Client() .setEndpoint('https://cloud.owbase.dev/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setKey('<YOUR_API_KEY>'); // Your secret API key
const tablesDB = new TablesDB(client);
const result = await tablesDB.updateRelationshipColumn({ databaseId: '<DATABASE_ID>', tableId: '<TABLE_ID>', key: '<KEY>', onDelete: RelationMutate.Cascade, // optional newKey: '<NEW_KEY>', // optional description: '<DESCRIPTION>', // optional});createStringColumn
Sección titulada «createStringColumn»Crear columna string
POST /tablesdb/{databaseId}/tables/{tableId}/columns/string · página del método
SDK: solo @owbase/node
Create a string column.
| Parámetro | Tipo | Obligatorio | Descripción |
|---|---|---|---|
databaseId |
string |
sí | Database ID. |
tableId |
string |
sí | Table ID. You can create a new table using the Database service server integration. |
key |
string |
sí | Column Key. |
size |
number |
sí | Column size for text columns, in number of characters. |
required |
boolean |
sí | Is column required? |
xdefault |
string |
no | Default value for column when not provided. Cannot be set when column is required. |
array |
boolean |
no | Is column an array? |
encrypt |
boolean |
no | Toggle encryption for the column. Encryption enhances security by not storing any plain text values in the database. However, encrypted columns cannot be queried. |
description |
string |
no | Optional description for the column. |
Acceso: clave de API con el alcance tables.write (también acepta collections.write, columns.write, attributes.write).
import { Client, TablesDB } from '@owbase/node';
const client = new Client() .setEndpoint('https://cloud.owbase.dev/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setKey('<YOUR_API_KEY>'); // Your secret API key
const tablesDB = new TablesDB(client);
const result = await tablesDB.createStringColumn({ databaseId: '<DATABASE_ID>', tableId: '<TABLE_ID>', key: '<KEY>', size: 1, required: false, xdefault: 'Hello World', // optional array: false, // optional encrypt: false, // optional description: '<DESCRIPTION>', // optional});updateStringColumn
Sección titulada «updateStringColumn»Actualizar columna string
PATCH /tablesdb/{databaseId}/tables/{tableId}/columns/string/{key} · página del método
SDK: solo @owbase/node
Update a string column. Changing the default value will not update already existing rows.
| Parámetro | Tipo | Obligatorio | Descripción |
|---|---|---|---|
databaseId |
string |
sí | Database ID. |
tableId |
string |
sí | Table ID. You can create a new table using the Database service server integration. |
key |
string |
sí | Column Key. |
required |
boolean |
sí | Is column required? |
xdefault |
string |
no | Default value for column when not provided. Cannot be set when column is required. |
size |
number |
no | Maximum size of the string column. |
newKey |
string |
no | New Column Key. |
description |
string |
no | Optional description for the column. |
Acceso: clave de API con el alcance tables.write (también acepta collections.write, columns.write, attributes.write).
import { Client, TablesDB } from '@owbase/node';
const client = new Client() .setEndpoint('https://cloud.owbase.dev/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setKey('<YOUR_API_KEY>'); // Your secret API key
const tablesDB = new TablesDB(client);
const result = await tablesDB.updateStringColumn({ databaseId: '<DATABASE_ID>', tableId: '<TABLE_ID>', key: '<KEY>', required: false, xdefault: 'Hello World', size: 1, // optional newKey: '<NEW_KEY>', // optional description: '<DESCRIPTION>', // optional});createTextColumn
Sección titulada «createTextColumn»Crear columna de texto
POST /tablesdb/{databaseId}/tables/{tableId}/columns/text · página del método
SDK: solo @owbase/node
Create a text column.
| Parámetro | Tipo | Obligatorio | Descripción |
|---|---|---|---|
databaseId |
string |
sí | Database ID. |
tableId |
string |
sí | Table ID. You can create a new table using the Database service server integration. |
key |
string |
sí | Column Key. |
required |
boolean |
sí | Is column required? |
xdefault |
string |
no | Default value for column when not provided. Cannot be set when column is required. |
array |
boolean |
no | Is column an array? |
encrypt |
boolean |
no | Toggle encryption for the column. Encryption enhances security by not storing any plain text values in the database. However, encrypted columns cannot be queried. |
description |
string |
no | Optional description for the column. |
Acceso: clave de API con el alcance tables.write (también acepta collections.write, columns.write, attributes.write).
import { Client, TablesDB } from '@owbase/node';
const client = new Client() .setEndpoint('https://cloud.owbase.dev/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setKey('<YOUR_API_KEY>'); // Your secret API key
const tablesDB = new TablesDB(client);
const result = await tablesDB.createTextColumn({ databaseId: '<DATABASE_ID>', tableId: '<TABLE_ID>', key: '<KEY>', required: false, xdefault: 'Hello World', // optional array: false, // optional encrypt: false, // optional description: '<DESCRIPTION>', // optional});updateTextColumn
Sección titulada «updateTextColumn»Actualizar columna de texto
PATCH /tablesdb/{databaseId}/tables/{tableId}/columns/text/{key} · página del método
SDK: solo @owbase/node
Update a text column. Changing the default value will not update already existing rows.
| Parámetro | Tipo | Obligatorio | Descripción |
|---|---|---|---|
databaseId |
string |
sí | Database ID. |
tableId |
string |
sí | Table ID. You can create a new table using the Database service server integration. |
key |
string |
sí | Column Key. |
required |
boolean |
sí | Is column required? |
xdefault |
string |
no | Default value for column when not provided. Cannot be set when column is required. |
newKey |
string |
no | New Column Key. |
description |
string |
no | Optional description for the column. |
Acceso: clave de API con el alcance tables.write (también acepta collections.write, columns.write, attributes.write).
import { Client, TablesDB } from '@owbase/node';
const client = new Client() .setEndpoint('https://cloud.owbase.dev/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setKey('<YOUR_API_KEY>'); // Your secret API key
const tablesDB = new TablesDB(client);
const result = await tablesDB.updateTextColumn({ databaseId: '<DATABASE_ID>', tableId: '<TABLE_ID>', key: '<KEY>', required: false, xdefault: 'Hello World', newKey: '<NEW_KEY>', // optional description: '<DESCRIPTION>', // optional});createUrlColumn
Sección titulada «createUrlColumn»Crear columna URL
POST /tablesdb/{databaseId}/tables/{tableId}/columns/url · página del método
SDK: solo @owbase/node
Create a URL column.
| Parámetro | Tipo | Obligatorio | Descripción |
|---|---|---|---|
databaseId |
string |
sí | Database ID. |
tableId |
string |
sí | Table ID. |
key |
string |
sí | Column Key. |
required |
boolean |
sí | Is column required? |
xdefault |
string |
no | Default value for column when not provided. Cannot be set when column is required. |
array |
boolean |
no | Is column an array? |
description |
string |
no | Optional description for the column. |
Acceso: clave de API con el alcance tables.write (también acepta collections.write, columns.write, attributes.write).
import { Client, TablesDB } from '@owbase/node';
const client = new Client() .setEndpoint('https://cloud.owbase.dev/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setKey('<YOUR_API_KEY>'); // Your secret API key
const tablesDB = new TablesDB(client);
const result = await tablesDB.createUrlColumn({ databaseId: '<DATABASE_ID>', tableId: '<TABLE_ID>', key: '<KEY>', required: false, xdefault: 'https://example.com', // optional array: false, // optional description: '<DESCRIPTION>', // optional});updateUrlColumn
Sección titulada «updateUrlColumn»Actualizar columna URL
PATCH /tablesdb/{databaseId}/tables/{tableId}/columns/url/{key} · página del método
SDK: solo @owbase/node
Update an url column. Changing the default value will not update already existing rows.
| Parámetro | Tipo | Obligatorio | Descripción |
|---|---|---|---|
databaseId |
string |
sí | Database ID. |
tableId |
string |
sí | Table ID. |
key |
string |
sí | Column Key. |
required |
boolean |
sí | Is column required? |
xdefault |
string |
no | Default value for column when not provided. Cannot be set when column is required. |
newKey |
string |
no | New Column Key. |
description |
string |
no | Optional description for the column. |
Acceso: clave de API con el alcance tables.write (también acepta collections.write, columns.write, attributes.write).
import { Client, TablesDB } from '@owbase/node';
const client = new Client() .setEndpoint('https://cloud.owbase.dev/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setKey('<YOUR_API_KEY>'); // Your secret API key
const tablesDB = new TablesDB(client);
const result = await tablesDB.updateUrlColumn({ databaseId: '<DATABASE_ID>', tableId: '<TABLE_ID>', key: '<KEY>', required: false, xdefault: 'https://example.com', newKey: '<NEW_KEY>', // optional description: '<DESCRIPTION>', // optional});createVarcharColumn
Sección titulada «createVarcharColumn»Crear columna varchar
POST /tablesdb/{databaseId}/tables/{tableId}/columns/varchar · página del método
SDK: solo @owbase/node
Create a varchar column.
| Parámetro | Tipo | Obligatorio | Descripción |
|---|---|---|---|
databaseId |
string |
sí | Database ID. |
tableId |
string |
sí | Table ID. You can create a new table using the Database service server integration. |
key |
string |
sí | Column Key. |
size |
number |
sí | Column size for varchar columns, in number of characters. Maximum size is 16381. |
required |
boolean |
sí | Is column required? |
xdefault |
string |
no | Default value for column when not provided. Cannot be set when column is required. |
array |
boolean |
no | Is column an array? |
encrypt |
boolean |
no | Toggle encryption for the column. Encryption enhances security by not storing any plain text values in the database. However, encrypted columns cannot be queried. |
description |
string |
no | Optional description for the column. |
Acceso: clave de API con el alcance tables.write (también acepta collections.write, columns.write, attributes.write).
import { Client, TablesDB } from '@owbase/node';
const client = new Client() .setEndpoint('https://cloud.owbase.dev/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setKey('<YOUR_API_KEY>'); // Your secret API key
const tablesDB = new TablesDB(client);
const result = await tablesDB.createVarcharColumn({ databaseId: '<DATABASE_ID>', tableId: '<TABLE_ID>', key: '<KEY>', size: 1, required: false, xdefault: 'Hello World', // optional array: false, // optional encrypt: false, // optional description: '<DESCRIPTION>', // optional});updateVarcharColumn
Sección titulada «updateVarcharColumn»Actualizar columna varchar
PATCH /tablesdb/{databaseId}/tables/{tableId}/columns/varchar/{key} · página del método
SDK: solo @owbase/node
Update a varchar column. Changing the default value will not update already existing rows.
| Parámetro | Tipo | Obligatorio | Descripción |
|---|---|---|---|
databaseId |
string |
sí | Database ID. |
tableId |
string |
sí | Table ID. You can create a new table using the Database service server integration. |
key |
string |
sí | Column Key. |
required |
boolean |
sí | Is column required? |
xdefault |
string |
no | Default value for column when not provided. Cannot be set when column is required. |
size |
number |
no | Maximum size of the varchar column. |
newKey |
string |
no | New Column Key. |
description |
string |
no | Optional description for the column. |
Acceso: clave de API con el alcance tables.write (también acepta collections.write, columns.write, attributes.write).
import { Client, TablesDB } from '@owbase/node';
const client = new Client() .setEndpoint('https://cloud.owbase.dev/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setKey('<YOUR_API_KEY>'); // Your secret API key
const tablesDB = new TablesDB(client);
const result = await tablesDB.updateVarcharColumn({ databaseId: '<DATABASE_ID>', tableId: '<TABLE_ID>', key: '<KEY>', required: false, xdefault: 'Hello World', size: 1, // optional newKey: '<NEW_KEY>', // optional description: '<DESCRIPTION>', // optional});getColumn
Sección titulada «getColumn»Obtener columna
GET /tablesdb/{databaseId}/tables/{tableId}/columns/{key} · página del método
SDK: solo @owbase/node
Get column by ID.
| Parámetro | Tipo | Obligatorio | Descripción |
|---|---|---|---|
databaseId |
string |
sí | Database ID. |
tableId |
string |
sí | Table ID. |
key |
string |
sí | Column Key. |
Acceso: clave de API con el alcance tables.read (también acepta collections.read, columns.read, attributes.read).
import { Client, TablesDB } from '@owbase/node';
const client = new Client() .setEndpoint('https://cloud.owbase.dev/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setKey('<YOUR_API_KEY>'); // Your secret API key
const tablesDB = new TablesDB(client);
const result = await tablesDB.getColumn({ databaseId: '<DATABASE_ID>', tableId: '<TABLE_ID>', key: '<KEY>',});deleteColumn
Sección titulada «deleteColumn»Eliminar columna
DELETE /tablesdb/{databaseId}/tables/{tableId}/columns/{key} · página del método
SDK: solo @owbase/node
Deletes a column.
| Parámetro | Tipo | Obligatorio | Descripción |
|---|---|---|---|
databaseId |
string |
sí | Database ID. |
tableId |
string |
sí | Table ID. |
key |
string |
sí | Column Key. |
Acceso: clave de API con el alcance tables.write (también acepta collections.write, columns.write, attributes.write).
import { Client, TablesDB } from '@owbase/node';
const client = new Client() .setEndpoint('https://cloud.owbase.dev/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setKey('<YOUR_API_KEY>'); // Your secret API key
const tablesDB = new TablesDB(client);
const result = await tablesDB.deleteColumn({ databaseId: '<DATABASE_ID>', tableId: '<TABLE_ID>', key: '<KEY>',});listIndexes
Sección titulada «listIndexes»Listar índices
GET /tablesdb/{databaseId}/tables/{tableId}/indexes · página del método
SDK: solo @owbase/node
List indexes on the table.
| Parámetro | Tipo | Obligatorio | Descripción |
|---|---|---|---|
databaseId |
string |
sí | Database ID. |
tableId |
string |
sí | Table ID. You can create a new table using the Database service server integration. |
queries |
string[] |
no | Array of query strings generated using the Query class provided by the SDK. Learn more about queries. Maximum of 100 queries are allowed, each 4096 characters long. You may filter on the following columns: key, type, status, attributes, error |
total |
boolean |
no | When set to false, the total count returned will be 0 and will not be calculated. |
Acceso: clave de API con el alcance tables.read (también acepta collections.read, indexes.read).
import { Client, TablesDB } from '@owbase/node';
const client = new Client() .setEndpoint('https://cloud.owbase.dev/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setKey('<YOUR_API_KEY>'); // Your secret API key
const tablesDB = new TablesDB(client);
const result = await tablesDB.listIndexes({ databaseId: '<DATABASE_ID>', tableId: '<TABLE_ID>', queries: [], // optional total: false, // optional});createIndex
Sección titulada «createIndex»Crear índice
POST /tablesdb/{databaseId}/tables/{tableId}/indexes · página del método
SDK: solo @owbase/node
Creates an index on the columns listed. Your index should include all the columns you will query in a single request.
Type can be key, fulltext, unique, spatial, or trigram. trigram is only available on PostgreSQL and lets contains, startsWith, and endsWith queries on string columns use an index.
| Parámetro | Tipo | Obligatorio | Descripción |
|---|---|---|---|
databaseId |
string |
sí | Database ID. |
tableId |
string |
sí | Table ID. You can create a new table using the Database service server integration. |
key |
string |
sí | Index Key. |
type |
TablesDBIndexType |
sí | Index type. Valores: key, fulltext, unique, spatial, trigram. |
columns |
string[] |
sí | Array of columns to index. Maximum of 100 columns are allowed, each 32 characters long. |
orders |
OrderBy[] |
no | Array of index orders. Maximum of 100 orders are allowed. Valores: asc, desc. |
lengths |
number[] |
no | Length of index. Maximum of 100 |
description |
string |
no | Optional description for the index. |
Acceso: clave de API con el alcance tables.write (también acepta collections.write, indexes.write).
import { Client, TablesDB, TablesDBIndexType, OrderBy } from '@owbase/node';
const client = new Client() .setEndpoint('https://cloud.owbase.dev/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setKey('<YOUR_API_KEY>'); // Your secret API key
const tablesDB = new TablesDB(client);
const result = await tablesDB.createIndex({ databaseId: '<DATABASE_ID>', tableId: '<TABLE_ID>', key: '<KEY>', type: TablesDBIndexType.Key, columns: ['username'], orders: [OrderBy.Asc], // optional lengths: [], // optional description: '<DESCRIPTION>', // optional});getIndex
Sección titulada «getIndex»Obtener índice
GET /tablesdb/{databaseId}/tables/{tableId}/indexes/{key} · página del método
SDK: solo @owbase/node
Get index by ID.
| Parámetro | Tipo | Obligatorio | Descripción |
|---|---|---|---|
databaseId |
string |
sí | Database ID. |
tableId |
string |
sí | Table ID. You can create a new table using the Database service server integration. |
key |
string |
sí | Index Key. |
Acceso: clave de API con el alcance tables.read (también acepta collections.read, indexes.read).
import { Client, TablesDB } from '@owbase/node';
const client = new Client() .setEndpoint('https://cloud.owbase.dev/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setKey('<YOUR_API_KEY>'); // Your secret API key
const tablesDB = new TablesDB(client);
const result = await tablesDB.getIndex({ databaseId: '<DATABASE_ID>', tableId: '<TABLE_ID>', key: '<KEY>',});deleteIndex
Sección titulada «deleteIndex»Eliminar índice
DELETE /tablesdb/{databaseId}/tables/{tableId}/indexes/{key} · página del método
SDK: solo @owbase/node
Delete an index.
| Parámetro | Tipo | Obligatorio | Descripción |
|---|---|---|---|
databaseId |
string |
sí | Database ID. |
tableId |
string |
sí | Table ID. You can create a new table using the TablesDB service server integration. |
key |
string |
sí | Index Key. |
Acceso: clave de API con el alcance tables.write (también acepta collections.write, indexes.write).
import { Client, TablesDB } from '@owbase/node';
const client = new Client() .setEndpoint('https://cloud.owbase.dev/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setKey('<YOUR_API_KEY>'); // Your secret API key
const tablesDB = new TablesDB(client);
const result = await tablesDB.deleteIndex({ databaseId: '<DATABASE_ID>', tableId: '<TABLE_ID>', key: '<KEY>',});listRows
Sección titulada «listRows»Listar filas
GET /tablesdb/{databaseId}/tables/{tableId}/rows · página del método
SDK: @owbase/web y @owbase/node
Get a list of all the user’s rows in a given table. You can use the query params to filter your results.
Rows returned by aggregate, groupBy or distinct queries hold only the columns they select, group or aggregate, typed as a row types them, with a joined column named by its join alias (alias.column). The response omits their $id, $sequence, $createdAt, $updatedAt, $permissions, $databaseId and $tableId unless they select or group it, and those of a right or full join row that no row of this table matched. SDK row models fill omitted system columns with empty values.
| Parámetro | Tipo | Obligatorio | Descripción |
|---|---|---|---|
databaseId |
string |
sí | Database ID. |
tableId |
string |
sí | Table ID. You can create a new table using the TablesDB service server integration. |
queries |
string[] |
no | Array of query strings generated using the Query class provided by the SDK. Learn more about queries. Maximum of 100 queries are allowed, each 4096 characters long. |
transactionId |
string |
no | Transaction ID to read uncommitted changes within the transaction. |
total |
boolean |
no | When set to false, the total count returned will be 0 and will not be calculated. |
ttl |
number |
no | TTL (seconds) for caching list responses. Responses are stored in an in-memory key-value cache, keyed per project, table, schema version (columns and indexes), caller authorization roles, and the exact query — so users with different permissions never share cached entries. Schema changes invalidate cached entries automatically; row writes do not, so choose a TTL you are comfortable serving as stale data. Set to 0 to disable caching. Lists with join queries are not cached. Must be between 0 and 86400 (24 hours). |
Acceso: clave de API con el alcance rows.read (también acepta documents.read) o sesión del usuario, o incluso sin sesión (vale lo que permitan los permisos del recurso).
import { Client, TablesDB } from '@owbase/web';
const client = new Client() .setEndpoint('https://cloud.owbase.dev/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>'); // Your project ID
const tablesDB = new TablesDB(client);
const result = await tablesDB.listRows({ databaseId: '<DATABASE_ID>', tableId: '<TABLE_ID>', queries: [], // optional transactionId: '<TRANSACTION_ID>', // optional total: false, // optional ttl: 0, // optional});
console.log(result);import { Client, TablesDB } from '@owbase/node';
const client = new Client() .setEndpoint('https://cloud.owbase.dev/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setSession(''); // The user session to authenticate with
const tablesDB = new TablesDB(client);
const result = await tablesDB.listRows({ databaseId: '<DATABASE_ID>', tableId: '<TABLE_ID>', queries: [], // optional transactionId: '<TRANSACTION_ID>', // optional total: false, // optional ttl: 0, // optional});createRow
Sección titulada «createRow»Crear fila
POST /tablesdb/{databaseId}/tables/{tableId}/rows · página del método
SDK: @owbase/web y @owbase/node
Create a new Row. Before using this route, you should create a new table resource using either a server integration API or directly from your database console.
| Parámetro | Tipo | Obligatorio | Descripción |
|---|---|---|---|
databaseId |
string |
sí | Database ID. |
tableId |
string |
sí | Table ID. You can create a new table using the Database service server integration. Make sure to define columns before creating rows. |
rowId |
string |
sí | Row ID. Choose a custom ID or generate a random ID with ID.unique(). Valid chars are a-z, A-Z, 0-9, period, hyphen, and underscore. Can’t start with a special char. Max length is 36 chars. |
data |
object |
sí | Row data as JSON object. |
permissions |
string[] |
no | An array of permissions strings. By default, only the current user is granted all permissions. Learn more about permissions. |
transactionId |
string |
no | Transaction ID for staging the operation. |
Acceso: clave de API con el alcance rows.write (también acepta documents.write) o sesión del usuario, o incluso sin sesión (vale lo que permitan los permisos del recurso).
import { Client, TablesDB, Permission, Role } from '@owbase/web';
const client = new Client() .setEndpoint('https://cloud.owbase.dev/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>'); // Your project ID
const tablesDB = new TablesDB(client);
const result = await tablesDB.createRow({ databaseId: '<DATABASE_ID>', tableId: '<TABLE_ID>', rowId: '<ROW_ID>', data: { username: 'walter.obrien', fullName: "Walter O'Brien", age: 30, isAdmin: false, }, permissions: [Permission.read(Role.any())], // optional transactionId: '<TRANSACTION_ID>', // optional});
console.log(result);import { Client, TablesDB, Permission, Role } from '@owbase/node';
const client = new Client() .setEndpoint('https://cloud.owbase.dev/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setSession(''); // The user session to authenticate with
const tablesDB = new TablesDB(client);
const result = await tablesDB.createRow({ databaseId: '<DATABASE_ID>', tableId: '<TABLE_ID>', rowId: '<ROW_ID>', data: { username: 'walter.obrien', fullName: "Walter O'Brien", age: 30, isAdmin: false, }, permissions: [Permission.read(Role.any())], // optional transactionId: '<TRANSACTION_ID>', // optional});createRows
Sección titulada «createRows»Crear filas
POST /tablesdb/{databaseId}/tables/{tableId}/rows · página del método
SDK: solo @owbase/node
Create new Rows. Before using this route, you should create a new table resource using either a server integration API or directly from your database console.
| Parámetro | Tipo | Obligatorio | Descripción |
|---|---|---|---|
databaseId |
string |
sí | Database ID. |
tableId |
string |
sí | Table ID. You can create a new table using the Database service server integration. Make sure to define columns before creating rows. |
rows |
object[] |
sí | Array of rows data as JSON objects. |
transactionId |
string |
no | Transaction ID for staging the operation. |
Acceso: clave de API con el alcance rows.write (también acepta documents.write) o sesión del usuario, o incluso sin sesión (vale lo que permitan los permisos del recurso).
import { Client, TablesDB } from '@owbase/node';
const client = new Client() .setEndpoint('https://cloud.owbase.dev/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setKey('<YOUR_API_KEY>'); // Your secret API key
const tablesDB = new TablesDB(client);
const result = await tablesDB.createRows({ databaseId: '<DATABASE_ID>', tableId: '<TABLE_ID>', rows: [ { $id: 'example1', username: 'walter.obrien', fullName: "Walter O'Brien", age: 30, isAdmin: false, }, ], transactionId: '<TRANSACTION_ID>', // optional});upsertRows
Sección titulada «upsertRows»Crear o actualizar filas
PUT /tablesdb/{databaseId}/tables/{tableId}/rows · página del método
SDK: solo @owbase/node
Create or update Rows. Before using this route, you should create a new table resource using either a server integration API or directly from your database console.
| Parámetro | Tipo | Obligatorio | Descripción |
|---|---|---|---|
databaseId |
string |
sí | Database ID. |
tableId |
string |
sí | Table ID. |
rows |
object[] |
sí | Array of row data as JSON objects. May contain partial rows. |
transactionId |
string |
no | Transaction ID for staging the operation. |
Acceso: clave de API con el alcance rows.write (también acepta documents.write).
import { Client, TablesDB } from '@owbase/node';
const client = new Client() .setEndpoint('https://cloud.owbase.dev/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setKey('<YOUR_API_KEY>'); // Your secret API key
const tablesDB = new TablesDB(client);
const result = await tablesDB.upsertRows({ databaseId: '<DATABASE_ID>', tableId: '<TABLE_ID>', rows: [ { $id: 'example1', username: 'walter.obrien', fullName: "Walter O'Brien", age: 30, isAdmin: false, }, ], transactionId: '<TRANSACTION_ID>', // optional});updateRows
Sección titulada «updateRows»Actualizar filas
PATCH /tablesdb/{databaseId}/tables/{tableId}/rows · página del método
SDK: solo @owbase/node
Update all rows that match your queries, if no queries are submitted then all rows are updated. You can pass only specific fields to be updated.
| Parámetro | Tipo | Obligatorio | Descripción |
|---|---|---|---|
databaseId |
string |
sí | Database ID. |
tableId |
string |
sí | Table ID. |
data |
object |
no | Row data as JSON object. Include only column and value pairs to be updated. |
queries |
string[] |
no | Array of query strings generated using the Query class provided by the SDK. Learn more about queries. Maximum of 100 queries are allowed, each 4096 characters long. |
transactionId |
string |
no | Transaction ID for staging the operation. |
Acceso: clave de API con el alcance rows.write (también acepta documents.write).
import { Client, TablesDB } from '@owbase/node';
const client = new Client() .setEndpoint('https://cloud.owbase.dev/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setKey('<YOUR_API_KEY>'); // Your secret API key
const tablesDB = new TablesDB(client);
const result = await tablesDB.updateRows({ databaseId: '<DATABASE_ID>', tableId: '<TABLE_ID>', data: { username: 'walter.obrien', fullName: "Walter O'Brien", age: 33, isAdmin: false, }, // optional queries: [], // optional transactionId: '<TRANSACTION_ID>', // optional});deleteRows
Sección titulada «deleteRows»Eliminar filas
DELETE /tablesdb/{databaseId}/tables/{tableId}/rows · página del método
SDK: solo @owbase/node
Bulk delete rows using queries, if no queries are passed then all rows are deleted.
| Parámetro | Tipo | Obligatorio | Descripción |
|---|---|---|---|
databaseId |
string |
sí | Database ID. |
tableId |
string |
sí | Table ID. You can create a new table using the Database service server integration. |
queries |
string[] |
no | Array of query strings generated using the Query class provided by the SDK. Learn more about queries. Maximum of 100 queries are allowed, each 4096 characters long. |
transactionId |
string |
no | Transaction ID for staging the operation. |
Acceso: clave de API con el alcance rows.write (también acepta documents.write).
import { Client, TablesDB } from '@owbase/node';
const client = new Client() .setEndpoint('https://cloud.owbase.dev/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setKey('<YOUR_API_KEY>'); // Your secret API key
const tablesDB = new TablesDB(client);
const result = await tablesDB.deleteRows({ databaseId: '<DATABASE_ID>', tableId: '<TABLE_ID>', queries: ['{"method":"equal", "attribute":"$id", "values":["<ROW_ID>"]}'], // optional transactionId: '<TRANSACTION_ID>', // optional});createQuery
Sección titulada «createQuery»Crear consulta
POST /tablesdb/{databaseId}/tables/{tableId}/rows/query · página del método
SDK: @owbase/web y @owbase/node
Get a list of all the user’s rows in a given table using a POST request. This behaves identically to the list rows endpoint but accepts the queries in the request body, allowing much larger queries arrays than can fit in a URL query string.
| Parámetro | Tipo | Obligatorio | Descripción |
|---|---|---|---|
databaseId |
string |
sí | Database ID. |
tableId |
string |
sí | Table ID. You can create a new table using the TablesDB service server integration. |
queries |
string[] |
no | Array of query strings generated using the Query class provided by the SDK. Learn more about queries. Maximum of 100 queries are allowed, each 4096 characters long. |
transactionId |
string |
no | Transaction ID to read uncommitted changes within the transaction. |
total |
boolean |
no | When set to false, the total count returned will be 0 and will not be calculated. |
ttl |
number |
no | TTL (seconds) for caching list responses. Responses are stored in an in-memory key-value cache, keyed per project, table, schema version (columns and indexes), caller authorization roles, and the exact query — so users with different permissions never share cached entries. Schema changes invalidate cached entries automatically; row writes do not, so choose a TTL you are comfortable serving as stale data. Set to 0 to disable caching. Lists with join queries are not cached. Must be between 0 and 86400 (24 hours). |
Acceso: clave de API con el alcance rows.read (también acepta documents.read) o sesión del usuario, o incluso sin sesión (vale lo que permitan los permisos del recurso).
import { Client, TablesDB } from '@owbase/web';
const client = new Client() .setEndpoint('https://cloud.owbase.dev/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>'); // Your project ID
const tablesDB = new TablesDB(client);
const result = await tablesDB.createQuery({ databaseId: '<DATABASE_ID>', tableId: '<TABLE_ID>', queries: [], // optional transactionId: '<TRANSACTION_ID>', // optional total: false, // optional ttl: 0, // optional});
console.log(result);import { Client, TablesDB } from '@owbase/node';
const client = new Client() .setEndpoint('https://cloud.owbase.dev/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setSession(''); // The user session to authenticate with
const tablesDB = new TablesDB(client);
const result = await tablesDB.createQuery({ databaseId: '<DATABASE_ID>', tableId: '<TABLE_ID>', queries: [], // optional transactionId: '<TRANSACTION_ID>', // optional total: false, // optional ttl: 0, // optional});Obtener fila
GET /tablesdb/{databaseId}/tables/{tableId}/rows/{rowId} · página del método
SDK: @owbase/web y @owbase/node
Get a row by its unique ID. This endpoint response returns a JSON object with the row data.
| Parámetro | Tipo | Obligatorio | Descripción |
|---|---|---|---|
databaseId |
string |
sí | Database ID. |
tableId |
string |
sí | Table ID. You can create a new table using the Database service server integration. |
rowId |
string |
sí | Row ID. |
queries |
string[] |
no | Array of query strings generated using the Query class provided by the SDK. Learn more about queries. Maximum of 100 queries are allowed, each 4096 characters long. |
transactionId |
string |
no | Transaction ID to read uncommitted changes within the transaction. |
Acceso: clave de API con el alcance rows.read (también acepta documents.read) o sesión del usuario, o incluso sin sesión (vale lo que permitan los permisos del recurso).
import { Client, TablesDB } from '@owbase/web';
const client = new Client() .setEndpoint('https://cloud.owbase.dev/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>'); // Your project ID
const tablesDB = new TablesDB(client);
const result = await tablesDB.getRow({ databaseId: '<DATABASE_ID>', tableId: '<TABLE_ID>', rowId: '<ROW_ID>', queries: [], // optional transactionId: '<TRANSACTION_ID>', // optional});
console.log(result);import { Client, TablesDB } from '@owbase/node';
const client = new Client() .setEndpoint('https://cloud.owbase.dev/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setSession(''); // The user session to authenticate with
const tablesDB = new TablesDB(client);
const result = await tablesDB.getRow({ databaseId: '<DATABASE_ID>', tableId: '<TABLE_ID>', rowId: '<ROW_ID>', queries: [], // optional transactionId: '<TRANSACTION_ID>', // optional});upsertRow
Sección titulada «upsertRow»Crear o actualizar una fila
PUT /tablesdb/{databaseId}/tables/{tableId}/rows/{rowId} · página del método
SDK: @owbase/web y @owbase/node
Create or update a Row. Before using this route, you should create a new table resource using either a server integration API or directly from your database console.
| Parámetro | Tipo | Obligatorio | Descripción |
|---|---|---|---|
databaseId |
string |
sí | Database ID. |
tableId |
string |
sí | Table ID. |
rowId |
string |
sí | Row ID. |
data |
object |
no | Row data as JSON object. Include all required columns of the row to be created or updated. |
permissions |
string[] |
no | An array of permissions strings. By default, the current permissions are inherited. Learn more about permissions. |
transactionId |
string |
no | Transaction ID for staging the operation. |
Acceso: clave de API con el alcance rows.write (también acepta documents.write) o sesión del usuario, o incluso sin sesión (vale lo que permitan los permisos del recurso).
import { Client, TablesDB, Permission, Role } from '@owbase/web';
const client = new Client() .setEndpoint('https://cloud.owbase.dev/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>'); // Your project ID
const tablesDB = new TablesDB(client);
const result = await tablesDB.upsertRow({ databaseId: '<DATABASE_ID>', tableId: '<TABLE_ID>', rowId: '<ROW_ID>', data: { username: 'walter.obrien', fullName: "Walter O'Brien", age: 33, isAdmin: false, }, // optional permissions: [Permission.read(Role.any())], // optional transactionId: '<TRANSACTION_ID>', // optional});
console.log(result);import { Client, TablesDB, Permission, Role } from '@owbase/node';
const client = new Client() .setEndpoint('https://cloud.owbase.dev/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setSession(''); // The user session to authenticate with
const tablesDB = new TablesDB(client);
const result = await tablesDB.upsertRow({ databaseId: '<DATABASE_ID>', tableId: '<TABLE_ID>', rowId: '<ROW_ID>', data: { username: 'walter.obrien', fullName: "Walter O'Brien", age: 33, isAdmin: false, }, // optional permissions: [Permission.read(Role.any())], // optional transactionId: '<TRANSACTION_ID>', // optional});updateRow
Sección titulada «updateRow»Actualizar fila
PATCH /tablesdb/{databaseId}/tables/{tableId}/rows/{rowId} · página del método
SDK: @owbase/web y @owbase/node
Update a row by its unique ID. Using the patch method you can pass only specific fields that will get updated.
| Parámetro | Tipo | Obligatorio | Descripción |
|---|---|---|---|
databaseId |
string |
sí | Database ID. |
tableId |
string |
sí | Table ID. |
rowId |
string |
sí | Row ID. |
data |
object |
no | Row data as JSON object. Include only columns and value pairs to be updated. |
permissions |
string[] |
no | An array of permissions strings. By default, the current permissions are inherited. Learn more about permissions. |
transactionId |
string |
no | Transaction ID for staging the operation. |
Acceso: clave de API con el alcance rows.write (también acepta documents.write) o sesión del usuario, o incluso sin sesión (vale lo que permitan los permisos del recurso).
import { Client, TablesDB, Permission, Role } from '@owbase/web';
const client = new Client() .setEndpoint('https://cloud.owbase.dev/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>'); // Your project ID
const tablesDB = new TablesDB(client);
const result = await tablesDB.updateRow({ databaseId: '<DATABASE_ID>', tableId: '<TABLE_ID>', rowId: '<ROW_ID>', data: { username: 'walter.obrien', fullName: "Walter O'Brien", age: 33, isAdmin: false, }, // optional permissions: [Permission.read(Role.any())], // optional transactionId: '<TRANSACTION_ID>', // optional});
console.log(result);import { Client, TablesDB, Permission, Role } from '@owbase/node';
const client = new Client() .setEndpoint('https://cloud.owbase.dev/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setSession(''); // The user session to authenticate with
const tablesDB = new TablesDB(client);
const result = await tablesDB.updateRow({ databaseId: '<DATABASE_ID>', tableId: '<TABLE_ID>', rowId: '<ROW_ID>', data: { username: 'walter.obrien', fullName: "Walter O'Brien", age: 33, isAdmin: false, }, // optional permissions: [Permission.read(Role.any())], // optional transactionId: '<TRANSACTION_ID>', // optional});deleteRow
Sección titulada «deleteRow»Eliminar fila
DELETE /tablesdb/{databaseId}/tables/{tableId}/rows/{rowId} · página del método
SDK: @owbase/web y @owbase/node
Delete a row by its unique ID.
| Parámetro | Tipo | Obligatorio | Descripción |
|---|---|---|---|
databaseId |
string |
sí | Database ID. |
tableId |
string |
sí | Table ID. You can create a new table using the Database service server integration. |
rowId |
string |
sí | Row ID. |
transactionId |
string |
no | Transaction ID for staging the operation. |
Acceso: clave de API con el alcance rows.write (también acepta documents.write) o sesión del usuario, o incluso sin sesión (vale lo que permitan los permisos del recurso).
import { Client, TablesDB } from '@owbase/web';
const client = new Client() .setEndpoint('https://cloud.owbase.dev/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>'); // Your project ID
const tablesDB = new TablesDB(client);
const result = await tablesDB.deleteRow({ databaseId: '<DATABASE_ID>', tableId: '<TABLE_ID>', rowId: '<ROW_ID>', transactionId: '<TRANSACTION_ID>', // optional});
console.log(result);import { Client, TablesDB } from '@owbase/node';
const client = new Client() .setEndpoint('https://cloud.owbase.dev/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setSession(''); // The user session to authenticate with
const tablesDB = new TablesDB(client);
const result = await tablesDB.deleteRow({ databaseId: '<DATABASE_ID>', tableId: '<TABLE_ID>', rowId: '<ROW_ID>', transactionId: '<TRANSACTION_ID>', // optional});decrementRowColumn
Sección titulada «decrementRowColumn»Decrementar columna de la fila
PATCH /tablesdb/{databaseId}/tables/{tableId}/rows/{rowId}/{column}/decrement · página del método
SDK: @owbase/web y @owbase/node
Decrement a specific column of a row by a given value.
| Parámetro | Tipo | Obligatorio | Descripción |
|---|---|---|---|
databaseId |
string |
sí | Database ID. |
tableId |
string |
sí | Table ID. |
rowId |
string |
sí | Row ID. |
column |
string |
sí | Column key. |
value |
number |
no | Value to increment the column by. The value must be a number. |
min |
number |
no | Minimum value for the column. If the current value is lesser than this value, an exception will be thrown. |
transactionId |
string |
no | Transaction ID for staging the operation. |
Acceso: clave de API con el alcance rows.write (también acepta documents.write) o sesión del usuario, o incluso sin sesión (vale lo que permitan los permisos del recurso).
import { Client, TablesDB } from '@owbase/web';
const client = new Client() .setEndpoint('https://cloud.owbase.dev/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>'); // Your project ID
const tablesDB = new TablesDB(client);
const result = await tablesDB.decrementRowColumn({ databaseId: '<DATABASE_ID>', tableId: '<TABLE_ID>', rowId: '<ROW_ID>', column: '<COLUMN>', value: 1, // optional min: 0, // optional transactionId: '<TRANSACTION_ID>', // optional});
console.log(result);import { Client, TablesDB } from '@owbase/node';
const client = new Client() .setEndpoint('https://cloud.owbase.dev/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setSession(''); // The user session to authenticate with
const tablesDB = new TablesDB(client);
const result = await tablesDB.decrementRowColumn({ databaseId: '<DATABASE_ID>', tableId: '<TABLE_ID>', rowId: '<ROW_ID>', column: '<COLUMN>', value: 1, // optional min: 0, // optional transactionId: '<TRANSACTION_ID>', // optional});incrementRowColumn
Sección titulada «incrementRowColumn»Incrementar columna de la fila
PATCH /tablesdb/{databaseId}/tables/{tableId}/rows/{rowId}/{column}/increment · página del método
SDK: @owbase/web y @owbase/node
Increment a specific column of a row by a given value.
| Parámetro | Tipo | Obligatorio | Descripción |
|---|---|---|---|
databaseId |
string |
sí | Database ID. |
tableId |
string |
sí | Table ID. |
rowId |
string |
sí | Row ID. |
column |
string |
sí | Column key. |
value |
number |
no | Value to increment the column by. The value must be a number. |
max |
number |
no | Maximum value for the column. If the current value is greater than this value, an error will be thrown. |
transactionId |
string |
no | Transaction ID for staging the operation. |
Acceso: clave de API con el alcance rows.write (también acepta documents.write) o sesión del usuario, o incluso sin sesión (vale lo que permitan los permisos del recurso).
import { Client, TablesDB } from '@owbase/web';
const client = new Client() .setEndpoint('https://cloud.owbase.dev/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>'); // Your project ID
const tablesDB = new TablesDB(client);
const result = await tablesDB.incrementRowColumn({ databaseId: '<DATABASE_ID>', tableId: '<TABLE_ID>', rowId: '<ROW_ID>', column: '<COLUMN>', value: 1, // optional max: 100, // optional transactionId: '<TRANSACTION_ID>', // optional});
console.log(result);import { Client, TablesDB } from '@owbase/node';
const client = new Client() .setEndpoint('https://cloud.owbase.dev/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setSession(''); // The user session to authenticate with
const tablesDB = new TablesDB(client);
const result = await tablesDB.incrementRowColumn({ databaseId: '<DATABASE_ID>', tableId: '<TABLE_ID>', rowId: '<ROW_ID>', column: '<COLUMN>', value: 1, // optional max: 100, // optional transactionId: '<TRANSACTION_ID>', // optional});Las descripciones de esta página vienen de la especificación de la API del servidor (licencia BSD-3-Clause), en inglés, y los ejemplos vienen del generador de SDKs (licencia MIT). Los avisos completos están en el archivo NOTICE de los paquetes @owbase/web y @owbase/node.