SlideShare uma empresa Scribd logo
1 de 13
Baixar para ler offline
EMBARCADERO	
  TECHNOLOGIESEMBARCADERO	
  TECHNOLOGIES
FireDAC:	
  Local	
  SQL
Jim	
  McKeeth	
  
Lead	
  World	
  Wide	
  Developer	
  Evangelist	
  /	
  Engineer	
  
jim.mckeeth@embarcadero.com	
  
@JimMcKeeth	
  /	
  JimMcKeeth	
  /	
  Delphi.org	
  
March	
  19th,	
  2015
EMBARCADERO	
  TECHNOLOGIES
This	
  Skill	
  Sprint	
  Works	
  with	
  .	
  .	
  .
• Windows	
  
• Mac	
  OS	
  X	
  
• Android	
  
• iOS	
  
• RAD	
  Studio	
  
• Appmethod	
  
• Object	
  Pascal	
  
• C++
• RAD	
  Studio	
  XE7	
  DocWiki	
  
– http://embt.co/latestdocwiki	
  	
  
– http://docwiki.embarcadero.com/RADStudio/en/	
  	
  
• Appmethod	
  September	
  2014	
  DocWiki	
  
– http://embt.co/AppmethodTopics	
  	
  
– http://docwiki.appmethod.com/appmethod/topics/en/	
  
• Appmethod	
  supports	
  the	
  FireMonkey	
  
framework	
  on	
  all	
  4	
  platforms	
  while	
  RAD	
  Studio,	
  
Delphi	
  and	
  C++Builder	
  also	
  support	
  VCL	
  on	
  
Windows.	
  Contact	
  sales	
  with	
  any	
  questions!
EMBARCADERO	
  TECHNOLOGIES
FireDAC’s	
  TFDLocalSQL	
  for	
  Local	
  SQL
• Run	
  SQL	
  queries	
  locally	
  on	
  TDataSet	
  descendants.	
  
• Works	
  for	
  any	
  TDataSet	
  descendants.	
  
• Simplify	
  code	
  with	
  SQL	
  instead	
  of	
  spinning	
  through	
  
records.	
  
• Join	
  queries	
  between	
  heterogeneous	
  data	
  sources.	
  
• Supports	
  the	
  INSERT/UPDATE/DELETE	
  SQL	
  commands	
  
as	
  transactions	
  and	
  savepoints.
EMBARCADERO	
  TECHNOLOGIES
Some	
  Possible	
  Uses
• Heterogeneous	
  queries	
  (Queryable	
  datasets	
  have	
  result	
  sets	
  
from	
  different	
  DBs).	
  
• In-­‐memory	
  database	
  (TFDMemTables	
  serving	
  as	
  the	
  datasets).	
  
• Advanced	
  offline	
  mode	
  (While	
  main	
  DB	
  is	
  not	
  accessible,	
  an	
  
application	
  is	
  still	
  able	
  to	
  perform	
  the	
  SQL	
  queries	
  locally.)	
  
• Advanced	
  DataSnap	
  client	
  (the	
  data	
  delivered	
  by	
  the	
  DataSnap	
  
driver	
  to	
  the	
  client	
  can	
  be	
  queried	
  locally).	
  
• Simplified	
  migration.	
  (Use	
  3rd-­‐party	
  TDataSet	
  objects	
  in	
  an	
  
application,	
  and	
  use	
  FireDAC	
  API	
  to	
  work	
  with	
  these	
  data	
  
sources.)4
EMBARCADERO	
  TECHNOLOGIES
Unsupported	
  SQL	
  and	
  Alternatives
• ALTER	
  TABLE	
  ...	
  ADD	
  COLUMN	
  -­‐	
  Instead,	
  change	
  the	
  
structure	
  via	
  the	
  DataSet.	
  
• DROP	
  TABLE	
  -­‐	
  When	
  a	
  dataset	
  is	
  unlinked	
  from	
  the	
  Local	
  
SQL	
  engine,	
  it	
  is	
  automatically	
  dropped	
  (not	
  freed).	
  
• CREATE	
  INDEX	
  /	
  DROP	
  INDEX	
  -­‐	
  Instead	
  of	
  the	
  SQL	
  
indexes,	
  use	
  the	
  DataSet	
  indexes.	
  
• CREATE	
  TRIGGER	
  /	
  DROP	
  TRIGGER	
  -­‐	
  Instead	
  of	
  the	
  
triggers,	
  use	
  the	
  DataSet	
  events.
5
EMBARCADERO	
  TECHNOLOGIES
Local	
  SQL	
  Components
6
TDataSet	
  
Descendant
TDataSet	
  
Descendant
TDataSet	
  
