# Avoiding connections

**URL:** <https://forum.liquibase.org/t/avoiding-connections/2393>\
**Category:** General Discussion\
**Created:** [August 29, 2013, 6:12pm UTC](https://forum.liquibase.org/t/avoiding-connections/2393 "2013-08-29T18:12:00Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Guest](https://avatars.discourse-cdn.com/v4/letter/g/8dc957/32.png) [@Guest](https://forum.liquibase.org/u/Guest)\
**Post date:** [August 29, 2013, 6:12pm UTC](https://forum.liquibase.org/t/avoiding-connections/2393/1 "2013-08-29T18:12:00Z")

</div>

Hi,

I’m using Liquibase only to generate DDL to text file.

Two things are annoying:

1. The generated lock table stuff

1. The fact that a connection is made when generation is done.&nbsp;

I want a DDL based on the changelog file, nothing more.

Any way to accomplish this?

Thanks.

---

<div class="post-metadata">

**Author:** ![nvoxland](https://avatars.discourse-cdn.com/v4/letter/n/87869e/32.png) [@nvoxland](https://forum.liquibase.org/u/nvoxland)\
**Post date:** [August 29, 2013, 6:12pm UTC](https://forum.liquibase.org/t/avoiding-connections/2393/2 "2013-08-29T18:12:00Z")

</div>

Currently not. To generate the correct SQL, liquibase needs to know the type and version of the database you are connecting to.&nbsp;

You could avoid the lock table by creating an extension to modify the LockService to be no-ops. It is in there to support setups with multiple servers connecting to the same database but that doesn’t always apply to everyone.

Nathan

---

<div class="post-metadata">

**Author:** ![Guest](https://avatars.discourse-cdn.com/v4/letter/g/8dc957/32.png) [@Guest](https://forum.liquibase.org/u/Guest)\
**Post date:** [August 29, 2013, 6:12pm UTC](https://forum.liquibase.org/t/avoiding-connections/2393/3 "2013-08-29T18:12:00Z")

</div>

I’d like to support this in my fork. I want to set the type and version manually without a connection - any suggestions where in the code to do this modification (if it’s well contained) ?

---

<div class="post-metadata">

**Author:** ![nvoxland](https://avatars.discourse-cdn.com/v4/letter/n/87869e/32.png) [@nvoxland](https://forum.liquibase.org/u/nvoxland)\
**Post date:** [August 29, 2013, 6:12pm UTC](https://forum.liquibase.org/t/avoiding-connections/2393/4 "2013-08-29T18:12:00Z")

</div>

If you create a new class that implements liquibase.lockservice.LockService and returns a higher getPriority() method, Liquibase should use your class instead of the standard one. Just leave stub methods in your class.

If you use a package other than something like liquibase.lockservice.ext, you will need to add a "Liquibase-Package: " line to your MANIFEST.MF file. See [liquibase.org/extensions](http://liquibase.org/extensions) for more general info on writing extensions.

Nathan
