Isn't a database only as global as you make it? The connection is surely a real object that needs to be passed around and referenced just like any other.
I don't really touch JavaScript or web dev so I might be misunderstanding the domain usage.
Isn't a database only as global as you make it? The connection is surely a real object that needs to be passed around and referenced just like any other.
I don't really touch JavaScript or web dev so I might be misunderstanding the domain usage.