Descendant
TFDConnection	
  
w/	
  SQLite	
  driver
TFDGUIxWaitCursor	
  
(Wait	
  Cursor)
TFDLocalSQL
TFDQuery	
  
or	
  TFDCommand
Connection
DataSets
Activate	
  2nd
Activate	
  1st
Activate	
  3rd
EMBARCADERO	
  TECHNOLOGIES
DEMONSTRATION
TFDLocalSQL
EMBARCADERO	
  TECHNOLOGIES
TFDLocalSQL	
  Summary
• Works	
  with	
  any	
  TDataSet	
  descendent.	
  
• Supports	
  DML/CRUD,	
  but	
  no	
  DDL.	
  
• Supports	
  Transactions	
  and	
  SavePoints.	
  
• Uses	
  SQLite	
  internally.	
  
• Query	
  across	
  multiple	
  heterogeneous	
  DataSets.
EMBARCADERO	
  TECHNOLOGIES
TFDLocalSQL	
  Resources
• Samples	
  
– C:UsersPublicDocumentsEmbarcaderoStudio15.0Samples

Object	
  PascalDatabaseFireDACSamplesComp	
  LayerTFDLocalSQL	
  
• DocWiki	
  
– http://docwiki.embarcadero.com/RADStudio/en/Local_SQL_(FireDAC)	
  	
  
– http://docwiki.embarcadero.com/Libraries/en/FireDAC.Phys.SQLiteVDataSet.TFDLocalSQL	
  	
  
• Blog	
  Posts	
  
– Dmitry	
  Arefiev	
  
– FireDAC	
  Local	
  SQL	
  video:	
  https://youtu.be/QA-­‐xhfYoEq4	
  
– CodeRage	
  9:	
  FireDAC	
  Tips,	
  Tricks	
  and	
  News:	
  http://youtu.be/gljfudAKlTI	
  	
  	
  
– Jens	
  Fudge’s	
  Local	
  SQL	
  video:	
  https://youtu.be/fJsmKiUz6VU	
  	
  
– All	
  these	
  links	
  and	
  more:	
  http://delphi.org/?p=1951	
  
https://commons.wikimedia.org/wiki/File:Iceberg.jpg	
  
EMBARCADERO	
  TECHNOLOGIES
Next	
  Time….
• Preview:	
  Box2D	
  
• Sneak	
  peak	
  from	
  a	
  future	
  release	
  
• Cross	
  platform	
  2D	
  physics	
  engine	
  
• Tuesday	
  the	
  24th	
  of	
  March	
  
– 6AM	
  San	
  Francisco	
  /	
  9AM	
  New	
  York	
  /	
  1PM	
  London	
  /	
  2PM	
  Milan	
  /	
  13	
  UTC	
  
– 11AM	
  San	
  Francisco	
  /	
  2PM	
  New	
  York	
  /	
  6PM	
  London	
  /	
  7PM	
  Milan	
  /	
  18	
  UTC	
  
– 5PM	
  San	
  Francisco	
  /	
  Wed	
  9AM	
  Tokyo	
  /	
  Wed	
  11AM	
  Sydney	
  /	
  0	
  UTC
Sign-­‐up:	
  http://www.embarcadero.com/landing-­‐pages/skill-­‐sprints	
  
EMBARCADERO	
  TECHNOLOGIES
Next	
  Time….
• FireDAC:	
  BDE	
  to	
  InterBase	
  Migration	
  
• Paradox	
  and	
  BDE	
  are	
  Deprecated	
  
• Take	
  advantage	
  of	
  new	
  FireDAC	
  and	
  InterBase	
  features	
  
• Thursday	
  the	
  26th	
  of	
  March	
  
– 6AM	
  San	
  Francisco	
  /	
  9AM	
  New	
  York	
  /	
  1PM	
  London	
  /	
  2PM	
  Milan	
  /	
  13	
  UTC	
  
– 11AM	
  San	
  Francisco	
  /	
  2PM	
  New	
  York	
  /	
  6PM	
  London	
  /	
  7PM	
  Milan	
  /	
  18	
  UTC	
  
– 5PM	
  San	
  Francisco	
  /	
  Fri	
  9AM	
  Tokyo	
  /	
  Fri	
  11AM	
  Sydney	
  /	
  0	
  UTC
Sign-­‐up:	
  http://www.embarcadero.com/landing-­‐pages/skill-­‐sprints	
  	
  
(2nd	
  sign-­‐up	
  on	
  the	
  left)
EMBARCADERO	
  TECHNOLOGIES
RAD	
  Studio	
  Special	
  Offers
More	
  details	
  http://www.embarcadero.com/radoffer
