mirror of
https://github.com/kevin-DL/services.git
synced 2026-01-13 19:45:26 +00:00
Commit from GitHub Actions (Generate Clients & Examples)
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
const { DbService } = require("m3o/db");
|
||||
const { DbService } = require("micro-js-client/db");
|
||||
|
||||
// Count records in a table
|
||||
async function countEntriesInAtable() {
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
const { DbService } = require("m3o/db");
|
||||
const { DbService } = require("micro-js-client/db");
|
||||
|
||||
// Create a record in the database. Optionally include an "id" field otherwise it's set automatically.
|
||||
async function createArecord() {
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
const { DbService } = require("m3o/db");
|
||||
const { DbService } = require("micro-js-client/db");
|
||||
|
||||
// Delete a record in the database by id.
|
||||
async function deleteArecord() {
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
const { DbService } = require("m3o/db");
|
||||
const { DbService } = require("micro-js-client/db");
|
||||
|
||||
// Drop a table in the DB
|
||||
async function dropTable() {
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
const { DbService } = require("m3o/db");
|
||||
const { DbService } = require("micro-js-client/db");
|
||||
|
||||
// List tables in the DB
|
||||
async function listTables() {
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
const { DbService } = require("m3o/db");
|
||||
const { DbService } = require("micro-js-client/db");
|
||||
|
||||
// Read data from a table. Lookup can be by ID or via querying any field in the record.
|
||||
async function readRecords() {
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
const { DbService } = require("m3o/db");
|
||||
const { DbService } = require("micro-js-client/db");
|
||||
|
||||
// Rename a table
|
||||
async function renameTable() {
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
const { DbService } = require("m3o/db");
|
||||
const { DbService } = require("micro-js-client/db");
|
||||
|
||||
// Truncate the records in a table
|
||||
async function truncateTable() {
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
const { DbService } = require("m3o/db");
|
||||
const { DbService } = require("micro-js-client/db");
|
||||
|
||||
// Update a record in the database. Include an "id" in the record to update.
|
||||
async function updateArecord() {
|
||||
|
||||
Reference in New Issue
Block a user