You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
'charset' => 'utf8', // Experimental yet, prefer use the `DB_CHARSET` and `APPLICATION_CHARSET`
60
+
'charset' => 'utf8',
75
61
'prefix' => '',
62
+
'cache' => true // By default it caches on all connections, if you want some connection not remembered assign `false` (Recommended when modification is performed on tables frequently [development])
76
63
],
77
64
78
65
...
@@ -110,19 +97,19 @@ The file is usualy found in **/etc/freetds/freetds.conf**. Set the configuration
110
97
```
111
98
112
99
## Configuring the charset between the database and the application
113
-
To configure the charset between the database and the application, add the fields `DB_CHARSET` and `APPLICATION_CHARSET` in `.env` file, see the following example:
100
+
To configure the charset between the database and the application, add the fields `SYBASE_DATABASE_CHARSET` and `SYBASE_APPLICATION_CHARSET` in `.env` file, see the following example:
114
101
115
102
```env
116
-
DB_CHARSET=CP850
117
-
APPLICATION_CHARSET=UTF8
103
+
SYBASE_DATABASE_CHARSET=CP850
104
+
SYBASE_APPLICATION_CHARSET=UTF8
118
105
```
119
106
## Configuring the cache
120
107
As the library consults table information whenever it receives a request, caching can be used to avoid excessive queries
121
108
122
-
To use the cache, add the fields `SYBASE_CACHE_COLUMNS` and `SYBASE_CACHE_COLUMNS_TIME` to the `.env` file, see the following example:
109
+
To use the cache, add the fields `SYBASE_CACHE_TABLES` and `SYBASE_CACHE_TABLES_TIME` to the `.env` file, see the following example:
123
110
```dotenv
124
-
SYBASE_CACHE_COLUMNS=true
125
-
SYBASE_CACHE_COLUMNS_TIME=3600 # cache table information by `3600` seconds
111
+
SYBASE_CACHE_TABLES=true
112
+
SYBASE_CACHE_TABLES_TIME=3600 # cache table information by `3600` seconds
0 commit comments