March	
  31,	
  2015
All	
  expire
EMBARCADERO	
  TECHNOLOGIESEMBARCADERO	
  TECHNOLOGIES
Q	
  &	
  A	
  
@EmbarcaderoTech
Special	
  offers:	
  http://embarcadero.com/radoffer/	
  

Mais conteúdo relacionado

Destaque

Материалы выступления В. Демина
Материалы выступления В. Демина Материалы выступления В. Демина
Материалы выступления В. Демина AcademiaSpb
 
Продвижение на App Store. 10 шагов к успеху (Nevosoft)
Продвижение на App Store. 10 шагов к успеху (Nevosoft)Продвижение на App Store. 10 шагов к успеху (Nevosoft)
Продвижение на App Store. 10 шагов к успеху (Nevosoft)Julia Lebedeva
 
Cac loai bui
Cac loai buiCac loai bui
Cac loai buitho hoang
 
Nd pharma & biotech demineralized bone matrix bilingual edition
Nd pharma & biotech demineralized bone matrix bilingual editionNd pharma & biotech demineralized bone matrix bilingual edition
Nd pharma & biotech demineralized bone matrix bilingual editionndpharmabiotech
 
Getting Started with WordPress JSON REST API
Getting Started with WordPress JSON REST APIGetting Started with WordPress JSON REST API
Getting Started with WordPress JSON REST APIHishikawa Takuro
 
It's not just about Apps
It's not just about AppsIt's not just about Apps
It's not just about AppsSaul Cozens
 
Show bai tan go cho em
Show bai tan go cho emShow bai tan go cho em
Show bai tan go cho emPham Anhtuan
 
Php Conference 2012 concrete5
Php Conference 2012 concrete5Php Conference 2012 concrete5
Php Conference 2012 concrete5Hishikawa Takuro
 
Материалы выступления В.М. Демина
Материалы выступления В.М. Демина Материалы выступления В.М. Демина
Материалы выступления В.М. Демина AcademiaSpb
 

Destaque (15)

Материалы выступления В. Демина
Материалы выступления В. Демина Материалы выступления В. Демина
Материалы выступления В. Демина
 
Продвижение на App Store. 10 шагов к успеху (Nevosoft)
Продвижение на App Store. 10 шагов к успеху (Nevosoft)Продвижение на App Store. 10 шагов к успеху (Nevosoft)
Продвижение на App Store. 10 шагов к успеху (Nevosoft)
 
Young1928
Young1928Young1928
Young1928
 
O ocole de sabarís
O ocole de sabarísO ocole de sabarís
O ocole de sabarís
 
Cac loai bui
Cac loai buiCac loai bui
Cac loai bui
 
Nd pharma & biotech demineralized bone matrix bilingual edition
Nd pharma & biotech demineralized bone matrix bilingual editionNd pharma & biotech demineralized bone matrix bilingual edition
Nd pharma & biotech demineralized bone matrix bilingual edition
 
Getting Started with WordPress JSON REST API
Getting Started with WordPress JSON REST APIGetting Started with WordPress JSON REST API
Getting Started with WordPress JSON REST API
 
Shanghai Business Trip
Shanghai Business TripShanghai Business Trip
Shanghai Business Trip
 
It's not just about Apps
It's not just about AppsIt's not just about Apps
It's not just about Apps
 
Kaldor1955
Kaldor1955Kaldor1955
Kaldor1955
 
Show bai tan go cho em
Show bai tan go cho emShow bai tan go cho em
Show bai tan go cho em
 
Eindassessment
EindassessmentEindassessment
Eindassessment
 
Php Conference 2012 concrete5
Php Conference 2012 concrete5Php Conference 2012 concrete5
Php Conference 2012 concrete5
 
L'aspetto sociale del p2p
L'aspetto sociale del p2pL'aspetto sociale del p2p
L'aspetto sociale del p2p
 
Материалы выступления В.М. Демина
Материалы выступления В.М. Демина Материалы выступления В.М. Демина
Материалы выступления В.М. Демина
 

Mais de Jim McKeeth

Smart Contracts - The Blockchain Beyond Bitcoin
Smart Contracts - The Blockchain Beyond BitcoinSmart Contracts - The Blockchain Beyond Bitcoin
Smart Contracts - The Blockchain Beyond BitcoinJim McKeeth
 
Rapid Prototyping Mobile IoT Projects with Arduino and Open Hardware
Rapid Prototyping Mobile IoT Projects with Arduino and Open HardwareRapid Prototyping Mobile IoT Projects with Arduino and Open Hardware
Rapid Prototyping Mobile IoT Projects with Arduino and Open HardwareJim McKeeth
 
