File: README

package info (click to toggle)
libgda5 5.2.10-8
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 76,168 kB
  • sloc: ansic: 495,319; xml: 10,486; yacc: 5,165; sh: 4,451; makefile: 4,095; php: 1,416; java: 1,300; javascript: 1,298; python: 896; sql: 879; perl: 116
file content (27 lines) | stat: -rw-r--r-- 740 bytes parent folder | download | duplicates (9)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
Libgda DDL example
==================

Description:
------------

The example in this directory illustrate how to use the GdaServerOperation object to execute
DDL queries (queries which do not manipulate data, such as SELECT, INSERT, UPDATE or DELETE).

It simply creates a ddl_db.db SQLite database file in which a table is added.

Compiling and running:
----------------------

To compile (make sure Libgda is installed prior to this):
> make

and to run:
> ./ddl

The resulting ddl_db.db SQLite file should contain a single table named "products":

[prompt]> sqlite3 ddl_db.db
SQLite version 3.4.0
Enter ".help" for instructions
sqlite> .schema
CREATE TABLE products (id integer PRIMARY KEY AUTOINCREMENT, product_name string NOT NULL);