Beginners Guide to Database Updating and Deleting
-
Upload
safe-software -
Category
Technology
-
view
664 -
download
7
description
Transcript of Beginners Guide to Database Updating and Deleting
CONNECT. TRANSFORM. AUTOMATE.
Beginners Guide to Database Updating and Deleting
Writing to Databases - Inserts
Easy to INSERT data Automatically INSERTs new data Creates a table if it doesn’t exist Appends to an existing table Simple settings for:
Drop Table or Truncate Table
Writing to Databases - Updating/Deleting
Updating/Deleting existing data isn’t so easy Requires multiple parameter settings Uses format attributes and writer ‘modes’ Might involve multiple transformers Can take some effort to get working
Prerequisites to incremental updates… You need to know which features to
insert / update / delete !
New Transformers
DatabaseUpdater Features enter the transformer and it updates
existing features
DatabaseDeleter Feature(s) enter the transformer and it deletes
existing features.
Formats Supported
Google Fusion Access SQL Server Oracle PostgreSQL/Postgis SQL Lite Windows Azure
Parameters
Attributes to Join on
Where clause option
Columns to Update
Pros
Very easy to configure
Great for relatively simple updates: a few feature types a small number of fields
Great for deleting based on an attribute value
Cautions
No Geodatabase support
No Transactioning or Commit/Rollback handling
Not so useful for updating lots of attributes
Not appropriate for Dynamic Workflows
Other Approaches
Use feature based updates fme_db_operation fme_where
See the KnowledgeBase article: http://
fmepedia.safe.com/articles/How_To/Using-Feature-Based-Attributes-for-Database-updates