Day 3 of C++ Boot Camp - C++11 Language Deep Dive
Day 3 of C++ Boot Camp - C++11 Language Deep DiveDay 3 of C++ Boot Camp - C++11 Language Deep Dive
Day 3 of C++ Boot Camp - C++11 Language Deep DiveJim McKeeth
 
Day 5 of C++ Boot Camp - Stepping Up to Mobile
Day 5 of C++ Boot Camp - Stepping Up to MobileDay 5 of C++ Boot Camp - Stepping Up to Mobile
Day 5 of C++ Boot Camp - Stepping Up to MobileJim McKeeth
 
Android Services Skill Sprint
Android Services Skill SprintAndroid Services Skill Sprint
Android Services Skill SprintJim McKeeth
 
Building a Thought Controlled Drone
Building a Thought Controlled DroneBuilding a Thought Controlled Drone
Building a Thought Controlled DroneJim McKeeth
 
Embarcadero's Connected Development
Embarcadero's Connected DevelopmentEmbarcadero's Connected Development
Embarcadero's Connected DevelopmentJim McKeeth
 
The Internet of Things and You - A Developers Guide to IoT
The Internet of Things and You - A Developers Guide to IoTThe Internet of Things and You - A Developers Guide to IoT
The Internet of Things and You - A Developers Guide to IoTJim McKeeth
 
Accessing REST & Backend as a Service (BaaS) - Developer Direct - Mobile Summ...
Accessing REST & Backend as a Service (BaaS) - Developer Direct - Mobile Summ...Accessing REST & Backend as a Service (BaaS) - Developer Direct - Mobile Summ...
Accessing REST & Backend as a Service (BaaS) - Developer Direct - Mobile Summ...Jim McKeeth
 
Android voice skill sprint
Android voice skill sprintAndroid voice skill sprint
Android voice skill sprintJim McKeeth
 
Exploring the Brain Computer Interface
Exploring the Brain Computer InterfaceExploring the Brain Computer Interface
Exploring the Brain Computer InterfaceJim McKeeth
 
Introduction to Android Development with Java
Introduction to Android Development with JavaIntroduction to Android Development with Java
Introduction to Android Development with JavaJim McKeeth
 
Hacking iBooks and ePub3 with JavaScript!
Hacking iBooks and ePub3 with JavaScript!Hacking iBooks and ePub3 with JavaScript!
Hacking iBooks and ePub3 with JavaScript!Jim McKeeth
 
Inventing merit badge
Inventing merit badgeInventing merit badge
Inventing merit badgeJim McKeeth
 

Mais de Jim McKeeth (14)

Smart Contracts - The Blockchain Beyond Bitcoin
Smart Contracts - The Blockchain Beyond BitcoinSmart Contracts - The Blockchain Beyond Bitcoin
Smart Contracts - The Blockchain Beyond Bitcoin
 
Rapid Prototyping Mobile IoT Projects with Arduino and Open Hardware
Rapid Prototyping Mobile IoT Projects with Arduino and Open HardwareRapid Prototyping Mobile IoT Projects with Arduino and Open Hardware
Rapid Prototyping Mobile IoT Projects with Arduino and Open Hardware
 
Day 3 of C++ Boot Camp - C++11 Language Deep Dive
Day 3 of C++ Boot Camp - C++11 Language Deep DiveDay 3 of C++ Boot Camp - C++11 Language Deep Dive
Day 3 of C++ Boot Camp - C++11 Language Deep Dive
 
Day 5 of C++ Boot Camp - Stepping Up to Mobile
Day 5 of C++ Boot Camp - Stepping Up to MobileDay 5 of C++ Boot Camp - Stepping Up to Mobile
Day 5 of C++ Boot Camp - Stepping Up to Mobile
 
Android Services Skill Sprint
Android Services Skill SprintAndroid Services Skill Sprint
Android Services Skill Sprint
 
Building a Thought Controlled Drone
Building a Thought Controlled DroneBuilding a Thought Controlled Drone
Building a Thought Controlled Drone
 
Embarcadero's Connected Development
Embarcadero's Connected DevelopmentEmbarcadero's Connected Development
Embarcadero's Connected Development
 
The Internet of Things and You - A Developers Guide to IoT
The Internet of Things and You - A Developers Guide to IoTThe Internet of Things and You - A Developers Guide to IoT
The Internet of Things and You - A Developers Guide to IoT
 
Accessing REST & Backend as a Service (BaaS) - Developer Direct - Mobile Summ...
Accessing REST & Backend as a Service (BaaS) - Developer Direct - Mobile Summ...Accessing REST & Backend as a Service (BaaS) - Developer Direct - Mobile Summ...
Accessing REST & Backend as a Service (BaaS) - Developer Direct - Mobile Summ...
 
