-
Notifications
You must be signed in to change notification settings - Fork 28
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:
- A Table. This class defines the actual database table, including things like the version, the table name, and the build schema.
- A Row. This will be used when shaping your records.
- A Query. This is the class that you will instantiate when you wish to query your table, much like
WP_Query
. - 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