SchemaJS
  • Getting Started
    • Preview
    • Setting up your environment
    • Hello World
  • Fundamentals
    • TypeScript Support
    • Module Imports
    • Custom Queries
    • Hooks
  • Reference Guides
    • SchemaJS Global
      • Table
      • Column
      • DataTypes
      • QueryBuilder
      • query
      • rawInsert
      • insert
      • print
    • Examples
Powered by GitBook
On this page
  1. Reference Guides

SchemaJS Global

globalThis.SchemaJS is a global object in SchemaJS that serves as the primary interface for interacting with the database environment. It provides access to essential APIs and tools, such as the QueryBuilder, Table, and Column classes, as well as utility methods like query for executing database queries. By attaching these core functionalities to the global scope, SchemaJS allows developers to easily build, query, and manage database tables and schemas within any JavaScript environment, ensuring that the database context and operations are accessible throughout the application.

const { Table, Column, .. } = SchemaJS;
PreviousHooksNextTable

Last updated 7 months ago