Android voice skill sprint
Android voice skill sprintAndroid voice skill sprint
Android voice skill sprint
 
Exploring the Brain Computer Interface
Exploring the Brain Computer InterfaceExploring the Brain Computer Interface
Exploring the Brain Computer Interface
 
Introduction to Android Development with Java
Introduction to Android Development with JavaIntroduction to Android Development with Java
Introduction to Android Development with Java
 
Hacking iBooks and ePub3 with JavaScript!
Hacking iBooks and ePub3 with JavaScript!Hacking iBooks and ePub3 with JavaScript!
Hacking iBooks and ePub3 with JavaScript!
 
Inventing merit badge
Inventing merit badgeInventing merit badge
Inventing merit badge
 

Último

Arizona Broadband Policy Past, Present, and Future Presentation 3/25/24
Arizona Broadband Policy Past, Present, and Future Presentation 3/25/24Arizona Broadband Policy Past, Present, and Future Presentation 3/25/24
Arizona Broadband Policy Past, Present, and Future Presentation 3/25/24Mark Goldstein
 
Rise of the Machines: Known As Drones...
Rise of the Machines: Known As Drones...Rise of the Machines: Known As Drones...
Rise of the Machines: Known As Drones...Rick Flair
 
The Role of FIDO in a Cyber Secure Netherlands: FIDO Paris Seminar.pptx
The Role of FIDO in a Cyber Secure Netherlands: FIDO Paris Seminar.pptxThe Role of FIDO in a Cyber Secure Netherlands: FIDO Paris Seminar.pptx
The Role of FIDO in a Cyber Secure Netherlands: FIDO Paris Seminar.pptxLoriGlavin3
 
[Webinar] SpiraTest - Setting New Standards in Quality Assurance
[Webinar] SpiraTest - Setting New Standards in Quality Assurance[Webinar] SpiraTest - Setting New Standards in Quality Assurance
[Webinar] SpiraTest - Setting New Standards in Quality AssuranceInflectra
 
The State of Passkeys with FIDO Alliance.pptx
The State of Passkeys with FIDO Alliance.pptxThe State of Passkeys with FIDO Alliance.pptx
The State of Passkeys with FIDO Alliance.pptxLoriGlavin3
 
Potential of AI (Generative AI) in Business: Learnings and Insights
Potential of AI (Generative AI) in Business: Learnings and InsightsPotential of AI (Generative AI) in Business: Learnings and Insights
Potential of AI (Generative AI) in Business: Learnings and InsightsRavi Sanghani
 
Transcript: New from BookNet Canada for 2024: Loan Stars - Tech Forum 2024
Transcript: New from BookNet Canada for 2024: Loan Stars - Tech Forum 2024Transcript: New from BookNet Canada for 2024: Loan Stars - Tech Forum 2024
Transcript: New from BookNet Canada for 2024: Loan Stars - Tech Forum 2024BookNet Canada
 
So einfach geht modernes Roaming fuer Notes und Nomad.pdf
So einfach geht modernes Roaming fuer Notes und Nomad.pdfSo einfach geht modernes Roaming fuer Notes und Nomad.pdf
So einfach geht modernes Roaming fuer Notes und Nomad.pdfpanagenda
 
Moving Beyond Passwords: FIDO Paris Seminar.pdf
Moving Beyond Passwords: FIDO Paris Seminar.pdfMoving Beyond Passwords: FIDO Paris Seminar.pdf
Moving Beyond Passwords: FIDO Paris Seminar.pdfLoriGlavin3
 
Use of FIDO in the Payments and Identity Landscape: FIDO Paris Seminar.pptx
Use of FIDO in the Payments and Identity Landscape: FIDO Paris Seminar.pptxUse of FIDO in the Payments and Identity Landscape: FIDO Paris Seminar.pptx
Use of FIDO in the Payments and Identity Landscape: FIDO Paris Seminar.pptxLoriGlavin3
 
Genislab builds better products and faster go-to-market with Lean project man...
Genislab builds better products and faster go-to-market with Lean project man...Genislab builds better products and faster go-to-market with Lean project man...
Genislab builds better products and faster go-to-market with Lean project man...Farhan Tariq
 
Generative AI for Technical Writer or Information Developers
Generative AI for Technical Writer or Information DevelopersGenerative AI for Technical Writer or Information Developers
Generative AI for Technical Writer or Information DevelopersRaghuram Pandurangan
 
A Journey Into the Emotions of Software Developers
A Journey Into the Emotions of Software DevelopersA Journey Into the Emotions of Software Developers
A Journey Into the Emotions of Software DevelopersNicole Novielli
 
