Standalone Databases In the name of Allah Iman M.Gowhari

Slides:



Advertisements
Similar presentations
Connecting to Databases. connecting to DB DB server typically a standalone application Server runs on localhost for smaller sites –i.e. Same machine as.
Advertisements

PHP SQL. Connection code:- mysql_connect("server", "username", "password"); Connect to the Database Server with the authorised user and password. Eg $connect.
DB Relay An Introduction. INSPIRATION Database access is WAY TOO HARD The crux.
Simple 3 layer model From Database to User Interface - Modules © Juhani Välimäki 2004.
Introduction to SQLite ISYS 475. Download SQLite – Precompiled Binaries for Windows Create a folder “sqlite” under c:\xampp.
SQLite is a software library. It is: self-contained + Serverless + zero-configuration transactional = SQL database engine. Most widely deployed. The source.
Chapter 15 © 2010 by Addison Wesley Longman, Inc Origins and Uses of Ruby - Designed by Yukihiro Matsumoto; released in Use spread rapidly.
Persistence 2: SQLite CS 344 Mobile App Development Robert Muller.
Lecture 4: Introduction to PHP 3 PHP & MySQL
Inventory Management System With Berkeley DB 1. What is Berkeley DB? Berkeley DB is an Open Source embedded database library that provides scalable, high-
PHP Scripting Language. Introduction “PHP” is an acronym for “PHP: Hypertext Preprocessor.” It is an interpreted, server-side scripting language. Originally.
SQLLite and Java CS-328 Dick Steflik. SQLLite Embedded RDBMS ACID Compliant Size – about 257 Kbytes Not a client/server architecture –Accessed via function.
SQLite and the.NET Framework This PPT:
Anders Karlsson Principal Sales Engineer, MySQL MySQL Embedded - Getting started with libmysqld.
Computing for Bioinformatics Introduction to databases What is a database? Database system components Data types DBMS architectures DBMS systems available.
Application Links Chapter 7.1 V3.0 Napier University Dr Gordon Russell.
SQLite and PHP Wez Furlong Marcus Boerger LinuxTag 2003 Karlsruhe.
Status of SQL and XML I/O Sergey Linev, GSI, Darmstadt, Germany.
1 UTGB Shell An Open-Source Browser Framework for the Integration of Biological Data Taro L. Saito, Shin Sasaki, Budrul Ahsan and.
PHP Data Object (PDO) Khaled Al-Sham’aa. What is PDO? PDO is a PHP extension to formalise PHP's database connections by creating a uniform interface.
1 PHP and MySQL. 2 Topics  Querying Data with PHP  User-Driven Querying  Writing Data with PHP and MySQL PHP and MySQL.
DB Libraries: An Alternative to DBMS By Matt Stegman November 22, 2005.
Working with Databases. There are many different databases that one can use e.g. MS Access, Microsoft Sequel Server, MySQL. For our purposes, we will.
Lecture 19 Web Application Frameworks Boriana Koleva Room: C54
PHP and MySQL by Example COMP YL Professor Mattos.
SQLite Cole Hoosier Overview  RDBMS –Relational database management system  ACID Compliant –Atomicity, consistency, isolation, durability.
Stored Procedures, Triggers, Program Access Dr Lisa Ball 2008.
Debby Quock November 13, 2012 IRMIS at CLS. IRMIS Currently at CLS PV Crawler –Perl modules that parse EPICS IOC st.cmd, db, and dbd files. Information.
SQL pepper. Why SQL File I/O is a great deal of code Optimal file organization and indexing is critical and a great deal of code and theory implementation.
Introduction to Internet Databases MySQL Database System Database Systems.
SQLite Android Club SQLite About onCreate Insert Select Update Delete onUpdate.
Who uses it? MichaelMoore.com What's it all about? Rapid Development Clean, Pragmatic Design.
Need of migrating to embedded database by ISVs & corporate IT departments. By Pallavi Patel.
Reactive Database Access in Scala with Slick 3
Just a Little PHP Programming PHP on the Server. Common Programming Language Features Comments Data Types Variable Declarations Expressions Flow of Control.
C Programming in Linux Jacob Chan. C/C++ and Java  Portable  Code written in one system and works in another  But in C, there are some libraries that.
Introduction to UNIX Road Map: 1. UNIX Structure 2. Components of UNIX 3. Process Structure 4. Shell & Utility Programs 5. Using Files & Directories 6.
Introduction to MySQL MySQL Overview by Ray Williams CS 320/565 Marymount University.
EGEE-II INFSO-RI Enabling Grids for E-sciencE EGEE and gLite are registered trademarks AMGA PHP API Claudio Cherubino INFN - Catania.
Persistance Android. Adding Persistance SQL Refresher Understand how to create and migrate SQLLite database with android APIs. – Get all tasks – Add a.
GUI With GTK+ Under Linux Fanfan Xiong. Introduction GTK+ (GIMP toolkit) : A library for creating graphical user interfaces(GUI) Two examples developed.
PHP Workshop ‹#› PHP Data Object (PDO). PHP Workshop ‹#› What is PDO? PDO is a PHP extension to formalise PHP's database connections by creating a uniform.
Tallahassee, Florida, 2015 COP4710 Database Systems Project Overview Fall 2015.
PHP Workshop ‹#› أطلق إبداعك 2 أطلق إبداعك 2 مدرس معتمد من مركز زووم PHP Data Object (PDO)
Digging into the GAT API Comparing C, C++ and Python API‘s Hartmut Kaiser
Development Overview Pertemuan 11 Matakuliah: T0413 Tahun: 2009.
CP476 Internet Computing Perl CGI and MySql 1 Relational Databases –A database is a collection of data organized to allow relatively easy access for retrievals,
Print Row Function void PrintRow(float x[ ][4],int i) { int j; for(j=0;j
Sung-Dong Kim Dept. of Computer Engineering, Hansung University Chapter 3 Programming Tools.
Introduction to Database Programming with Python Gary Stewart
Lecture 1.21 SQL Introduction Steven Jones, Genome Sciences Centre.
Chapter 7 Process Environment Chien-Chung Shen CIS/UD
Python DB Examples of heavy database usage using Python Comparison of JDBC and Python DB Gadfly SQLObject.
Please remember to thank our sponsors!
Outline Introduction to the Phalanger System
COP4710 Database Systems Project Overview.
Command Line Arguments
CSE 351 Section 1: HW 0 + Intro to C
Command-Line Arguments
PHP / MySQL Introduction
PostgreSQL Database and C++ Interface (and Midterm Topics)
SiteBuilder 2 Introduction.
Intro to Relational Databases
Android Developer Fundamentals V2
Web Programming– UFCFB Lecture
CS4433 Database Systems Project.
Department of School of Computing and Engineering
SQLLite and Android.
A RESTful Approach to XML Integration
컴퓨터 프로그래밍 기초 - 13th : 마지막 수업 -
Presentation transcript:

Standalone Databases In the name of Allah Iman M.Gowhari

2  Introduction  Mylittlebase  SQLite  Other Solutions

3 Introduction  Embedded database.  The size of the database.  The database performance.  No end-user configuration required.

4 Mylittlebase  It is a little database component.  Function-call API for data access and management.  No need to link to any external server, DLLs.  Delphi / C++ / PHP

5 Mylittlebase #include ; #include "mlb2.h"; int main() { TMlb2* mlb; mlb = mlb->Create(); printf("%d\n", mlb->GetVersionNumber()); mlb->Destroy(); }

6 Mylittlebase  Initialization: Create, Destroy, Init, …  Fields: AddField, SetFieldType, SetFieldName, …  Rows: AddRow, GetCurrentRow, …  Navigation: GoFirst, GoNext, SeekData, …  Data management: GetData, SetData, …  File management: SaveToFile, LoadFromFile, …  Utils: MakeDistinct, SortByData, …

7 Mylittlebase #include #include "mlb2.h" void main() { TMlb2* mlb; mlb = mlb->Create(); mlb->LoadFromFile("data.csv"); mlb->GoFirst(); mlb->BeginSeek(MLB_FORWARD); while(mlb->SeekData("city", "LIKE", "Lond*")) { // insert here your action } mlb->EndSeek(); mlb->Destroy(); }

8 SQLite  It is a C library that implements an embeddable SQL database engine.  Implements most of SQL92.  Very simple C/C++ interface requires the use of only three functions and one opaque structure.  Two times faster than PostgreSQL and MySQL for many common operations.

9 SQLite int main() { sqlite *db; char *zErrMsg=0; int rc; db=sqlite_open("test.db", 0, &zErrMsg); if( db==0 ) { printf("Can't open database: %s\n", zErrMsg); return 1; } rc=sqlite_exec(db, "select * from tbl1", callback, 0, &zErrMsg); if( rc!=SQLITE_OK ){ printf("SQL error: %s\n", zErrMsg); } sqlite_close(db); return 0; }

10 SQLite static int callback(void *NotUsed, int argc, char **argv, char **azColName){ int i; for(i=0; i<argc; i++) { printf("%s=%s\t", azColName[i], argv[i] ? argv[i] : "NULL"); } printf("\n"); return 0; }

11 SQLite  Accessing Data Without Using A Callback Function.  SQLite is typeless.  Python, Ruby, Perl, PHP, …

12 Other Solutions  Berkeley DB (  Ebase (  Gadfly (