# Writing sql connections into classes

**URL:** <https://forum.kirupa.com/t/writing-sql-connections-into-classes/309117>\
**Category:** flash\
**Created:** [May 7, 2010, 7:49am UTC](https://forum.kirupa.com/t/writing-sql-connections-into-classes/309117 "2010-05-07T07:49:38Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![sanzochan](https://avatars.discourse-cdn.com/v4/letter/s/f17d59/32.png) [@sanzochan](https://forum.kirupa.com/u/sanzochan)\
**Post date:** [May 7, 2010, 7:49am UTC](https://forum.kirupa.com/t/writing-sql-connections-into-classes/309117/1 "2010-05-07T07:49:38Z")

</div>

I’m just wondering, is it possible to write a class just to connect to the SQLite database? As in, writing the class, and calling it in another class, so that I don’t have to type everything out everytime I need to connect to the database. If it is possible, how do I go about doing it? :-/