From Family Reminiscence to Scholarly Archive .
From Family Reminiscence to Scholarly Archive .From Family Reminiscence to Scholarly Archive .
From Family Reminiscence to Scholarly Archive .Alan Dix
 
The Ultimate Guide to Choosing WordPress Pros and Cons
The Ultimate Guide to Choosing WordPress Pros and ConsThe Ultimate Guide to Choosing WordPress Pros and Cons
The Ultimate Guide to Choosing WordPress Pros and ConsPixlogix Infotech
 
How to Effectively Monitor SD-WAN and SASE Environments with ThousandEyes
How to Effectively Monitor SD-WAN and SASE Environments with ThousandEyesHow to Effectively Monitor SD-WAN and SASE Environments with ThousandEyes
How to Effectively Monitor SD-WAN and SASE Environments with ThousandEyesThousandEyes
 
2024 April Patch Tuesday
2024 April Patch Tuesday2024 April Patch Tuesday
2024 April Patch TuesdayIvanti
 
Merck Moving Beyond Passwords: FIDO Paris Seminar.pptx
Merck Moving Beyond Passwords: FIDO Paris Seminar.pptxMerck Moving Beyond Passwords: FIDO Paris Seminar.pptx
Merck Moving Beyond Passwords: FIDO Paris Seminar.pptxLoriGlavin3
 
A Framework for Development in the AI Age
A Framework for Development in the AI AgeA Framework for Development in the AI Age
A Framework for Development in the AI AgeCprime
 
Digital Identity is Under Attack: FIDO Paris Seminar.pptx
Digital Identity is Under Attack: FIDO Paris Seminar.pptxDigital Identity is Under Attack: FIDO Paris Seminar.pptx
Digital Identity is Under Attack: FIDO Paris Seminar.pptxLoriGlavin3
 

Último (20)

Arizona Broadband Policy Past, Present, and Future Presentation 3/25/24
Arizona Broadband Policy Past, Present, and Future Presentation 3/25/24Arizona Broadband Policy Past, Present, and Future Presentation 3/25/24
Arizona Broadband Policy Past, Present, and Future Presentation 3/25/24
 
Rise of the Machines: Known As Drones...
Rise of the Machines: Known As Drones...Rise of the Machines: Known As Drones...
Rise of the Machines: Known As Drones...
 
The Role of FIDO in a Cyber Secure Netherlands: FIDO Paris Seminar.pptx
The Role of FIDO in a Cyber Secure Netherlands: FIDO Paris Seminar.pptxThe Role of FIDO in a Cyber Secure Netherlands: FIDO Paris Seminar.pptx
The Role of FIDO in a Cyber Secure Netherlands: FIDO Paris Seminar.pptx
 
[Webinar] SpiraTest - Setting New Standards in Quality Assurance
[Webinar] SpiraTest - Setting New Standards in Quality Assurance[Webinar] SpiraTest - Setting New Standards in Quality Assurance
[Webinar] SpiraTest - Setting New Standards in Quality Assurance
 
The State of Passkeys with FIDO Alliance.pptx
The State of Passkeys with FIDO Alliance.pptxThe State of Passkeys with FIDO Alliance.pptx
The State of Passkeys with FIDO Alliance.pptx
 
Potential of AI (Generative AI) in Business: Learnings and Insights
Potential of AI (Generative AI) in Business: Learnings and InsightsPotential of AI (Generative AI) in Business: Learnings and Insights
Potential of AI (Generative AI) in Business: Learnings and Insights
 
Transcript: New from BookNet Canada for 2024: Loan Stars - Tech Forum 2024
Transcript: New from BookNet Canada for 2024: Loan Stars - Tech Forum 2024Transcript: New from BookNet Canada for 2024: Loan Stars - Tech Forum 2024
Transcript: New from BookNet Canada for 2024: Loan Stars - Tech Forum 2024
 
So einfach geht modernes Roaming fuer Notes und Nomad.pdf
So einfach geht modernes Roaming fuer Notes und Nomad.pdfSo einfach geht modernes Roaming fuer Notes und Nomad.pdf
So einfach geht modernes Roaming fuer Notes und Nomad.pdf
 
Moving Beyond Passwords: FIDO Paris Seminar.pdf
Moving Beyond Passwords: FIDO Paris Seminar.pdfMoving Beyond Passwords: FIDO Paris Seminar.pdf
Moving Beyond Passwords: FIDO Paris Seminar.pdf
 
