usmanhalalit / pixie

Database query builder for PHP, framework agnostic, lightweight and expressive.
MIT License
672 stars 180 forks source link

Usage in a namespaced application and running CREATE statements #194

Closed randohinn closed 6 years ago

randohinn commented 6 years ago

Hi!

  1. What's the best way to use this in a namespaced application, so that all my classes under namespace whatver have access to the connection QB?

  2. What's the best way to use this for running table creation statements?

usmanhalalit commented 6 years ago
  1. QB is meant for this, it's like global you'll have access to \QB anywhere in your app.

  2. Table creation is not supported but feel free to use QB::query('CREATE TABLE....')

randohinn commented 6 years ago

Ah, thanks. Early in the morning, and forgot the \