Skip to content

Setting Up Your First Table

Alex Standiford edited this page Jan 18, 2021 · 1 revision

To set up a query-able database table with BerlinDB, you must create 4 PHP classes:

  1. A Table. This class defines the actual database table, including things like the version, the table name, and the build schema.
  2. A Row. This will be used when shaping your records.
  3. A Query. This is the class that you will instantiate when you wish to query your table, much like WP_Query.
  4. A Schema. This dictates your database schema, and is used by the Query class to determine how this table can be queried.
  • About BerlinDB
    • What is BerlinDB?
    • What is BerlinDB For?
    • What Problems Does BerlinDB Solve?
    • What Design Principles Underline BerlinDB?
    • How Does BerlinDB Accomplish its Goals?
  • Getting Started
    • Installing BerlinDB
    • Setting Up Your First Table
    • Writing a Query
    • Writing a Database Upgrade
    • Common Pitfalls
  • Frequently Asked Questions
  • Contribute
  • Examples
  • API Reference
    • Base
    • Column
    • Compare
    • Date
    • Meta
    • Query
    • Row
    • Schema
    • Table
Clone this wiki locally