ORM
  • Introduction
  • Basics of Usage
    • Connecting to the Database
    • Creating a Model
    • Simple Queries
  • Configuration
  • Core Features
    • Models
    • CRUD Operations (Create, Read, Update, Delete): examples
    • Relationships
    • Transactions
  • Advanced Usage
    • Data Definition Language
    • Indexes
    • Triggers
    • Caching
  • Examples and templates
  • Security
    • Query parameterization and protection against SQL injections
    • Logging
    • Monitoring
    • Sanitization
  • ORM-CLI
    • Installing
    • Commands and usage
  • System architecture and implementation
    • Support of various databases
      • Implementation using a pattern strategy
      • Implementation using generics
      • Implementation using metaprogramming
    • Decorators
    • Migrations
      • Assignment of id in Tables and Columns
      • Assigning IDs to indexes and triggers
      • Working with migrations in ORM-CLI
        • Implementation of a pattern command for migration
    • QueryBuilder
    • Caching
    • File structure
  • API
    • Decorators
      • Column
      • ComputedColumn
      • Index
      • ForeignKey
      • PrimaryGeneratedColumn
      • Relations
      • Table
      • Trigger
      • Types decorators
        • Integer
        • Numeric
        • Float
        • Boolean
        • String
    • DDL
    • QueryBuilder
    • Additional API
Powered by GitBook
On this page

Basics of Usage

Next, you will learn the basics of using my ORM

  • Connecting to the Database: To get started with the ORM, you need to configure the connection to the database using the appropriate parameters, such as the database type, host, port, user, password, and a list of models.

  • Creating a Model: Models in the ORM represent the structure of tables in the database, and creating a model involves defining fields using decorators. After that, the model is added to the database configuration for use in the ORM.

  • Simple Queries: The ORM allows you to execute queries to the database using a convenient interface. Examples provided demonstrate selecting all users, active users, or users with a specific user_id.

PreviousIntroductionNextConnecting to the Database

Last updated 9 months ago