golistic / pxmysql

Go MySQL driver using X Protocol
MIT License
14 stars 0 forks source link

feat(xmysql)!: add Schema support #62

Closed geertjanvdk closed 1 year ago

geertjanvdk commented 1 year ago

We add the possibility to use Session to retrieve a database object as Schema. The Session.Schemas can be used to retrieve all available schema's in the connected MySQL instance.

It is also possible to create drop schemas (databases) using the Session methods CreateSchema and DropSchema.

BREAKING CHANGE: Users using CurrentSchemaName must now use Session method ActiveSchemaName and to use get the one configured DefaultSchemaName.

Resolves #61