Skip to main content

34 docs tagged with "data"

View all tags

Choosing and using a DB API

This page explains which Genesis database API to use in Genesis 10, which threads your code runs on, and how the API you choose uses database connections. For the operations each API offers, see Data access APIs (GPAL / Java).

Combobox

For server-backed option lists, use an options datasource with infinite-scroll. The combobox then filters on the server as the user types, which is required when only one page of options is loaded at a time.

Data access APIs

The data access APIs read and write your application's data, and let you subscribe to changes. There are two ways to do this:

Data model

The data model defines the tables and views that hold your application's data. Every Genesis application defines it once, in its *-dictionary.kts files, and the rest of the platform is driven from that definition.

Data model (GPAL / Java)

The data model is a fundamental part of any Genesis application. To create a data model, you define the entities (tables) that store the application's data. Each entity (table) consists of one or more attributes (fields) that contain the data.

Data utilities

The data utilities enable you to manage data stores, focusing on an in-memory database implementation. This module supports basic CRUD operations and offers seamless integration with TypeScript, providing strong type safety and event-driven features for enhanced interaction.

Data-mapping utilities

These utilities enable you to convert from one data representation to another within an application, with a particular focus on transforming server row data. They offer a systematic approach to managing data conversion between Data Transfer Objects (DTOs) and entities, ensuring consistency and maintainability.

Decorators utilities

You can use the decorator utilities to enhance component behaviour and development efficiency within TypeScript projects. Specifically, the renderOnChange decorator automates the re-rendering process of components upon property changes, using the Genesis framework for web development.

Environment utilities

The environment utilities enable you to manage and access environment-specific settings and variables. This enables you to configure application behaviour based on the current environment. This category includes utilities for identifying the development environment and securely accessing environment variables.

Error utilities

Error utilities provide a sophisticated system for managing errors within your application. Using TypeScript interfaces and types, they provide a structured approach to recording, accessing, and logging errors.

FDC3 Channel Event

This is a utility element that listens to an event on its parent element and broadcasts the event detail payload on an FDC3 channel.

FDC3 Listen Intent

FDC3 intent listener is a utility element that listens to any raised intents in FDC3 that are handled by the application.

FDC3 System Channel Listener

FDC3 channel system listener is a utility element that listens to the FDC3 system channel (also known as a user or color channel) for the specified context.

Resource utilities

Resource utilities facilitate the classification of resources into two distinct types: local and remote. This distinction is essential for handling resources differently based on their origin. It can be used to enhance the flexibility and robustness of resource management within your application.

Utility methods

The @genesislcap/foundation-utils package provides a collection of utility services and helpers designed to simplify common development tasks within Genesis applications. It aims to enhance productivity by offering reusable solutions for patterns and problems encountered across different projects.

Write operation listeners

A write operation listener is your own code that the database layer calls after each successful write, inside the same transaction as that write. Any writes the listener makes through the transaction object it receives commit or roll back together with the write that triggered it.