Skip to content

Commit 2ffa2aa

Browse files
authored
Merge pull request #3 from Embarcadero/rename
Renaming entire package from idb to interbase
2 parents dec1eef + 44fa0d8 commit 2ffa2aa

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

84 files changed

+20066
-20056
lines changed

PKG-INFO

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ Home-page: https://github.com/Embarcadero/InterBasePython
66
Author:
77
Author-email:
88
License: BSD
9-
Description: idb package is a set of InterBase RDBMS bindings for python.
9+
Description: interbase package is a set of InterBase RDBMS bindings for python.
1010
It works on Python 3.x.
1111

1212
Keywords: InterBase

README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# InterBase Driver for Python, supporting 32-bit and 64-bit
22

33
[InterBase Documentation](https://docwiki.embarcadero.com/InterBase/2020/en/Main_Page) \*
4-
[IDB Source](https://github.com/Embarcadero/InterBasePython) \*
4+
[InterBase Source](https://github.com/Embarcadero/InterBasePython) \*
55
[Based On FDB](http://www.firebirdsql.org/en/devel-python-driver/)
66

77
Changes implemented are based on this blog post

docs/.buildinfo

+4-4
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# Sphinx build info version 1
2-
# This file hashes the configuration used when building these files. When it is not found, a full rebuild will be done.
3-
config: d7c472b8db41b0381968dec2dc2ba872
4-
tags: 645f666f9bcd5a90fca523b33c5a78b7
1+
# Sphinx build info version 1
2+
# This file hashes the configuration used when building these files. When it is not found, a full rebuild will be done.
3+
config: 6a2af01995ecb4a6bfe4433df65e503d
4+
tags: 645f666f9bcd5a90fca523b33c5a78b7

docs/_sources/getting-started.txt

+29-29
Original file line numberDiff line numberDiff line change
@@ -1,33 +1,33 @@
11

2-
########################
3-
Getting Started with IDB
4-
########################
2+
##############################
3+
Getting Started with Interbase
4+
##############################
55

66
Installation
77
************
88

9-
IDB is written as pure-Python module on top of InterBase client library (gds.so/dylib and gds32/ibclient64.dll) using ctypes_,
10-
so *make sure you have InterBase client properly installed before you try to install IDB*, otherwise the
11-
installation will fail. IDB supports InterBase 2020 and higher.
9+
Interbase is written as pure-Python module on top of InterBase client library (gds.so/dylib and gds32/ibclient64.dll) using ctypes_,
10+
so *make sure you have InterBase client properly installed before you try to install Interbase*, otherwise the
11+
installation will fail. Interbase supports InterBase 2020 and higher.
1212

13-
IDB is distributed as `setuptools`_ package, so you'll need setuptools or
13+
Interbase is distributed as `setuptools`_ package, so you'll need setuptools or
1414
`compatible package <http://pypi.python.org/pypi/distribute>`_ installed to
15-
install IDB properly.
15+
install Interbase properly.
1616

1717
Installation using pip
1818
========================
1919

20-
$ pip install git+ssh://[email protected]/Embarcadero/PythonInterBase.git
20+
$ pip install git+ssh://[email protected]/Embarcadero/InterBasePython.git
2121

2222
Installation from source
2323
========================
2424

2525
Download the source tarball, uncompress it, then run the install command::
2626

27-
$ git clone https://github.com/Embarcadero/PythonInterBase.git
27+
$ git clone https://github.com/Embarcadero/InterBasePython.git
2828
$ python setup.py install
2929

30-
.. _setuptools: https://github.com/Embarcadero/PythonInterBase
30+
.. _setuptools: https://github.com/Embarcadero/InterBasePython
3131
.. _PYPI: http://pypi.python.org
3232
.. _ctypes: http://docs.python.org/library/ctypes.html
3333

@@ -36,11 +36,11 @@ Quick-start Guide
3636
*****************
3737

3838
This brief tutorial aims to get the reader started by demonstrating
39-
elementary usage of IDB. It is not a comprehensive Python
39+
elementary usage of Interbase. It is not a comprehensive Python
4040
Database API tutorial, nor is it comprehensive in its coverage of
4141
anything else.
4242

43-
The numerous advanced features of IDB are covered in another
43+
The numerous advanced features of Interbase are covered in another
4444
section of this documentation, which is not in a tutorial format, though it
4545
is replete with examples.
4646

@@ -55,13 +55,13 @@ A database connection is typically established with code such as this:
5555

5656
.. sourcecode:: python
5757

58-
import idb
58+
import interbase
5959

6060
# The server is named 'bison'; the database file is at '/temp/test.db'.
61-
con = idb.connect(dsn='bison:/temp/test.db', user='sysdba', password='pass')
61+
con = interbase.connect(dsn='bison:/temp/test.db', user='sysdba', password='pass')
6262

6363
# Or, equivalently:
64-
con = idb.connect(
64+
con = interbase.connect(
6565
host='bison', database='/temp/test.db',
6666
user='sysdba', password='masterkey'
6767
)
@@ -74,9 +74,9 @@ UTF-8 as the character set of the connection:
7474

7575
.. sourcecode:: python
7676

77-
import idb
77+
import interbase
7878

79-
con = idb.connect(
79+
con = interbase.connect(
8080
dsn='bison:/temp/test.db',
8181
user='sysdba', password='masterkey',
8282
charset='UTF8' # specify a character set for the connection
@@ -108,9 +108,9 @@ the `languages` table:
108108

109109
.. sourcecode:: python
110110

111-
import idb
111+
import interbase
112112

113-
con = idb.connect(dsn='bison:/temp/test.db', user='sysdba', password='masterkey')
113+
con = interbase.connect(dsn='bison:/temp/test.db', user='sysdba', password='masterkey')
114114

115115
# Create a Cursor object that operates in the context of Connection con:
116116
cur = con.cursor()
@@ -136,9 +136,9 @@ fetching a single row at a time from a `SELECT`-cursor:
136136

137137
.. sourcecode:: python
138138

139-
import idb
139+
import interbase
140140

141-
con = idb.connect(dsn='bison:/temp/test.db', user='sysdba', password='masterkey')
141+
con = interbase.connect(dsn='bison:/temp/test.db', user='sysdba', password='masterkey')
142142

143143
cur = con.cursor()
144144
SELECT = "select name, year_released from languages order by year_released"
@@ -179,19 +179,19 @@ example to `languages`):
179179

180180
.. sourcecode:: python
181181

182-
import idb
182+
import interbase
183183

184184
TABLE_NAME = 'languages'
185185
SELECT = 'select * from %s order by year_released' % TABLE_NAME
186186

187-
con = idb.connect(dsn='bison:/temp/test.db', user='sysdba', password='masterkey')
187+
con = interbase.connect(dsn='bison:/temp/test.db', user='sysdba', password='masterkey')
188188

189189
cur = con.cursor()
190190
cur.execute(SELECT)
191191

192192
# Print a header.
193193
for fieldDesc in cur.description:
194-
print fieldDesc[idb.DESCRIPTION_NAME].ljust(fieldDesc[idb.DESCRIPTION_DISPLAY_SIZE]) ,
194+
print fieldDesc[interbase.DESCRIPTION_NAME].ljust(fieldDesc[interbase.DESCRIPTION_DISPLAY_SIZE]) ,
195195
print # Finish the header with a newline.
196196
print '-' * 78
197197

@@ -201,7 +201,7 @@ example to `languages`):
201201
for row in cur:
202202
for fieldIndex in fieldIndices:
203203
fieldValue = str(row[fieldIndex])
204-
fieldMaxWidth = cur.description[fieldIndex][idb.DESCRIPTION_DISPLAY_SIZE]
204+
fieldMaxWidth = cur.description[fieldIndex][interbase.DESCRIPTION_DISPLAY_SIZE]
205205

206206
print fieldValue.ljust(fieldMaxWidth) ,
207207

@@ -224,9 +224,9 @@ Let's insert more languages:
224224

225225
.. sourcecode:: python
226226

227-
import idb
227+
import interbase
228228

229-
con = idb.connect(dsn='bison:/temp/test.db', user='sysdba', password='masterkey')
229+
con = interbase.connect(dsn='bison:/temp/test.db', user='sysdba', password='masterkey')
230230

231231
cur = con.cursor()
232232

@@ -281,7 +281,7 @@ retrieved from a stored procedure by `SELECT`ing from the procedure,
281281
whereas output parameters are retrieved with an `EXECUTE PROCEDURE`
282282
statement.
283283
add
284-
To *retrieve a result set* from a stored procedure with IDB,
284+
To *retrieve a result set* from a stored procedure with Interbase,
285285
use code such as this:
286286

287287
.. sourcecode:: python

docs/_sources/index.txt

+9-9
Original file line numberDiff line numberDiff line change
@@ -1,23 +1,23 @@
1-
.. IDB documentation master file, created by sphinx-quickstart on Wed Jan 7 12:29:48 2009.
1+
.. Interbase documentation master file, created by sphinx-quickstart on Wed Jan 7 12:29:48 2009.
22
You can adapt this file completely to your liking, but it should at least
33
contain the root `toctree` directive.
44

5-
###############################
6-
Welcome to IDB's documentation!
7-
###############################
5+
#####################################
6+
Welcome to Interbase's documentation!
7+
#####################################
88

9-
IDB is a `Python <http://python.org>`__ library package that
10-
implements `Python Database API 2.0`-compliant support for the open source relational
9+
Interbase is a `Python <http://python.org>`__ library package that
10+
implements `Python Database API 2.0`-compliant support for the relational
1111
database `InterBase® <https://www.embarcadero.com/products/interbase>`__.
1212
In addition to the minimal feature set of the standard Python DB API,
13-
IDB also exposes nearly the entire native client API of the database engine.
13+
Interbase also exposes nearly the entire native client API of the database engine.
1414

15-
IDB is free -- covered by a permissive BSD-style `license
15+
Interbase is free -- covered by a permissive BSD-style `license
1616
<license.html>`__ that both commercial and noncommercial users should
1717
find agreeable.
1818

1919
This documentation set is not a tutorial on Python, SQL, or InterBase;
20-
rather, it is a topical presentation of IDB's feature set,
20+
rather, it is a topical presentation of Interbase's feature set,
2121
with example code to demonstrate basic usage patterns. For detailed
2222
information about InterBase features, see the `InterBase documentation
2323
<https://docwiki.embarcadero.com/InterBase/2020/en/Main_Page>`.

0 commit comments

Comments
 (0)