Pervasive PSQL Programmer's Guide

Pervasive PSQL Programmer's Guide

Pervasive PSQL v11 Pervasive PSQL Programmer’s Guide Pervasive Software Inc. 12365 Riata Trace Parkway Building B Austin, TX 78727 USA Telephone: 512 231 6000 or 800 287 4383 Fax: 512 231 6010 Email: [email protected] Web: http://www.pervasivedb.com disclaimer PERVASIVE SOFTWARE INC. LICENSES THE SOFTWARE AND DOCUMENTATION PRODUCT TO YOU OR YOUR COMPANY SOLELY ON AN “AS IS” BASIS AND SOLELY IN ACCORDANCE WITH THE TERMS AND CONDITIONS OF THE ACCOMPANYING LICENSE AGREEMENT. PERVASIVE SOFTWARE INC. MAKES NO OTHER WARRANTIES WHATSOEVER, EITHER EXPRESS OR IMPLIED, REGARDING THE SOFTWARE OR THE CONTENT OF THE DOCUMENTATION; PERVASIVE SOFTWARE INC. HEREBY EXPRESSLY STATES AND YOU OR YOUR COMPANY ACKNOWLEDGES THAT PERVASIVE SOFTWARE INC. DOES NOT MAKE ANY WARRANTIES, INCLUDING, FOR EXAMPLE, WITH RESPECT TO MERCHANTABILITY, TITLE, OR FITNESS FOR ANY PARTICULAR PURPOSE OR ARISING FROM COURSE OF DEALING OR USAGE OF TRADE, AMONG OTHERS. trademarks Btrieve, Client/Server in a Box, Pervasive, Pervasive Software, and the Pervasive Software logo are registered trademarks of Pervasive Software Inc. Built on Pervasive Software, DataExchange, MicroKernel Database Engine, MicroKernel Database Architecture, Pervasive.SQL, Pervasive PSQL, Solution Network, Ultralight, and ZDBA are trademarks of Pervasive Software Inc. Microsoft, MS-DOS, Windows, Windows 95, Windows 98, Windows NT, Windows Millennium, Windows 2000, Windows 2003, Windows 2008, Windows 7, Windows 8, Windows Server 2003, Windows Server 2008, Windows Server 2012, Windows XP, Win32, Win32s, and Visual Basic are registered trademarks of Microsoft Corporation. NetWare and Novell are registered trademarks of Novell, Inc. NetWare Loadable Module, NLM, Novell DOS, Transaction Tracking System, and TTS are trademarks of Novell, Inc. Sun, Sun Microsystems, Java, all trademarks and logos that contain Sun, Solaris, or Java, are trademarks or registered trademarks of Sun Microsystems. All other company and product names are the trademarks or registered trademarks of their respective companies. © Copyright 2013 Pervasive Software Inc. All rights reserved. Reproduction, photocopying, or transmittal of this publication, or portions of this publication, is prohibited without the express prior written consent of the publisher. This product includes software developed by Powerdog Industries. © Copyright 1994 Powerdog Industries. All rights reserved. This product includes software developed by KeyWorks Software. © Copyright 2002 KeyWorks Software. All rights reserved. This product includes software developed by DUNDAS SOFTWARE. © Copyright 1997-2000 DUNDAS SOFTWARE LTD., all rights reserved. This product includes software developed by the Apache Software Foundation (http://www.apache.org/). This product uses the free unixODBC Driver Manager as written by Peter Harvey ([email protected]), modified and extended by Nick Gorham ([email protected]), with local modifications from Pervasive Software. Pervasive Software will donate their code changes to the current maintainer of the unixODBC Driver Manager project, in accordance with the LGPL license agreement of this project. The unixODBC Driver Danager home page is located at www.unixodbc.org. For further information on this project, contact its current maintainer: Nick Gorham ([email protected]). A copy of the GNU Lesser General Public License (LGPL) is included on the distribution media for this product. You may also view the LGPL at www.fsf.org/licensing/licenses/lgpl.html. Pervasive PSQL Programmer’s Guide January 2013 Contents About This Manual . xv Where to Get Information . .xvi Who Should Read This Manual . xvii Manual Organization . xviii Database Access Methods . xviii Transactional Programming with the Transactional Interface . xviii Relational Programming . xix Appendixes . .xx Typographical Conventions . xxi 1 Overview of Pervasive Access Methods . 1 Overview of Pervasive Access Methods . 2 SQL Access in Pervasive PSQL . 3 2 Developer Quick Start . 5 Choosing An Access Method. 6 Database Connection Quick Reference . 9 ADO.NET Connections . 9 ADO/OLE DB Connections . 9 JDBC Connections . 10 Java Class Library . 10 DSN-Less Connections . 10 ODBC Information . 12 Other SQL Access Methods . 12 Additional Resources for Application Developers . 13 Conceptual Information. 13 Reference Information. 13 Online Developer Resources . 13 Sample Code . 13 3 Developing Applications for the Transactional Interface . 15 Transactional Interface Environment . 16 Documentation. 16 Configuration Issues for Transactional Interface. 17 4 Transactional Interface Fundamentals . 19 Overview of the Transactional Interface . 20 Transactional Interface Environment . 22 Pages . 24 Page Types . 24 iii Contents Page Size . 25 File Types . 28 Standard Data Files . 28 Data-Only Files . 28 Key-Only Files . 29 Large Files . 29 Long File Names. 30 Data Types . 31 Key Attributes . 32 Key Attributes Description . 32 Key Specification . 50 Database URIs . 54 Syntax . 54 Parameter Precedence. 55 Special Characters . 56 Remarks . 57 Examples . 58 IPv6. 59 Double-Byte Character Support . 60 Record Length . 61 Data Integrity . 63 Record Locks . 63 Transactions . 63 Transaction Durability . 65 System Data . 66 Shadow Paging . 68 Backing Up Your Files . 69 Event Logging . 70 Performance Enhancement . 71 System Transactions . 71 Memory Management . 74 Page Preallocation. 75 Extended Operations . 75 Disk Usage . 77 Free Space List . 77 Index Balancing . 77 Data Compression. 78 Blank Truncation . 79 5 Designing a Database . 81 Understanding Data Files . 82 Creating a Data File . 85 Data Layout . 85 Creating File and Key Specification Structures . 91 Creating a File with Page Level Compression . 94 iv Contents Calling the Create Operation . 95 Create Index Operation . 96 Calculating the Logical Record Length . ..

View Full Text

Details

  • File Type
    pdf
  • Upload Time
    -
  • Content Languages
    English
  • Upload User
    Anonymous/Not logged-in
  • File Pages
    428 Page
  • File Size
    -

Download

Channel Download Status
Express Download Enable

Copyright

We respect the copyrights and intellectual property rights of all users. All uploaded documents are either original works of the uploader or authorized works of the rightful owners.

  • Not to be reproduced or distributed without explicit permission.
  • Not used for commercial purposes outside of approved use cases.
  • Not used to infringe on the rights of the original creators.
  • If you believe any content infringes your copyright, please contact us immediately.

Support

For help with questions, suggestions, or problems, please contact us