Use of FIDO in the Payments and Identity Landscape: FIDO Paris Seminar.pptx
Use of FIDO in the Payments and Identity Landscape: FIDO Paris Seminar.pptxUse of FIDO in the Payments and Identity Landscape: FIDO Paris Seminar.pptx
Use of FIDO in the Payments and Identity Landscape: FIDO Paris Seminar.pptx
 
Genislab builds better products and faster go-to-market with Lean project man...
Genislab builds better products and faster go-to-market with Lean project man...Genislab builds better products and faster go-to-market with Lean project man...
Genislab builds better products and faster go-to-market with Lean project man...
 
Generative AI for Technical Writer or Information Developers
Generative AI for Technical Writer or Information DevelopersGenerative AI for Technical Writer or Information Developers
Generative AI for Technical Writer or Information Developers
 
A Journey Into the Emotions of Software Developers
A Journey Into the Emotions of Software DevelopersA Journey Into the Emotions of Software Developers
A Journey Into the Emotions of Software Developers
 
From Family Reminiscence to Scholarly Archive .
From Family Reminiscence to Scholarly Archive .From Family Reminiscence to Scholarly Archive .
From Family Reminiscence to Scholarly Archive .
 
The Ultimate Guide to Choosing WordPress Pros and Cons
The Ultimate Guide to Choosing WordPress Pros and ConsThe Ultimate Guide to Choosing WordPress Pros and Cons
The Ultimate Guide to Choosing WordPress Pros and Cons
 
How to Effectively Monitor SD-WAN and SASE Environments with ThousandEyes
How to Effectively Monitor SD-WAN and SASE Environments with ThousandEyesHow to Effectively Monitor SD-WAN and SASE Environments with ThousandEyes
How to Effectively Monitor SD-WAN and SASE Environments with ThousandEyes
 
2024 April Patch Tuesday
2024 April Patch Tuesday2024 April Patch Tuesday
2024 April Patch Tuesday
 
Merck Moving Beyond Passwords: FIDO Paris Seminar.pptx
Merck Moving Beyond Passwords: FIDO Paris Seminar.pptxMerck Moving Beyond Passwords: FIDO Paris Seminar.pptx
Merck Moving Beyond Passwords: FIDO Paris Seminar.pptx
 
A Framework for Development in the AI Age
A Framework for Development in the AI AgeA Framework for Development in the AI Age
A Framework for Development in the AI Age
 
Digital Identity is Under Attack: FIDO Paris Seminar.pptx
Digital Identity is Under Attack: FIDO Paris Seminar.pptxDigital Identity is Under Attack: FIDO Paris Seminar.pptx
Digital Identity is Under Attack: FIDO Paris Seminar.pptx
 

