Download the PHP package fyre/schema without Composer
On this page you can find all versions of the php package fyre/schema. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Informations about the package schema
FyreSchema
FyreSchema is a free, open-source database schema library for PHP.
Table Of Contents
- Installation
- Basic Usage
- Methods
- Schemas
- Table Schemas
Installation
Using Composer
In PHP:
Basic Usage
$container
is a Container.
Autoloading
It is recommended to bind the SchemaRegistry to the Container as a singleton.
Any dependencies will be injected automatically when loading from the Container.
Methods
Map
Map a Connection class to a Schema handler.
$connectionClass
is a string representing the Connection class name.$schemaClass
is a string representing the Schema class name.
Use
Load the shared Connection.
$connection
is a Connection.
Container.
Schemas
Clear
Clear data from the cache.
Describe
Get the TableSchema for a table.
$name
is a string representing the table name.
Container.
Get Connection
Get the Connection.
Get Database Name
Get the database name.
Has Table
Determine whether the schema has a table.
$name
is a string representing the table name.
Table
Get the data for a table.
$name
is a string representing the table name.
Table Names
Get the names of all schema tables.
Tables
Get the data for all schema tables.
Table Schemas
Clear
Clear data from the cache.
Column
Get the data for a table column.
$name
is a string representing the column name.
Column Names
Get the names of all table columns.
Columns
Get the data for all table columns.
Default Value
Get the default value for a column.
$name
is a string representing the column name.
This method will evaluate expression values (eg. current_timestamp()).
Foreign Key
Get the data for a table foreign key.
$name
is a string representing the foreign key name.
Foreign Keys
Get the data for all table foreign keys.
Get Schema
Get the Schema.
Get Table Name
Get the table name.
Get Type
Get the Type parser for a column.
$name
is a string representing the column name.
Has Auto Increment
Determine whether the table has an auto increment column.
Has Column
Determine whether the table has a column.
$name
is a string representing the column name.
Has Foreign Key
Determine whether the table has a foreign key.
$name
is a string representing the foreign key name.
Has Index
Determine whether the table has an index.
$name
is a string representing the index name.
Index
Get the data for a table index.
$name
is a string representing the index name.
Indexes
Get the data for all table indexes.
Is Nullable
Determine whether a table column is nullable.
$name
is a string representing the column name.
Primary Key
Get the primary key for the table.
All versions of schema with dependencies
fyre/container Version ^1.0
fyre/db Version ^6.0
fyre/typeparser Version ^5.0