PHP+SQL 6. YAML (Yet Another Markup Language / YAML Ain't Markup Language) ORM (Object-Relational Mapper) OE NIK, 2013.

Slides:



Advertisements
Similar presentations
DB Relay An Introduction. INSPIRATION Database access is WAY TOO HARD The crux.
Advertisements

December, 2008 CS-591 Securing Servers: International Capture the Flag 1 Nadine Sundquist CS591-F2008 University of Colorado, Colorado Springs Dr. C. Edward.
Juozas Kaziukėnas /
.NET Database Technologies: Open-Source Frameworks.
Web Applications Development Using Coldbox Platform Eddie Johnston.
V 1.0 OE NIK, PHP+SQL 8. PHP + MySQL PHPMyAdmin Practice: Vote system.
Introduction to Backend James Kahng. Install Node.js.
Hibernate 1. Introduction ORM goal: Take advantage of the things SQL databases do well, without leaving the Java language of objects and classes. ORM.
Fast Track to ColdFusion 9. Getting Started with ColdFusion Understanding Dynamic Web Pages ColdFusion Benchmark Introducing the ColdFusion Language Introducing.
15-Jul-15 JSON. JSON example “JSON” stands for “JavaScript Object Notation” Despite the name, JSON is a (mostly) language-independent way of specifying.
Web based testing: Chucklist and Selenium
Session-01. Hibernate Framework ? Why we use Hibernate ?
Pro Exchange SPAM Filter An Exchange 2000 based spam filtering solution.
DR. MOHAMMAD IQBAL THANKS TO ADITYA SENGUPTA Comparing Web Frameworks.
Google App Engine Google APIs OAuth Facebook Graph API
Phil Brewster  One of the first steps – identify the proper data types  Decide how data (in columns) should be stored and used.
RUBY ON RAILS It’s so rad. What we’ll cover  What is Ruby?  What is RoR?  Why RoR?  Developing with RoR  Deployment  Demo  Questions.
Python for Oracle Geeks or, “Just a wafer-thin slice of Python” or, “Python as a Second Language (PSL)” Catherine Devlin IntelliTech Systems.
Ruby on Rails CSCI 6314 David Gaspar Jennifer Garcia Avila.
S YMFONY ORM - D OCTRINE Sayed Ahmed B.Sc. Eng. in Computer Science & Engineering M. Sc. in Computer Science Exploring Computing for 14+ years
Entity Framework Code First End to End
Cacti. Cacti is a complete network graphing solution designed to harness the power of RRDTool's data storage and graphing functionality. Cacti provides.
Sayed Ahmed Computer Engineering, BUET, Bangladesh MSC, Computer Science, U of Manitoba, Canada
DB Libraries: An Alternative to DBMS By Matt Stegman November 22, 2005.
NHibernate in Action Web Seminar at UMLChina By Pierre Henri Kuaté 2008/08/27
Lecture 19 Web Application Frameworks Boriana Koleva Room: C54
Learningcomputer.com SQL Server 2008 Configuration Manager.
Symfony2 - Step-by-step Portfolio 3.0 ◦ Symfony 2.0 ◦ MongoDB ◦ jQuery UI ◦ RESTfull services.
Symfony web development framework is used to develop rapid, complex and large scale web applications faster and in an effective way.
Who uses it? MichaelMoore.com What's it all about? Rapid Development Clean, Pragmatic Design.
MVC Concepts Basics Model-View-Controller (MVC) Concepts for Web Developers SoftUni Team Technical Trainers Software University
Testing Carol Wolf Computer Science. Testing built into Rails  Rails comes with three databases.  development  test  production  The test database.
Facebook API Kelly Orser. Client Libraries Client libraries will simplify the calls to the platform by reducing the amount of code you have to write.
Fall CIS 764 Database Systems Engineering L18.2 : Object Relational Mapping … ….Object persistence.
Cindy Royal Texas State U PROGRAMMING FOR COMMUNICATORS
Don’t Reinvent the Wheel Zach Boerger February 2012.
Fundamentals of MyBATIS
OVERVIEW AND PARSING JSON. What is JSON JavaScript Object Notation Used to format data Commonly used in Web as a vehicle to describe data being sent between.
1 Rails for the Ruby-Impaired John Paul Ashenfelter CTO/Transitionpoint.
Doctrine The PHP ORM SoftUni Team Technical Trainers Software University
Fall CIS 764 Database Systems Engineering L11: Object Relational Mapping … (a) ORM, Object persistence (b) Pets sequence.
COMP 430 Intro. to Database Systems SQL from application code.
Google App Engine. Contents Overview Getting Started Databases Inter-app Communications Modes.
Dive into web development
By Ganesan Alagu Ganesh Feb 26, 2008
DI (Dependency Injection) / IOC (Inversion Of Control)
PHP + MySQL PDO PHPMyAdmin Practice: Vote system
PHP + MySQL PHPMyAdmin Practice: Vote system
What is Laravel ? By Georgi Genov.
Yii.
Parsing JSON JSON.NET, LINQ-to-JSON
Platform as a Service (PaaS)
Introducing Symfony Composer, Bundles, Symfony Framework Georgi Gyurov
Operating & Configuring a Cisco IOS Device
By Ganesan Alagu Ganesh Feb 21, 2008
MVC Architecture, Symfony Framework for PHP Web Apps
A very brief introduction
AJAX and REST.
SQL Server + PHP: What’s New
Microsoft Connect /2/2018 2:41 PM
Entity Framework By: Casey Griffin.
DBMAN 8 Inheritance Modeling in Relational Databases
Symfony Console Services Events Session Georgi Gyurov Symfony
CSV Classic format Comma Separated Variables (CSV). Easily parsed.
Soo Park and Janine Aquino
DBMAN 8 Database Access Layers The ORM Pattern
The Model Layer What is Model?
CMPT 354: Database System I
Department of Computer Science Cal State East Bay, Hayward, CA
TN19-TCI: Integration and API management using TIBCO Cloud™ Integration
Presentation transcript:

PHP+SQL 6. YAML (Yet Another Markup Language / YAML Ain't Markup Language) ORM (Object-Relational Mapper) OE NIK, 2013

PHP+SQL 6. YAML ORM OE NIK, 2013

Main feature: indentation YAML 1.2 is a superset of JSON „YAML is a human friendly data serialization standard for all programming languages” Main feature: indentation YAML 1.2 is a superset of JSON Less popular than JSON/XML, but it is used in some projects ROS: message and service descriptors Symfony: configuration A kép a PPT gyakorlatból származik © Szénási Sándor  OE NIK, 2013

config.yml (excerpt) # separated config_dev.yml and config_prod.yml imports: - { resource: parameters.yml } - { resource: security.yml } - { resource: services.yml } [...] doctrine: dbal: driver: pdo_mysql host: "%database_host%" port: "%database_port%" dbname: "%database_name%" user: "%database_user%" password: "%database_password%" charset: UTF8 OE NIK, 2013

config.yml (excerpt) framework: secret: "%secret%“ router: resource: "%kernel.root_dir%/config/routing.yml" strict_requirements: ~ form: ~ csrf_protection: ~ validation: { enable_annotations: true } templating: engines: ['twig'] session: handler_id: session.handler.native_file save_path: "%kernel.root_dir%/../var/sessions/%kernel.environment%" assets: ~ php_errors: log: true OE NIK, 2013

routing.yml, parameters.yml app: resource: "@AppBundle/Controller/" type: annotation parameters: database_host: 127.0.0.1 database_port: null database_name: symfony database_user: root database_password: null mailer_transport: smtp mailer_host: 127.0.0.1 mailer_user: null mailer_password: null secret: 90b1369cb9c394850af998b3776090435216f8da A kép a PPT gyakorlatból származik © Szénási Sándor  OE NIK, 2013

PHP+SQL 6. YAML ORM OE NIK, 2013

PDO OE NIK, 2013

ORM C#: Entity Framework, Java: Hibernate/JPA Python: Django ORM, SQLAlchemy Ruby on Rails PHP: Eloquent, Propel, Doctrine OE NIK, 2013

Active Record / Data Mapper OE NIK, 2013

Doctrine ORM layers Data mapper with lazy loading capabilities PDO: SQL data access (commands, results, parameters) DBAL: Dialect-independent data access Could be used independently in a project ORM: The impression of working with an in-memory data structure represented as an object graph Query-less application DQL, if needed DB/Class mapping via YAML (or annotations) OE NIK, 2013

config.yml, services.yml parameters: pageprefix: mycars services: app.tblprefix_subscriber: class: AppBundle\Event\TablePrefixSubscriber arguments: [ "%pageprefix%" ] tags: - { name: doctrine.event_subscriber } OE NIK, 2013

Installation / usage Doctrine: installed in symfony by default Data fixtures: composer require --dev doctrine/doctrine-fixtures-bundle doctrine:generate:entities AppBundle/Entity/XXX doctrine:schema:drop --force doctrine:database:create doctrine:schema:update --force doctrine:fixtures:load --no-interaction cache:clear OE NIK, 2013

OE NIK, 2013

OE NIK, 2013