FireDAC Local SQL Skill Sprint

  • 1. EMBARCADERO  TECHNOLOGIESEMBARCADERO  TECHNOLOGIES FireDAC:  Local  SQL Jim  McKeeth   Lead  World  Wide  Developer  Evangelist  /  Engineer   jim.mckeeth@embarcadero.com   @JimMcKeeth  /  JimMcKeeth  /  Delphi.org   March  19th,  2015
  • 2. EMBARCADERO  TECHNOLOGIES This  Skill  Sprint  Works  with  .  .  . • Windows   • Mac  OS  X   • Android   • iOS   • RAD  Studio   • Appmethod   • Object  Pascal   • C++ • RAD  Studio  XE7  DocWiki   – http://embt.co/latestdocwiki     – http://docwiki.embarcadero.com/RADStudio/en/     • Appmethod  September  2014  DocWiki   – http://embt.co/AppmethodTopics     – http://docwiki.appmethod.com/appmethod/topics/en/   • Appmethod  supports  the  FireMonkey   framework  on  all  4  platforms  while  RAD  Studio,   Delphi  and  C++Builder  also  support  VCL  on   Windows.  Contact  sales  with  any  questions!
  • 3. EMBARCADERO  TECHNOLOGIES FireDAC’s  TFDLocalSQL  for  Local  SQL • Run  SQL  queries  locally  on  TDataSet  descendants.   • Works  for  any  TDataSet  descendants.   • Simplify  code  with  SQL  instead  of  spinning  through   records.   • Join  queries  between  heterogeneous  data  sources.   • Supports  the  INSERT/UPDATE/DELETE  SQL  commands   as  transactions  and  savepoints.
  • 4. EMBARCADERO  TECHNOLOGIES Some  Possible  Uses • Heterogeneous  queries  (Queryable  datasets  have  result  sets   from  different  DBs).   • In-­‐memory  database  (TFDMemTables  serving  as  the  datasets).   • Advanced  offline  mode  (While  main  DB  is  not  accessible,  an   application  is  still  able  to  perform  the  SQL  queries  locally.)   • Advanced  DataSnap  client  (the  data  delivered  by  the  DataSnap   driver  to  the  client  can  be  queried  locally).   • Simplified  migration.  (Use  3rd-­‐party  TDataSet  objects  in  an   application,  and  use  FireDAC  API  to  work  with  these  data   sources.)4
  • 5. EMBARCADERO  TECHNOLOGIES Unsupported  SQL  and  Alternatives • ALTER  TABLE  ...  ADD  COLUMN  -­‐  Instead,  change  the   structure  via  the  DataSet.   • DROP  TABLE  -­‐  When  a  dataset  is  unlinked  from  the  Local   SQL  engine,  it  is  automatically  dropped  (not  freed).   • CREATE  INDEX  /  DROP  INDEX  -­‐  Instead  of  the  SQL   indexes,  use  the  DataSet  indexes.   • CREATE  TRIGGER  /  DROP  TRIGGER  -­‐  Instead  of  the   triggers,  use  the  DataSet  events. 5
  • 6. EMBARCADERO  TECHNOLOGIES Local  SQL  Components 6 TDataSet   Descendant TDataSet   Descendant TDataSet   Descendant TFDConnection   w/  SQLite  driver TFDGUIxWaitCursor   (Wait  Cursor) TFDLocalSQL TFDQuery   or  TFDCommand Connection DataSets Activate  2nd Activate  1st Activate  3rd
  • 8. EMBARCADERO  TECHNOLOGIES TFDLocalSQL  Summary • Works  with  any  TDataSet  descendent.   • Supports  DML/CRUD,  but  no  DDL.   • Supports  Transactions  and  SavePoints.   • Uses  SQLite  internally.   • Query  across  multiple  heterogeneous  DataSets.
  • 9. EMBARCADERO  TECHNOLOGIES TFDLocalSQL  Resources • Samples   – C:UsersPublicDocumentsEmbarcaderoStudio15.0Samples
 Object  PascalDatabaseFireDACSamplesComp  LayerTFDLocalSQL   • DocWiki   – http://docwiki.embarcadero.com/RADStudio/en/Local_SQL_(FireDAC)     – http://docwiki.embarcadero.com/Libraries/en/FireDAC.Phys.SQLiteVDataSet.TFDLocalSQL     • Blog  Posts   – Dmitry  Arefiev   – FireDAC  Local  SQL  video:  https://youtu.be/QA-­‐xhfYoEq4   – CodeRage  9:  FireDAC  Tips,  Tricks  and  News:  http://youtu.be/gljfudAKlTI       – Jens  Fudge’s  Local  SQL  video:  https://youtu.be/fJsmKiUz6VU     – All  these  links  and  more:  http://delphi.org/?p=1951   https://commons.wikimedia.org/wiki/File:Iceberg.jpg  
  • 10. EMBARCADERO  TECHNOLOGIES Next  Time…. • Preview:  Box2D   • Sneak  peak  from  a  future  release   • Cross  platform  2D  physics  engine   • Tuesday  the  24th  of  March   – 6AM  San  Francisco  /  9AM  New  York  /  1PM  London  /  2PM  Milan  /  13  UTC   – 11AM  San  Francisco  /  2PM  New  York  /  6PM  London  /  7PM  Milan  /  18  UTC   – 5PM  San  Francisco  /  Wed  9AM  Tokyo  /  Wed  11AM  Sydney  /  0  UTC Sign-­‐up:  http://www.embarcadero.com/landing-­‐pages/skill-­‐sprints  
  • 11. EMBARCADERO  TECHNOLOGIES Next  Time…. • FireDAC:  BDE  to  InterBase  Migration   • Paradox  and  BDE  are  Deprecated   • Take  advantage  of  new  FireDAC  and  InterBase  features   • Thursday  the  26th  of  March   – 6AM  San  Francisco  /  9AM  New  York  /  1PM  London  /  2PM  Milan  /  13  UTC   – 11AM  San  Francisco  /  2PM  New  York  /  6PM  London  /  7PM  Milan  /  18  UTC   – 5PM  San  Francisco  /  Fri  9AM  Tokyo  /  Fri  11AM  Sydney  /  0  UTC Sign-­‐up:  http://www.embarcadero.com/landing-­‐pages/skill-­‐sprints     (2nd  sign-­‐up  on  the  left)
  • 12. EMBARCADERO  TECHNOLOGIES RAD  Studio  Special  Offers More  details  http://www.embarcadero.com/radoffer March  31,  2015 All  expire
  • 13. EMBARCADERO  TECHNOLOGIESEMBARCADERO  TECHNOLOGIES Q  &  A   @EmbarcaderoTech Special  offers:  http://embarcadero.com/radoffer/